hpp-corbaserver  4.13.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-4.13.0/idl/hpp/core_idl/steering_methods.idl
6 //
7 
9 
10 #include <sstream>
11 
12 #include <hpp/corbaserver/fwd.hh>
15 
16 
17 
18 //
19 // Implementational code for IDL interface hpp::core_idl::SteeringMethod
20 //
21 namespace hpp {
22 
23 namespace core_impl {
24 template <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 }
31 template <typename _Base, typename _Storage>
33 {
34  // add extra destructor code here
35 }
36 
37 // Methods corresponding to IDL attributes and operations
38 
39 template <typename _Base, typename _Storage>
41 {
42  try {
43  // automatically generated code.
46  hpp::core::PathPtr_t __return__ (getT()->operator() (_q1, _q2));
47 
48  return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
49  } catch (const std::exception& e) {
50  throw ::hpp::Error (e.what());
51  }
52 }
53 
54 template <typename _Base, typename _Storage>
56 {
57  try {
58  // automatically generated code.
59  hpp::core::ConstraintSetPtr_t _constraints = ::hpp::corbaServer::reference_to_object<hpp::core::ConstraintSet>(server_, constraints);
60  (getT()->constraints (_constraints));
61 
62 
63  } catch (const std::exception& e) {
64  throw ::hpp::Error (e.what());
65  }
66 }
67 
68 template <typename _Base, typename _Storage>
70 {
71  try {
72  // automatically generated code.
73 
74  hpp::core::ConstraintPtr_t __return__ (getT()->constraints ());
75 
76  return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Constraint,hpp::core_impl::Constraint>(server_, __return__)._retn();
77  } catch (const std::exception& e) {
78  throw ::hpp::Error (e.what());
79  }
80 }
81 
82 // End of implementational code
83 } // namespace core_impl
84 
85 } // namespace hpp
86 
87 
88 
89 
90 
91 #endif // hpp_core_idl__steering__methods_hxx__
92 
SteeringMethodServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: steering_methods.hh:25
hpp::core_idl::Constraint_ptr getConstraints()
Definition: steering_methods.hh:69
Implement CORBA interface `‘Obstacle’&#39;.
Definition: basic-server.hh:35
hpp::core_idl::Path_ptr call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: steering_methods.hh:40
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
pinocchio::vector_t vector_t
Definition: fwd.hh:112
virtual ~SteeringMethodServant()
Definition: steering_methods.hh:32
Implementation of Hpp module Corba server.
Definition: server.hh:77
void setConstraints(hpp::core_idl::ConstraintSet_ptr constraints)
Definition: steering_methods.hh:55
_objref_Constraint * Constraint_ptr
Definition: _constraints-idl.hh:219
_objref_ConstraintSet * ConstraintSet_ptr
Definition: _constraints-idl.hh:480
Definition: steering_methods-fwd.hh:26
_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
core::PathPtr_t PathPtr_t
Definition: fwd.hh:97