hpp-corbaserver: src/hpp/core_idl/distances.hh Source File

hpp-corbaserver 9.0.2 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-9.0.2/idl/hpp/core_idl/distances.idl
6//
7
8#include <hpp/core_idl/distances-fwd.hh>
9
10#include <sstream>
11
12#include <hpp/corbaserver/fwd.hh>
13#include <hpp/corbaserver/conversions.hh>
14#include "hpp/corbaserver/servant-base.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>
25 DistanceServant<_Base, _Storage>::DistanceServant(::hpp::corbaServer::Server* server,
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>
32 DistanceServant<_Base, _Storage>::~DistanceServant()
33{
34 // add extra destructor code here
35}
36
37// Methods corresponding to IDL attributes and operations
38
39 template <typename _Base, typename _Storage>
40 void DistanceServant<_Base, _Storage>::deleteThis ()
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>
51::CORBA::Boolean DistanceServant<_Base, _Storage>::deleteIfExpired ()
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>
73 hpp::value_type DistanceServant<_Base, _Storage>::call (const hpp::floatSeq& q1, const hpp::floatSeq& q2)
74{
75 try {
76 // automatically generated code.
77 hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1);
78 hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2);
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>
99 WeighedDistanceServant<_Base, _Storage>::WeighedDistanceServant(::hpp::corbaServer::Server* server,
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>
106 WeighedDistanceServant<_Base, _Storage>::~WeighedDistanceServant()
107{
108 // add extra destructor code here
109}
110
111// Methods corresponding to IDL attributes and operations
112
113 template <typename _Base, typename _Storage>
114 hpp::floatSeq* WeighedDistanceServant<_Base, _Storage>::getWeights ()
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>
128 void WeighedDistanceServant<_Base, _Storage>::setWeights (const hpp::floatSeq& weights)
129{
130 try {
131 // automatically generated code.
132 hpp::core::vector_t _weights = hpp::corbaServer::floatSeqToVector (weights);
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
hpp::corbaServer::ServantBase< hpp::core::Distance, _Storage >::persistantStorage
bool persistantStorage() const
See persistantStorage(bool)
Definition servant-base.hh:166
hpp::corbaServer::Server
Implementation of Hpp module Corba server.
Definition server.hh:78
hpp::core_impl::DistanceServant
Definition distances-fwd.hh:27
hpp::core_impl::DistanceServant::deleteThis
void deleteThis()
Definition distances.hh:40
hpp::core_impl::DistanceServant::deleteIfExpired
::CORBA::Boolean deleteIfExpired()
Definition distances.hh:51
hpp::core_impl::DistanceServant::~DistanceServant
virtual ~DistanceServant()
Definition distances.hh:32
hpp::core_impl::DistanceServant::call
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition distances.hh:73
hpp::core_impl::DistanceServant::DistanceServant
DistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition distances.hh:25
hpp::core_impl::WeighedDistanceServant::WeighedDistanceServant
WeighedDistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition distances.hh:99
hpp::core_impl::WeighedDistanceServant::~WeighedDistanceServant
virtual ~WeighedDistanceServant()
Definition distances.hh:106
hpp::core_impl::WeighedDistanceServant::getWeights
hpp::floatSeq * getWeights()
Definition distances.hh:114
hpp::core_impl::WeighedDistanceServant::setWeights
void setWeights(const hpp::floatSeq &weights)
Definition distances.hh:128
conversions.hh
distances-fwd.hh
fwd.hh
hpp::corbaServer::vectorToFloatSeq
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
hpp::corbaServer::floatSeqToVector
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
hpp::core::vector_t
pinocchio::vector_t vector_t
hpp
Implement CORBA interface `‘Obstacle’'.
hpp::floatSeq
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition common.idl:34
hpp::value_type
double value_type
Definition common.idl:18
servant-base.hh