hpp-corbaserver  4.12.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.12.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  : hpp::corbaServer::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 } // namespace hpp
57 
58 //
59 // Implementational code for IDL interface hpp::core_idl::WeighedDistance
60 //
61 namespace hpp {
62 
63 namespace core_impl {
64 template <typename _Base, typename _Storage>
66  : hpp::core_impl::DistanceServant<_Base, _Storage> (server, s)
67 {
68  // add extra constructor code here
69 }
70 template <typename _Base, typename _Storage>
72 {
73  // add extra destructor code here
74 }
75 
76 // Methods corresponding to IDL attributes and operations
77 
78 template <typename _Base, typename _Storage>
80 {
81  try {
82  // automatically generated code.
83 
84  hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->weights ());
85 
86  return __return__;
87  } catch (const std::exception& e) {
88  throw ::hpp::Error (e.what());
89  }
90 }
91 
92 template <typename _Base, typename _Storage>
94 {
95  try {
96  // automatically generated code.
98  (getT()->weights (_weights));
99 
100 
101  } catch (const std::exception& e) {
102  throw ::hpp::Error (e.what());
103  }
104 }
105 
106 // End of implementational code
107 } // namespace core_impl
108 
109 } // namespace hpp
110 
111 
112 
113 
114 
115 #endif // hpp_core_idl__distances_hxx__
116 
void setWeights(const hpp::floatSeq &weights)
Definition: distances.hh:93
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:27
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: distances.hh:39
double value_type
Definition: common.idl:18
virtual ~WeighedDistanceServant()
Definition: distances.hh:71
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
pinocchio::vector_t vector_t
Definition: fwd.hh:89
WeighedDistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:65
DistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:25
virtual ~DistanceServant()
Definition: distances.hh:31
hpp::floatSeq * getWeights()
Definition: distances.hh:79
Implementation of Hpp module Corba server.
Definition: server.hh:54
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
Definition: distances-fwd.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:33