hpp-corbaserver 6.0.0
Corba server for Humanoid Path Planner applications
Loading...
Searching...
No Matches
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 /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.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>
73hpp::core_idl::Path_ptr SteeringMethodServant<_Base, _Storage>::call (const hpp::floatSeq& q1, const hpp::floatSeq& q2)
74{
75 try {
76 // automatically generated code.
77 hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1);
78 hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2);
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>
88void SteeringMethodServant<_Base, _Storage>::setConstraints (hpp::core_idl::ConstraintSet_ptr constraints)
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.
148 hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1);
149 std::vector<int> _order1 = hpp::corbaServer::intSeqToVector (order1);
150 hpp::core::matrix_t _derivatives1 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives1);
151 hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2);
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
162// End of implementational code
163} // namespace steeringMethod_impl
164
165} // namespace core_impl
166
167} // namespace hpp
168
169//
170// Implementational code for IDL interface hpp::core_idl::steeringMethod_idl::SplineBernstein5
171//
172namespace hpp {
173
174namespace core_impl {
175
176namespace steeringMethod_impl {
177template <typename _Base, typename _Storage>
179 const _Storage& s)
180 : hpp::core_impl::SteeringMethodServant<_Base, _Storage> (server, s)
181{
182 // add extra constructor code here
183}
184template <typename _Base, typename _Storage>
186{
187 // add extra destructor code here
188}
189
190// Methods corresponding to IDL attributes and operations
191
192template <typename _Base, typename _Storage>
193hpp::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)
194{
195 try {
196 // automatically generated code.
197 hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1);
198 std::vector<int> _order1 = hpp::corbaServer::intSeqToVector (order1);
199 hpp::core::matrix_t _derivatives1 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives1);
200 hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2);
201 std::vector<int> _order2 = hpp::corbaServer::intSeqToVector (order2);
202 hpp::core::matrix_t _derivatives2 = hpp::corbaServer::floatSeqSeqToMatrix (derivatives2);
203 hpp::core::PathPtr_t __return__ (getT()->steer (_q1, _order1, _derivatives1, _q2, _order2, _derivatives2, length));
204
205 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
206 } catch (const std::exception& e) {
207 throw ::hpp::Error (e.what());
208 }
209}
210
211// End of implementational code
212} // namespace steeringMethod_impl
213
214} // namespace core_impl
215
216} // namespace hpp
217
218
219
220
221
222#endif // hpp_core_idl__steering__methods_hxx__
223
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 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:185
SplineBernstein5Servant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition steering_methods.hh:178
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:193
ReturnType::Object_var makeServantDownCast(Server *server, const typename ServantBaseType::Storage &t)
Definition servant-base.hh:407
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)
Implement CORBA interface `‘Obstacle’'.
Definition client.hh:46
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