hpp-corbaserver  4.14.0
Corba server for Humanoid Path Planner applications
distances.hh
Go to the documentation of this file.
1 #ifndef hpp_core_idl__distances_hxx__
2 #define hpp_core_idl__distances_hxx__
3 
4 //
5 // Implemention of IDL interfaces in file /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-4.14.0/idl/hpp/core_idl/distances.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::Distance
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::Distance, _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::value_type __return__ (getT()->operator() (_q1, _q2));
47 
48  return __return__;
49  } catch (const std::exception& e) {
50  throw ::hpp::Error (e.what());
51  }
52 }
53 
54 // End of implementational code
55 } // namespace core_impl
56 
57 } // namespace hpp
58 
59 //
60 // Implementational code for IDL interface hpp::core_idl::WeighedDistance
61 //
62 namespace hpp {
63 
64 namespace core_impl {
65 template <typename _Base, typename _Storage>
67  const _Storage& s)
68  : hpp::core_impl::DistanceServant<_Base, _Storage> (server, s)
69 {
70  // add extra constructor code here
71 }
72 template <typename _Base, typename _Storage>
74 {
75  // add extra destructor code here
76 }
77 
78 // Methods corresponding to IDL attributes and operations
79 
80 template <typename _Base, typename _Storage>
82 {
83  try {
84  // automatically generated code.
85 
86  hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->weights ());
87 
88  return __return__;
89  } catch (const std::exception& e) {
90  throw ::hpp::Error (e.what());
91  }
92 }
93 
94 template <typename _Base, typename _Storage>
96 {
97  try {
98  // automatically generated code.
100  (getT()->weights (_weights));
101 
102 
103  } catch (const std::exception& e) {
104  throw ::hpp::Error (e.what());
105  }
106 }
107 
108 // End of implementational code
109 } // namespace core_impl
110 
111 } // namespace hpp
112 
113 
114 
115 
116 
117 #endif // hpp_core_idl__distances_hxx__
118 
void setWeights(const hpp::floatSeq &weights)
Definition: distances.hh:95
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:35
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: distances.hh:40
double value_type
Definition: common.idl:18
virtual ~WeighedDistanceServant()
Definition: distances.hh:73
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
pinocchio::vector_t vector_t
Definition: fwd.hh:112
WeighedDistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:66
DistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:25
virtual ~DistanceServant()
Definition: distances.hh:32
hpp::floatSeq * getWeights()
Definition: distances.hh:81
Implementation of Hpp module Corba server.
Definition: server.hh:77
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
Definition: distances-fwd.hh:25
StorageElementShPtr_t getT() const
Definition: servant-base.hh:139
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34