hpp-corbaserver 4.14.0
Corba server for Humanoid Path Planner applications
Loading...
Searching...
No Matches
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
15
16
17
18//
19// Implementational code for IDL interface hpp::core_idl::Distance
20//
21namespace hpp {
22
23namespace core_impl {
24template <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}
31template <typename _Base, typename _Storage>
33{
34 // add extra destructor code here
35}
36
37// Methods corresponding to IDL attributes and operations
38
39template <typename _Base, typename _Storage>
41{
42 try {
43 // automatically generated code.
44 hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1);
45 hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2);
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//
62namespace hpp {
63
64namespace core_impl {
65template <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}
72template <typename _Base, typename _Storage>
74{
75 // add extra destructor code here
76}
77
78// Methods corresponding to IDL attributes and operations
79
80template <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
94template <typename _Base, typename _Storage>
96{
97 try {
98 // automatically generated code.
99 hpp::core::vector_t _weights = hpp::corbaServer::floatSeqToVector (weights);
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
Implementation of Hpp module Corba server.
Definition: server.hh:77
Definition: distances-fwd.hh:27
virtual ~DistanceServant()
Definition: distances.hh:32
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: distances.hh:40
DistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:25
WeighedDistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:66
virtual ~WeighedDistanceServant()
Definition: distances.hh:73
hpp::floatSeq * getWeights()
Definition: distances.hh:81
void setWeights(const hpp::floatSeq &weights)
Definition: distances.hh:95
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
Implement CORBA interface `‘Obstacle’'.
Definition: basic-server.hh:35
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34
double value_type
Definition: common.idl:18