1 #ifndef hpp_core_idl__paths_hxx__ 2 #define hpp_core_idl__paths_hxx__ 24 template <
typename _Base,
typename _Storage>
27 :
hpp::corbaServer::ServantBase<
hpp::core::
Path, _Storage> (server, s)
31 template <
typename _Base,
typename _Storage>
39 template <
typename _Base,
typename _Storage>
44 _ServantBase::deleteThis();
45 }
catch (
const std::exception& e) {
46 throw ::hpp::Error (e.what());
50 template <
typename _Base,
typename _Storage>
59 }
catch (
const std::exception& e) {
60 throw ::hpp::Error (e.what());
64 template <
typename _Base,
typename _Storage>
73 }
catch (
const std::exception& e) {
74 throw ::hpp::Error (e.what());
78 template <
typename _Base,
typename _Storage>
87 }
catch (
const std::exception& e) {
88 throw ::hpp::Error (e.what());
92 template <
typename _Base,
typename _Storage>
101 }
catch (
const std::exception& e) {
102 throw ::hpp::Error (e.what());
106 template <
typename _Base,
typename _Storage>
115 }
catch (
const std::exception& e) {
116 throw ::hpp::Error (e.what());
120 template <
typename _Base,
typename _Storage>
126 hpp::core::ConstraintSetPtr_t __return__ (getT()->constraints ());
128 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Constraint,hpp::core_impl::ConstraintSet>(server_, __return__)._retn();
129 }
catch (
const std::exception& e) {
130 throw ::hpp::Error (e.what());
134 template <
typename _Base,
typename _Storage>
139 std::ostringstream oss; oss << *
get();
140 std::string res = oss.str();
141 return CORBA::string_dup(res.c_str());
142 }
catch (
const std::exception& e) {
143 throw ::hpp::Error (e.what());
147 template <
typename _Base,
typename _Storage>
156 }
catch (
const std::exception& e) {
157 throw ::hpp::Error (e.what());
161 template <
typename _Base,
typename _Storage>
167 success =
get()->at (t, res);
170 }
catch (
const std::exception& e) {
171 throw ::hpp::Error (e.what());
175 template <
typename _Base,
typename _Storage>
181 get()->derivative (res, t, order);
184 }
catch (
const std::exception& e) {
185 throw ::hpp::Error (e.what());
189 template <
typename _Base,
typename _Storage>
197 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
198 }
catch (
const std::exception& e) {
199 throw ::hpp::Error (e.what());
203 template <
typename _Base,
typename _Storage>
210 hpp::core::PathVector::create (p->outputSize(), p->outputDerivativeSize());
213 return hpp::corbaServer::makeServant<hpp::core_idl::PathVector_ptr>
216 }
catch (
const std::exception& e) {
217 throw ::hpp::Error (e.what());
221 template <
typename _Base,
typename _Storage>
229 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
230 }
catch (
const std::exception& e) {
231 throw ::hpp::Error (e.what());
245 namespace core_impl {
246 template <
typename _Base,
typename _Storage>
253 template <
typename _Base,
typename _Storage>
261 template <
typename _Base,
typename _Storage>
270 }
catch (
const std::exception& e) {
271 throw ::hpp::Error (e.what());
275 template <
typename _Base,
typename _Storage>
284 }
catch (
const std::exception& e) {
285 throw ::hpp::Error (e.what());
289 template <
typename _Base,
typename _Storage>
297 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
298 }
catch (
const std::exception& e) {
299 throw ::hpp::Error (e.what());
303 template <
typename _Base,
typename _Storage>
309 (getT()->appendPath (_p));
312 }
catch (
const std::exception& e) {
313 throw ::hpp::Error (e.what());
317 template <
typename _Base,
typename _Storage>
323 (getT()->concatenate (_p));
326 }
catch (
const std::exception& e) {
327 throw ::hpp::Error (e.what());
331 template <
typename _Base,
typename _Storage>
340 hpp::core::PathVector::create (p->outputSize(), p->outputDerivativeSize());
343 return hpp::corbaServer::makeServant<hpp::core_idl::PathVector_ptr>
346 }
catch (
const std::exception& e) {
347 throw ::hpp::Error (e.what());
360 #endif // hpp_core_idl__paths_hxx__ PathVectorServant< POA_hpp::core_idl::PathVector, hpp::weak_ptr< hpp::core::PathVector > > PathVector
Definition: paths-fwd.hh:137
Definition: paths-fwd.hh:26
PathVectorServant< POA_hpp::core_idl::PathVector, core::PathVectorPtr_t > PathVector
Definition: paths.hh:122
hpp::floatSeq * at(hpp::value_type t, ::CORBA::Boolean &success)
Definition: paths.hh:162
virtual ~PathServant()
Definition: paths.hh:32
Implement CORBA interface `‘Obstacle’'.
Definition: basic-server.hh:35
hpp::floatSeq * initial()
Definition: paths.hh:93
double value_type
Definition: common.idl:18
unsigned long long size_t
Definition: paths.idl:18
hpp::floatSeq * end()
Definition: paths.hh:107
PathServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: paths.hh:25
hpp::core_idl::PathVector_ptr flatten()
Definition: paths.hh:332
hpp::value_type length()
Definition: paths.hh:79
void deleteThis()
Definition: paths.hh:40
void appendPath(hpp::core_idl::Path_ptr p)
Definition: paths.hh:304
pinocchio::vector_t vector_t
Definition: fwd.hh:112
PathVectorServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: paths.hh:247
hpp::core_idl::PathVector_ptr asVector()
Definition: paths.hh:204
hpp::core_idl::Path_ptr reverse()
Definition: paths.hh:222
_objref_PathVector * PathVector_ptr
Definition: paths-idl.hh:82
virtual ~PathVectorServant()
Definition: paths.hh:254
hpp::core_idl::ConstraintSet_ptr constraints()
Definition: paths.hh:121
core::PathVectorPtr_t PathVectorPtr_t
Definition: fwd.hh:100
hpp::floatSeq * derivative(hpp::value_type t, ::CORBA::Short order)
Definition: paths.hh:176
hpp::floatSeq * call(hpp::value_type t, ::CORBA::Boolean &success)
Definition: paths.hh:148
Implementation of Hpp module Corba server.
Definition: server.hh:77
hpp::size_type outputSize()
Definition: paths.hh:51
_objref_ConstraintSet * ConstraintSet_ptr
Definition: _constraints-idl.hh:480
char * str()
Definition: paths.hh:135
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
hpp::size_type outputDerivativeSize()
Definition: paths.hh:65
void concatenate(hpp::core_idl::PathVector_ptr p)
Definition: paths.hh:318
hpp::core_idl::Path_ptr extract(hpp::value_type tmin, hpp::value_type tmax)
Definition: paths.hh:190
_objref_Path * Path_ptr
Definition: path_planners-idl.hh:83
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34
hpp::core_idl::size_t numberPaths()
Definition: paths.hh:262
core::PathPtr_t PathPtr_t
Definition: fwd.hh:97
hpp::core_idl::size_t rankAtParam(hpp::value_type param, hpp::value_type &localParam)
Definition: paths.hh:276
long long size_type
Definition: common.idl:19
hpp::core_idl::Path_ptr pathAtRank(hpp::core_idl::size_t rank)
Definition: paths.hh:290