hpp-corbaserver  4.9.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.9.0/idl/hpp/core_idl/distances.idl
6 //
7 
9 
10 #include <sstream>
11 
12 #include <hpp/corbaserver/fwd.hh>
15 
16 namespace hpp {
17 
18 namespace corbaServer {
19 
20 //
21 // Implementational code for IDL interface hpp::core_idl::Distance
22 //
23 namespace core_impl {
24 template <typename _Base, typename _Storage>
26  : ServantBase<hpp::core::Distance, _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::value_type __return__ (getT()->operator() (_q1, _q2));
46 
47  return __return__;
48  } catch (const std::exception& e) {
49  throw ::hpp::Error (e.what());
50  }
51 }
52 
53 // End of implementational code
54 } // namespace core_impl
55 
56 //
57 // Implementational code for IDL interface hpp::core_idl::WeighedDistance
58 //
59 namespace core_impl {
60 template <typename _Base, typename _Storage>
62  : hpp::corbaServer::core_impl::DistanceServant<_Base, _Storage> (server, s)
63 {
64  // add extra constructor code here
65 }
66 template <typename _Base, typename _Storage>
68 {
69  // add extra destructor code here
70 }
71 
72 // Methods corresponding to IDL attributes and operations
73 
74 template <typename _Base, typename _Storage>
76 {
77  try {
78  // automatically generated code.
79 
80  hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->weights ());
81 
82  return __return__;
83  } catch (const std::exception& e) {
84  throw ::hpp::Error (e.what());
85  }
86 }
87 
88 template <typename _Base, typename _Storage>
90 {
91  try {
92  // automatically generated code.
94  (getT()->weights (_weights));
95 
96 
97  } catch (const std::exception& e) {
98  throw ::hpp::Error (e.what());
99  }
100 }
101 
102 // End of implementational code
103 } // namespace core_impl
104 
105 
106 
107 } // namespace hpp
108 
109 } // namespace corbaServer
110 
111 #endif // hpp_core_idl__distances_hxx__
112 
Definition: servant-base.hh:100
WeighedDistanceServant(Server *server, const _Storage &s)
Definition: distances.hh:61
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:27
double value_type
Definition: common.idl:18
virtual ~WeighedDistanceServant()
Definition: distances.hh:67
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
hpp::floatSeq * getWeights()
Definition: distances.hh:75
pinocchio::vector_t vector_t
Definition: fwd.hh:83
virtual ~DistanceServant()
Definition: distances.hh:31
void setWeights(const hpp::floatSeq &weights)
Definition: distances.hh:89
Implementation of Hpp module Corba server.
Definition: server.hh:54
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: distances.hh:39
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
DistanceServant(Server *server, const _Storage &s)
Definition: distances.hh:25
StorageElementShPtr_t getT() const
Definition: servant-base.hh:121
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:32
Definition: distances-fwd.hh:25