Line |
Branch |
Exec |
Source |
1 |
|
|
#ifndef hpp_manipulation_idl__steering__methods_hxx__ |
2 |
|
|
#define hpp_manipulation_idl__steering__methods_hxx__ |
3 |
|
|
|
4 |
|
|
// |
5 |
|
|
// Implemention of IDL interfaces in file /root/robotpkg/path/py-hpp-manipulation-corba/work/hpp-manipulation-corba-6.0.0/idl/hpp/manipulation_idl/steering_methods.idl |
6 |
|
|
// |
7 |
|
|
|
8 |
|
|
#include <hpp/manipulation_idl/steering_methods-fwd.hh> |
9 |
|
|
|
10 |
|
|
#include <sstream> |
11 |
|
|
|
12 |
|
|
#include <hpp/corbaserver/fwd.hh> |
13 |
|
|
#include <hpp/corbaserver/conversions.hh> |
14 |
|
|
#include "hpp/corbaserver/servant-base.hh" |
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
// |
19 |
|
|
// Implementational code for IDL interface hpp::manipulation_idl::steeringMethod::EndEffectorTrajectory |
20 |
|
|
// |
21 |
|
|
namespace hpp { |
22 |
|
|
|
23 |
|
|
namespace manipulation_impl { |
24 |
|
|
|
25 |
|
|
namespace steeringMethod { |
26 |
|
|
template <typename _Base, typename _Storage> |
27 |
|
✗ |
EndEffectorTrajectoryServant<_Base, _Storage>::EndEffectorTrajectoryServant(::hpp::corbaServer::Server* server, |
28 |
|
|
const _Storage& s) |
29 |
|
✗ |
: hpp::core_impl::SteeringMethodServant<_Base, _Storage> (server, s) |
30 |
|
|
{ |
31 |
|
|
// add extra constructor code here |
32 |
|
|
} |
33 |
|
|
template <typename _Base, typename _Storage> |
34 |
|
✗ |
EndEffectorTrajectoryServant<_Base, _Storage>::~EndEffectorTrajectoryServant() |
35 |
|
|
{ |
36 |
|
|
// add extra destructor code here |
37 |
|
|
} |
38 |
|
|
|
39 |
|
|
// Methods corresponding to IDL attributes and operations |
40 |
|
|
|
41 |
|
|
template <typename _Base, typename _Storage> |
42 |
|
✗ |
hpp::core_idl::Path_ptr EndEffectorTrajectoryServant<_Base, _Storage>::makePiecewiseLinearTrajectory (const hpp::floatSeqSeq& points, const hpp::floatSeq& weights) |
43 |
|
|
{ |
44 |
|
|
try { |
45 |
|
|
// automatically generated code. |
46 |
|
✗ |
hpp::core::matrix_t _points = hpp::corbaServer::floatSeqSeqToMatrix (points); |
47 |
|
✗ |
hpp::core::vector_t _weights = hpp::corbaServer::floatSeqToVector (weights); |
48 |
|
✗ |
hpp::core::PathPtr_t __return__ (getT()->makePiecewiseLinearTrajectory (_points, _weights)); |
49 |
|
|
|
50 |
|
✗ |
return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn(); |
51 |
|
✗ |
} catch (const std::exception& e) { |
52 |
|
✗ |
throw ::hpp::Error (e.what()); |
53 |
|
|
} |
54 |
|
|
} |
55 |
|
|
|
56 |
|
|
template <typename _Base, typename _Storage> |
57 |
|
✗ |
void EndEffectorTrajectoryServant<_Base, _Storage>::trajectoryConstraint (hpp::constraints_idl::Implicit_ptr c) |
58 |
|
|
{ |
59 |
|
|
try { |
60 |
|
|
// automatically generated code. |
61 |
|
✗ |
hpp::constraints::ImplicitPtr_t _c = ::hpp::corbaServer::reference_to_object<hpp::constraints::Implicit>(server_, c); |
62 |
|
✗ |
(getT()->trajectoryConstraint (_c)); |
63 |
|
|
|
64 |
|
|
|
65 |
|
✗ |
} catch (const std::exception& e) { |
66 |
|
✗ |
throw ::hpp::Error (e.what()); |
67 |
|
|
} |
68 |
|
|
} |
69 |
|
|
|
70 |
|
|
template <typename _Base, typename _Storage> |
71 |
|
✗ |
void EndEffectorTrajectoryServant<_Base, _Storage>::trajectory (hpp::core_idl::Path_ptr eeTraj, ::CORBA::Boolean se3Output) |
72 |
|
|
{ |
73 |
|
|
try { |
74 |
|
|
// automatically generated code. |
75 |
|
✗ |
hpp::core::PathPtr_t _eeTraj = ::hpp::corbaServer::reference_to_object<hpp::core::Path>(server_, eeTraj); |
76 |
|
✗ |
(getT()->trajectory (_eeTraj, se3Output)); |
77 |
|
|
|
78 |
|
|
|
79 |
|
✗ |
} catch (const std::exception& e) { |
80 |
|
✗ |
throw ::hpp::Error (e.what()); |
81 |
|
|
} |
82 |
|
|
} |
83 |
|
|
|
84 |
|
|
// End of implementational code |
85 |
|
|
} // namespace steeringMethod |
86 |
|
|
|
87 |
|
|
} // namespace manipulation_impl |
88 |
|
|
|
89 |
|
|
} // namespace hpp |
90 |
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
#endif // hpp_manipulation_idl__steering__methods_hxx__ |
96 |
|
|
|
97 |
|
|
|