hpp-corbaserver  5.0.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-5.0.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.
44  _ServantBase::deleteThis();
45  } catch (const std::exception& e) {
46  throw ::hpp::Error (e.what());
47  }
48 }
49 
50 template <typename _Base, typename _Storage>
52 {
53  try {
54  // automatically generated code.
55  return _ServantBase::deleteIfExpired();
56  } catch (const std::exception& e) {
57  throw ::hpp::Error (e.what());
58  }
59 }
60 
61 template <typename _Base, typename _Storage>
62 void DistanceServant<_Base, _Storage>::persistantStorage (::CORBA::Boolean persistant)
63 {
64  try {
65  // automatically generated code.
66  _ServantBase::persistantStorage(persistant);
67  } catch (const std::exception& e) {
68  throw ::hpp::Error (e.what());
69  }
70 }
71 
72 template <typename _Base, typename _Storage>
74 {
75  try {
76  // automatically generated code.
79  hpp::value_type __return__ (getT()->operator() (_q1, _q2));
80 
81  return __return__;
82  } catch (const std::exception& e) {
83  throw ::hpp::Error (e.what());
84  }
85 }
86 
87 // End of implementational code
88 } // namespace core_impl
89 
90 } // namespace hpp
91 
92 //
93 // Implementational code for IDL interface hpp::core_idl::WeighedDistance
94 //
95 namespace hpp {
96 
97 namespace core_impl {
98 template <typename _Base, typename _Storage>
100  const _Storage& s)
101  : hpp::core_impl::DistanceServant<_Base, _Storage> (server, s)
102 {
103  // add extra constructor code here
104 }
105 template <typename _Base, typename _Storage>
107 {
108  // add extra destructor code here
109 }
110 
111 // Methods corresponding to IDL attributes and operations
112 
113 template <typename _Base, typename _Storage>
115 {
116  try {
117  // automatically generated code.
118 
119  hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->weights ());
120 
121  return __return__;
122  } catch (const std::exception& e) {
123  throw ::hpp::Error (e.what());
124  }
125 }
126 
127 template <typename _Base, typename _Storage>
129 {
130  try {
131  // automatically generated code.
133  (getT()->weights (_weights));
134 
135 
136  } catch (const std::exception& e) {
137  throw ::hpp::Error (e.what());
138  }
139 }
140 
141 // End of implementational code
142 } // namespace core_impl
143 
144 } // namespace hpp
145 
146 
147 
148 
149 
150 #endif // hpp_core_idl__distances_hxx__
151 
bool persistantStorage() const
See persistantStorage(bool)
Definition: servant-base.hh:166
Implementation of Hpp module Corba server.
Definition: server.hh:78
Definition: distances-fwd.hh:27
void deleteThis()
Definition: distances.hh:40
::CORBA::Boolean deleteIfExpired()
Definition: distances.hh:51
virtual ~DistanceServant()
Definition: distances.hh:32
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: distances.hh:73
DistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:25
WeighedDistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:99
virtual ~WeighedDistanceServant()
Definition: distances.hh:106
hpp::floatSeq * getWeights()
Definition: distances.hh:114
void setWeights(const hpp::floatSeq &weights)
Definition: distances.hh:128
pinocchio::vector_t vector_t
Definition: fwd.hh:108
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
Implement CORBA interface `‘Obstacle’'.
Definition: client.hh:46
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34
double value_type
Definition: common.idl:18