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