hpp-corbaserver 6.0.0
Corba server for Humanoid Path Planner applications
Loading...
Searching...
No Matches
configuration_shooters.hh
Go to the documentation of this file.
1#ifndef hpp_core_idl__configuration__shooters_hxx__
2#define hpp_core_idl__configuration__shooters_hxx__
3
4//
5// Implemention of IDL interfaces in file /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.0/idl/hpp/core_idl/configuration_shooters.idl
6//
7
9
10#include <sstream>
11
15
16
17
18//
19// Implementational code for IDL interface hpp::core_idl::ConfigurationShooter
20//
21namespace hpp {
22
23namespace core_impl {
24template <typename _Base, typename _Storage>
26 const _Storage& s)
27 : hpp::corbaServer::ServantBase<hpp::core::ConfigurationShooter, _Storage> (server, s)
28{
29 // add extra constructor code here
30}
31template <typename _Base, typename _Storage>
36
37// Methods corresponding to IDL attributes and operations
38
39template <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
50template <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
61template <typename _Base, typename _Storage>
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
72template <typename _Base, typename _Storage>
74{
75 try {
76 // automatically generated code.
77
78 hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->shoot ());
79
80 return __return__;
81 } catch (const std::exception& e) {
82 throw ::hpp::Error (e.what());
83 }
84}
85
86// End of implementational code
87} // namespace core_impl
88
89} // namespace hpp
90
91//
92// Implementational code for IDL interface hpp::core_idl::configuration_shooter::Gaussian
93//
94namespace hpp {
95
96namespace core_impl {
97
98namespace configuration_shooter {
99template <typename _Base, typename _Storage>
101 const _Storage& s)
102 : hpp::core_impl::ConfigurationShooterServant<_Base, _Storage> (server, s)
103{
104 // add extra constructor code here
105}
106template <typename _Base, typename _Storage>
108{
109 // add extra destructor code here
110}
111
112// Methods corresponding to IDL attributes and operations
113
114template <typename _Base, typename _Storage>
116{
117 try {
118 // automatically generated code.
119 hpp::core::vector_t _c = hpp::corbaServer::floatSeqToVector (c);
120 (getT()->center (_c));
121
122
123 } catch (const std::exception& e) {
124 throw ::hpp::Error (e.what());
125 }
126}
127
128template <typename _Base, typename _Storage>
130{
131 try {
132 // automatically generated code.
133
134 hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->center ());
135
136 return __return__;
137 } catch (const std::exception& e) {
138 throw ::hpp::Error (e.what());
139 }
140}
141
142template <typename _Base, typename _Storage>
144{
145 try {
146 // automatically generated code.
147
148 hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->sigmas ());
149
150 return __return__;
151 } catch (const std::exception& e) {
152 throw ::hpp::Error (e.what());
153 }
154}
155
156template <typename _Base, typename _Storage>
158{
159 try {
160 // automatically generated code.
161 hpp::core::vector_t _s = hpp::corbaServer::floatSeqToVector (s);
162 (getT()->sigmas (_s));
163
164
165 } catch (const std::exception& e) {
166 throw ::hpp::Error (e.what());
167 }
168}
169
170// End of implementational code
171} // namespace configuration_shooter
172
173} // namespace core_impl
174
175} // namespace hpp
176
177//
178// Implementational code for IDL interface hpp::core_idl::configuration_shooter::UniformSeedable
179//
180namespace hpp {
181
182namespace core_impl {
183
184namespace configuration_shooter {
185template <typename _Base, typename _Storage>
187 const _Storage& s)
188 : hpp::core_impl::ConfigurationShooterServant<_Base, _Storage> (server, s)
189{
190 // add extra constructor code here
191}
192template <typename _Base, typename _Storage>
194{
195 // add extra destructor code here
196}
197
198// Methods corresponding to IDL attributes and operations
199
200template <typename _Base, typename _Storage>
202{
203 try {
204 // automatically generated code.
205
206 (getT()->seed (seed_));
207
208
209 } catch (const std::exception& e) {
210 throw ::hpp::Error (e.what());
211 }
212}
213
214// End of implementational code
215} // namespace configuration_shooter
216
217} // namespace core_impl
218
219} // namespace hpp
220
221
222
223
224
225#endif // hpp_core_idl__configuration__shooters_hxx__
226
bool persistantStorage() const
See persistantStorage(bool)
Definition servant-base.hh:166
Implementation of Hpp module Corba server.
Definition server.hh:78
Definition configuration_shooters-fwd.hh:28
void deleteThis()
Definition configuration_shooters.hh:40
::CORBA::Boolean deleteIfExpired()
Definition configuration_shooters.hh:51
virtual ~ConfigurationShooterServant()
Definition configuration_shooters.hh:32
ConfigurationShooterServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition configuration_shooters.hh:25
hpp::floatSeq * shoot()
Definition configuration_shooters.hh:73
void setSigmas(const hpp::floatSeq &s)
Definition configuration_shooters.hh:157
virtual ~GaussianServant()
Definition configuration_shooters.hh:107
hpp::floatSeq * getCenter()
Definition configuration_shooters.hh:129
void setCenter(const hpp::floatSeq &c)
Definition configuration_shooters.hh:115
hpp::floatSeq * getSigmas()
Definition configuration_shooters.hh:143
GaussianServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition configuration_shooters.hh:100
virtual ~UniformSeedableServant()
Definition configuration_shooters.hh:193
UniformSeedableServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition configuration_shooters.hh:186
void seed(::CORBA::Long seed_)
Definition configuration_shooters.hh:201
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
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