hpp-corbaserver 6.1.0
Corba server for Humanoid Path Planner applications
steering_methods.hh
Go to the documentation of this file.
1#ifndef hpp_core_idl__steering__methods_hxx__
2#define hpp_core_idl__steering__methods_hxx__
3
4//
5// Implemention of IDL interfaces in file /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.1.0/idl/hpp/core_idl/steering_methods.idl
6//
7
9
10#include <sstream>
11
15
16
17
18//
19// Implementational code for IDL interface hpp::core_idl::SteeringMethod
20//
21namespace hpp {
22
23namespace core_impl {
24template <typename _Base, typename _Storage>
26 const _Storage& s)
27 : hpp::corbaServer::ServantBase<hpp::core::SteeringMethod, _Storage> (server, s)
28{
29 // add extra constructor code here
30}
31template <typename _Base, typename _Storage>
33{
34 // add extra destructor code here
35}
36
37// Methods corresponding to IDL attributes and operations
38
39template <typename _Base, typename _Storage>
41{
42 try {
43 // automatically generated code.
44 _ServantBase::deleteThis();
45 } catch (const std::exception& e) {
46 throw ::hpp::Error (e.what());
47 }
48}
49
50template <typename _Base, typename _Storage>
52{
53 try {
54 // automatically generated code.
55 return _ServantBase::deleteIfExpired();
56 } catch (const std::exception& e) {
57 throw ::hpp::Error (e.what());
58 }
59}
60
61template <typename _Base, typename _Storage>
63{
64 try {
65 // automatically generated code.
66 _ServantBase::persistantStorage(persistant);
67 } catch (const std::exception& e) {
68 throw ::hpp::Error (e.what());
69 }
70}
71
72template <typename _Base, typename _Storage>
74{
75 try {
76 // automatically generated code.
79 hpp::core::PathPtr_t __return__ (getT()->operator() (_q1, _q2));
80
81 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
82 } catch (const std::exception& e) {
83 throw ::hpp::Error (e.what());
84 }
85}
86
87template <typename _Base, typename _Storage>
89{
90 try {
91 // automatically generated code.
92 hpp::core::ConstraintSetPtr_t _constraints = ::hpp::corbaServer::reference_to_object<hpp::core::ConstraintSet>(server_, constraints);
93 (getT()->constraints (_constraints));
94
95
96 } catch (const std::exception& e) {
97 throw ::hpp::Error (e.what());
98 }
99}
100
101template <typename _Base, typename _Storage>
103{
104 try {
105 // automatically generated code.
106
107 hpp::core::ConstraintPtr_t __return__ (getT()->constraints ());
108
109 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Constraint,hpp::core_impl::Constraint>(server_, __return__)._retn();
110 } catch (const std::exception& e) {
111 throw ::hpp::Error (e.what());
112 }
113}
114
115// End of implementational code
116} // namespace core_impl
117
118} // namespace hpp
119
120//
121// Implementational code for IDL interface hpp::core_idl::steeringMethod_idl::SplineBernstein3
122//
123namespace hpp {
124
125namespace core_impl {
126
127namespace steeringMethod_impl {
128template <typename _Base, typename _Storage>
130 const _Storage& s)
131 : hpp::core_impl::SteeringMethodServant<_Base, _Storage> (server, s)
132{
133 // add extra constructor code here
134}
135template <typename _Base, typename _Storage>
137{
138 // add extra destructor code here
139}
140
141// Methods corresponding to IDL attributes and operations
142
143template <typename _Base, typename _Storage>
144hpp::core_idl::Path_ptr SplineBernstein3Servant<_Base, _Storage>::steer (const hpp::floatSeq& q1, const hpp::intSeq& order1, const hpp::floatSeqSeq& derivatives1, const hpp::floatSeq& q2, const hpp::intSeq& order2, const hpp::floatSeqSeq& derivatives2, ::CORBA::Float length)
145{
146 try {
147 // automatically generated code.
149 std::vector<int> _order1 = hpp::corbaServer::intSeqToVector (order1);
150 hpp::core::matrix_t _derivatives1 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives1);
152 std::vector<int> _order2 = hpp::corbaServer::intSeqToVector (order2);
153 hpp::core::matrix_t _derivatives2 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives2);
154 hpp::core::PathPtr_t __return__ (getT()->steer (_q1, _order1, _derivatives1, _q2, _order2, _derivatives2, length));
155
156 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
157 } catch (const std::exception& e) {
158 throw ::hpp::Error (e.what());
159 }
160}
161
162template <typename _Base, typename _Storage>
163hpp::core_idl::Path_ptr SplineBernstein3Servant<_Base, _Storage>::steerSE3 (const hpp::floatSeq& q1, const hpp::intSeq& order1, const hpp::floatSeqSeq& derivatives1, const hpp::floatSeq& q2, const hpp::intSeq& order2, const hpp::floatSeqSeq& derivatives2, ::CORBA::Float length)
164{
165 try {
166 // generated from /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.1.0/idl/hpp/core_idl/steering_methods.idl:40
168 std::vector<int> _order1 = hpp::corbaServer::intSeqToVector (order1);
169 hpp::core::matrix_t _derivatives1 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives1);
171 std::vector<int> _order2 = hpp::corbaServer::intSeqToVector (order2);
172 hpp::core::matrix_t _derivatives2 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives2);
173 hpp::core::PathPtr_t __return__ (getT()->steer (_q1, _order1, _derivatives1, _q2, _order2, _derivatives2, length, true));
174
175 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
176
177 } catch (const std::exception& e) {
178 throw ::hpp::Error (e.what());
179 }
180}
181
182// End of implementational code
183} // namespace steeringMethod_impl
184
185} // namespace core_impl
186
187} // namespace hpp
188
189//
190// Implementational code for IDL interface hpp::core_idl::steeringMethod_idl::SplineBernstein5
191//
192namespace hpp {
193
194namespace core_impl {
195
196namespace steeringMethod_impl {
197template <typename _Base, typename _Storage>
199 const _Storage& s)
200 : hpp::core_impl::SteeringMethodServant<_Base, _Storage> (server, s)
201{
202 // add extra constructor code here
203}
204template <typename _Base, typename _Storage>
206{
207 // add extra destructor code here
208}
209
210// Methods corresponding to IDL attributes and operations
211
212template <typename _Base, typename _Storage>
213hpp::core_idl::Path_ptr SplineBernstein5Servant<_Base, _Storage>::steer (const hpp::floatSeq& q1, const hpp::intSeq& order1, const hpp::floatSeqSeq& derivatives1, const hpp::floatSeq& q2, const hpp::intSeq& order2, const hpp::floatSeqSeq& derivatives2, ::CORBA::Float length)
214{
215 try {
216 // automatically generated code.
218 std::vector<int> _order1 = hpp::corbaServer::intSeqToVector (order1);
219 hpp::core::matrix_t _derivatives1 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives1);
221 std::vector<int> _order2 = hpp::corbaServer::intSeqToVector (order2);
222 hpp::core::matrix_t _derivatives2 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives2);
223 hpp::core::PathPtr_t __return__ (getT()->steer (_q1, _order1, _derivatives1, _q2, _order2, _derivatives2, length));
224
225 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
226 } catch (const std::exception& e) {
227 throw ::hpp::Error (e.what());
228 }
229}
230
231template <typename _Base, typename _Storage>
232hpp::core_idl::Path_ptr SplineBernstein5Servant<_Base, _Storage>::steerSE3 (const hpp::floatSeq& q1, const hpp::intSeq& order1, const hpp::floatSeqSeq& derivatives1, const hpp::floatSeq& q2, const hpp::intSeq& order2, const hpp::floatSeqSeq& derivatives2, ::CORBA::Float length)
233{
234 try {
235 // generated from /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.1.0/idl/hpp/core_idl/steering_methods.idl:62
237 std::vector<int> _order1 = hpp::corbaServer::intSeqToVector (order1);
238 hpp::core::matrix_t _derivatives1 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives1);
240 std::vector<int> _order2 = hpp::corbaServer::intSeqToVector (order2);
241 hpp::core::matrix_t _derivatives2 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives2);
242 hpp::core::PathPtr_t __return__ (getT()->steer (_q1, _order1, _derivatives1, _q2, _order2, _derivatives2, length, true));
243
244 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
245
246 } catch (const std::exception& e) {
247 throw ::hpp::Error (e.what());
248 }
249}
250
251// End of implementational code
252} // namespace steeringMethod_impl
253
254} // namespace core_impl
255
256} // namespace hpp
257
258
259
260
261
262#endif // hpp_core_idl__steering__methods_hxx__
263
_objref_ConstraintSet * ConstraintSet_ptr
Definition: _constraints-idl.hh:488
_objref_Constraint * Constraint_ptr
Definition: _constraints-idl.hh:221
bool persistantStorage() const
See persistantStorage(bool)
Definition: servant-base.hh:166
Implementation of Hpp module Corba server.
Definition: server.hh:78
Definition: steering_methods-fwd.hh:29
hpp::core_idl::Path_ptr call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: steering_methods.hh:73
void setConstraints(hpp::core_idl::ConstraintSet_ptr constraints)
Definition: steering_methods.hh:88
virtual ~SteeringMethodServant()
Definition: steering_methods.hh:32
SteeringMethodServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: steering_methods.hh:25
::CORBA::Boolean deleteIfExpired()
Definition: steering_methods.hh:51
void deleteThis()
Definition: steering_methods.hh:40
hpp::core_idl::Constraint_ptr getConstraints()
Definition: steering_methods.hh:102
SplineBernstein3Servant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: steering_methods.hh:129
hpp::core_idl::Path_ptr steerSE3(const hpp::floatSeq &q1, const hpp::intSeq &order1, const hpp::floatSeqSeq &derivatives1, const hpp::floatSeq &q2, const hpp::intSeq &order2, const hpp::floatSeqSeq &derivatives2, ::CORBA::Float length)
Definition: steering_methods.hh:163
hpp::core_idl::Path_ptr steer(const hpp::floatSeq &q1, const hpp::intSeq &order1, const hpp::floatSeqSeq &derivatives1, const hpp::floatSeq &q2, const hpp::intSeq &order2, const hpp::floatSeqSeq &derivatives2, ::CORBA::Float length)
Definition: steering_methods.hh:144
virtual ~SplineBernstein3Servant()
Definition: steering_methods.hh:136
virtual ~SplineBernstein5Servant()
Definition: steering_methods.hh:205
SplineBernstein5Servant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: steering_methods.hh:198
hpp::core_idl::Path_ptr steerSE3(const hpp::floatSeq &q1, const hpp::intSeq &order1, const hpp::floatSeqSeq &derivatives1, const hpp::floatSeq &q2, const hpp::intSeq &order2, const hpp::floatSeqSeq &derivatives2, ::CORBA::Float length)
Definition: steering_methods.hh:232
hpp::core_idl::Path_ptr steer(const hpp::floatSeq &q1, const hpp::intSeq &order1, const hpp::floatSeqSeq &derivatives1, const hpp::floatSeq &q2, const hpp::intSeq &order2, const hpp::floatSeqSeq &derivatives2, ::CORBA::Float length)
Definition: steering_methods.hh:213
PathPtr_t steer(ConfigurationIn_t q1, ConfigurationIn_t q2) const
std::vector< int > intSeqToVector(const intSeq &dofArray)
core::matrix_t floatSeqSeqToMatrix(const floatSeqSeq &input, const size_type expectedRows=-1, const size_type expectedCols=-1)
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
shared_ptr< Constraint > ConstraintPtr_t
pinocchio::vector_t vector_t
shared_ptr< ConstraintSet > ConstraintSetPtr_t
shared_ptr< Path > PathPtr_t
pinocchio::matrix_t matrix_t
Implement CORBA interface `‘Obstacle’'.
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34
sequence< floatSeq > floatSeqSeq
Definition: common.idl:35
sequence< long > intSeq
Definition: common.idl:31
_objref_Path * Path_ptr
Definition: path_planners-idl.hh:85