Line |
Branch |
Exec |
Source |
1 |
|
|
#ifndef hpp_core_idl__path__validations_hxx__ |
2 |
|
|
#define hpp_core_idl__path__validations_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/path_validations.idl |
6 |
|
|
// |
7 |
|
|
|
8 |
|
|
#include <hpp/core_idl/path_validations-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::ConfigValidation |
20 |
|
|
// |
21 |
|
|
namespace hpp { |
22 |
|
|
|
23 |
|
|
namespace core_impl { |
24 |
|
|
template <typename _Base, typename _Storage> |
25 |
|
✗ |
ConfigValidationServant<_Base, _Storage>::ConfigValidationServant(::hpp::corbaServer::Server* server, |
26 |
|
|
const _Storage& s) |
27 |
|
✗ |
: hpp::corbaServer::ServantBase<hpp::core::ConfigValidation, _Storage> (server, s) |
28 |
|
|
{ |
29 |
|
|
// add extra constructor code here |
30 |
|
|
} |
31 |
|
|
template <typename _Base, typename _Storage> |
32 |
|
✗ |
ConfigValidationServant<_Base, _Storage>::~ConfigValidationServant() |
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 ConfigValidationServant<_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 ConfigValidationServant<_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 ConfigValidationServant<_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 |
|
✗ |
::CORBA::Boolean ConfigValidationServant<_Base, _Storage>::validate (const hpp::floatSeq& config, hpp::core_idl::ValidationReport_out report) |
74 |
|
|
{ |
75 |
|
|
try { |
76 |
|
|
// generated from /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.0/idl/hpp/core_idl/path_validations.idl:31 |
77 |
|
|
using namespace hpp::core; |
78 |
|
✗ |
ValidationReportPtr_t vr; |
79 |
|
|
|
80 |
|
✗ |
bool res = get()->validate (hpp::corbaServer::floatSeqToVector(config), vr); |
81 |
|
|
|
82 |
|
✗ |
if (vr) { |
83 |
|
✗ |
std::ostringstream oss; oss << *vr; |
84 |
|
✗ |
std::string res = oss.str(); |
85 |
|
✗ |
report = CORBA::string_dup(res.c_str()); |
86 |
|
✗ |
} else { |
87 |
|
✗ |
report = CORBA::string_dup(""); |
88 |
|
|
} |
89 |
|
|
|
90 |
|
✗ |
return res; |
91 |
|
|
|
92 |
|
✗ |
} catch (const std::exception& e) { |
93 |
|
✗ |
throw ::hpp::Error (e.what()); |
94 |
|
|
} |
95 |
|
|
} |
96 |
|
|
|
97 |
|
|
// End of implementational code |
98 |
|
|
} // namespace core_impl |
99 |
|
|
|
100 |
|
|
} // namespace hpp |
101 |
|
|
|
102 |
|
|
// |
103 |
|
|
// Implementational code for IDL interface hpp::core_idl::ConfigValidations |
104 |
|
|
// |
105 |
|
|
namespace hpp { |
106 |
|
|
|
107 |
|
|
namespace core_impl { |
108 |
|
|
template <typename _Base, typename _Storage> |
109 |
|
✗ |
ConfigValidationsServant<_Base, _Storage>::ConfigValidationsServant(::hpp::corbaServer::Server* server, |
110 |
|
|
const _Storage& s) |
111 |
|
✗ |
: hpp::core_impl::ConfigValidationServant<_Base, _Storage> (server, s) |
112 |
|
|
{ |
113 |
|
|
// add extra constructor code here |
114 |
|
|
} |
115 |
|
|
template <typename _Base, typename _Storage> |
116 |
|
✗ |
ConfigValidationsServant<_Base, _Storage>::~ConfigValidationsServant() |
117 |
|
|
{ |
118 |
|
|
// add extra destructor code here |
119 |
|
|
} |
120 |
|
|
|
121 |
|
|
// Methods corresponding to IDL attributes and operations |
122 |
|
|
|
123 |
|
|
template <typename _Base, typename _Storage> |
124 |
|
✗ |
void ConfigValidationsServant<_Base, _Storage>::add (hpp::core_idl::ConfigValidation_ptr validation) |
125 |
|
|
{ |
126 |
|
|
try { |
127 |
|
|
// automatically generated code. |
128 |
|
✗ |
hpp::core::ConfigValidationPtr_t _validation = ::hpp::corbaServer::reference_to_object<hpp::core::ConfigValidation>(server_, validation); |
129 |
|
✗ |
(getT()->add (_validation)); |
130 |
|
|
|
131 |
|
|
|
132 |
|
✗ |
} catch (const std::exception& e) { |
133 |
|
✗ |
throw ::hpp::Error (e.what()); |
134 |
|
|
} |
135 |
|
|
} |
136 |
|
|
|
137 |
|
|
template <typename _Base, typename _Storage> |
138 |
|
✗ |
hpp::size_type ConfigValidationsServant<_Base, _Storage>::numberConfigValidations () |
139 |
|
|
{ |
140 |
|
|
try { |
141 |
|
|
// automatically generated code. |
142 |
|
|
|
143 |
|
✗ |
hpp::size_type __return__ (getT()->numberConfigValidations ()); |
144 |
|
|
|
145 |
|
✗ |
return __return__; |
146 |
|
✗ |
} catch (const std::exception& e) { |
147 |
|
✗ |
throw ::hpp::Error (e.what()); |
148 |
|
|
} |
149 |
|
|
} |
150 |
|
|
|
151 |
|
|
template <typename _Base, typename _Storage> |
152 |
|
✗ |
void ConfigValidationsServant<_Base, _Storage>::clear () |
153 |
|
|
{ |
154 |
|
|
try { |
155 |
|
|
// automatically generated code. |
156 |
|
|
|
157 |
|
✗ |
(getT()->clear ()); |
158 |
|
|
|
159 |
|
|
|
160 |
|
✗ |
} catch (const std::exception& e) { |
161 |
|
✗ |
throw ::hpp::Error (e.what()); |
162 |
|
|
} |
163 |
|
|
} |
164 |
|
|
|
165 |
|
|
template <typename _Base, typename _Storage> |
166 |
|
✗ |
void ConfigValidationsServant<_Base, _Storage>::setSecurityMargins (const hpp::floatSeqSeq& margins) |
167 |
|
|
{ |
168 |
|
|
try { |
169 |
|
|
// automatically generated code. |
170 |
|
✗ |
hpp::core::matrix_t _margins = hpp::corbaServer::floatSeqSeqToMatrix (margins); |
171 |
|
✗ |
(getT()->setSecurityMargins (_margins)); |
172 |
|
|
|
173 |
|
|
|
174 |
|
✗ |
} catch (const std::exception& e) { |
175 |
|
✗ |
throw ::hpp::Error (e.what()); |
176 |
|
|
} |
177 |
|
|
} |
178 |
|
|
|
179 |
|
|
template <typename _Base, typename _Storage> |
180 |
|
✗ |
void ConfigValidationsServant<_Base, _Storage>::setSecurityMarginBetweenBodies (const char* body_a, const char* body_b, hpp::value_type margin) |
181 |
|
|
{ |
182 |
|
|
try { |
183 |
|
|
// automatically generated code. |
184 |
|
✗ |
std::string _body_a (body_a); |
185 |
|
✗ |
std::string _body_b (body_b); |
186 |
|
✗ |
(getT()->setSecurityMarginBetweenBodies (_body_a, _body_b, margin)); |
187 |
|
|
|
188 |
|
|
|
189 |
|
✗ |
} catch (const std::exception& e) { |
190 |
|
✗ |
throw ::hpp::Error (e.what()); |
191 |
|
|
} |
192 |
|
|
} |
193 |
|
|
|
194 |
|
|
template <typename _Base, typename _Storage> |
195 |
|
✗ |
void ConfigValidationsServant<_Base, _Storage>::filterCollisionPairs (const hpp::core_idl::RelativeMotionMatrix& relMotion) |
196 |
|
|
{ |
197 |
|
|
try { |
198 |
|
|
// automatically generated code. |
199 |
|
✗ |
hpp::core::RelativeMotion::matrix_type _relMotion = hpp::corbaServer::intSeqSeqToMatrix (relMotion).cast<hpp::core::RelativeMotion::RelativeMotionType>(); |
200 |
|
✗ |
(getT()->filterCollisionPairs (_relMotion)); |
201 |
|
|
|
202 |
|
|
|
203 |
|
✗ |
} catch (const std::exception& e) { |
204 |
|
✗ |
throw ::hpp::Error (e.what()); |
205 |
|
|
} |
206 |
|
|
} |
207 |
|
|
|
208 |
|
|
// End of implementational code |
209 |
|
|
} // namespace core_impl |
210 |
|
|
|
211 |
|
|
} // namespace hpp |
212 |
|
|
|
213 |
|
|
// |
214 |
|
|
// Implementational code for IDL interface hpp::core_idl::CollisionValidation |
215 |
|
|
// |
216 |
|
|
namespace hpp { |
217 |
|
|
|
218 |
|
|
namespace core_impl { |
219 |
|
|
template <typename _Base, typename _Storage> |
220 |
|
✗ |
CollisionValidationServant<_Base, _Storage>::CollisionValidationServant(::hpp::corbaServer::Server* server, |
221 |
|
|
const _Storage& s) |
222 |
|
✗ |
: hpp::core_impl::ConfigValidationServant<_Base, _Storage> (server, s) |
223 |
|
|
{ |
224 |
|
|
// add extra constructor code here |
225 |
|
|
} |
226 |
|
|
template <typename _Base, typename _Storage> |
227 |
|
✗ |
CollisionValidationServant<_Base, _Storage>::~CollisionValidationServant() |
228 |
|
|
{ |
229 |
|
|
// add extra destructor code here |
230 |
|
|
} |
231 |
|
|
|
232 |
|
|
// Methods corresponding to IDL attributes and operations |
233 |
|
|
|
234 |
|
|
template <typename _Base, typename _Storage> |
235 |
|
✗ |
void CollisionValidationServant<_Base, _Storage>::setSecurityMargins (const hpp::floatSeqSeq& margins) |
236 |
|
|
{ |
237 |
|
|
try { |
238 |
|
|
// automatically generated code. |
239 |
|
✗ |
hpp::core::matrix_t _margins = hpp::corbaServer::floatSeqSeqToMatrix (margins); |
240 |
|
✗ |
(getT()->setSecurityMargins (_margins)); |
241 |
|
|
|
242 |
|
|
|
243 |
|
✗ |
} catch (const std::exception& e) { |
244 |
|
✗ |
throw ::hpp::Error (e.what()); |
245 |
|
|
} |
246 |
|
|
} |
247 |
|
|
|
248 |
|
|
template <typename _Base, typename _Storage> |
249 |
|
✗ |
void CollisionValidationServant<_Base, _Storage>::setSecurityMarginBetweenBodies (const char* body_a, const char* body_b, hpp::value_type margin) |
250 |
|
|
{ |
251 |
|
|
try { |
252 |
|
|
// automatically generated code. |
253 |
|
✗ |
std::string _body_a (body_a); |
254 |
|
✗ |
std::string _body_b (body_b); |
255 |
|
✗ |
(getT()->setSecurityMarginBetweenBodies (_body_a, _body_b, margin)); |
256 |
|
|
|
257 |
|
|
|
258 |
|
✗ |
} catch (const std::exception& e) { |
259 |
|
✗ |
throw ::hpp::Error (e.what()); |
260 |
|
|
} |
261 |
|
|
} |
262 |
|
|
|
263 |
|
|
template <typename _Base, typename _Storage> |
264 |
|
✗ |
void CollisionValidationServant<_Base, _Storage>::filterCollisionPairs (const hpp::core_idl::RelativeMotionMatrix& relMotion) |
265 |
|
|
{ |
266 |
|
|
try { |
267 |
|
|
// automatically generated code. |
268 |
|
✗ |
hpp::core::RelativeMotion::matrix_type _relMotion = hpp::corbaServer::intSeqSeqToMatrix (relMotion).cast<hpp::core::RelativeMotion::RelativeMotionType>(); |
269 |
|
✗ |
(getT()->filterCollisionPairs (_relMotion)); |
270 |
|
|
|
271 |
|
|
|
272 |
|
✗ |
} catch (const std::exception& e) { |
273 |
|
✗ |
throw ::hpp::Error (e.what()); |
274 |
|
|
} |
275 |
|
|
} |
276 |
|
|
|
277 |
|
|
// End of implementational code |
278 |
|
|
} // namespace core_impl |
279 |
|
|
|
280 |
|
|
} // namespace hpp |
281 |
|
|
|
282 |
|
|
// |
283 |
|
|
// Implementational code for IDL interface hpp::core_idl::PathValidation |
284 |
|
|
// |
285 |
|
|
namespace hpp { |
286 |
|
|
|
287 |
|
|
namespace core_impl { |
288 |
|
|
template <typename _Base, typename _Storage> |
289 |
|
✗ |
PathValidationServant<_Base, _Storage>::PathValidationServant(::hpp::corbaServer::Server* server, |
290 |
|
|
const _Storage& s) |
291 |
|
✗ |
: hpp::corbaServer::ServantBase<hpp::core::PathValidation, _Storage> (server, s) |
292 |
|
|
{ |
293 |
|
|
// add extra constructor code here |
294 |
|
|
} |
295 |
|
|
template <typename _Base, typename _Storage> |
296 |
|
✗ |
PathValidationServant<_Base, _Storage>::~PathValidationServant() |
297 |
|
|
{ |
298 |
|
|
// add extra destructor code here |
299 |
|
|
} |
300 |
|
|
|
301 |
|
|
// Methods corresponding to IDL attributes and operations |
302 |
|
|
|
303 |
|
|
template <typename _Base, typename _Storage> |
304 |
|
✗ |
void PathValidationServant<_Base, _Storage>::deleteThis () |
305 |
|
|
{ |
306 |
|
|
try { |
307 |
|
|
// automatically generated code. |
308 |
|
✗ |
_ServantBase::deleteThis(); |
309 |
|
✗ |
} catch (const std::exception& e) { |
310 |
|
✗ |
throw ::hpp::Error (e.what()); |
311 |
|
|
} |
312 |
|
|
} |
313 |
|
|
|
314 |
|
|
template <typename _Base, typename _Storage> |
315 |
|
✗ |
::CORBA::Boolean PathValidationServant<_Base, _Storage>::deleteIfExpired () |
316 |
|
|
{ |
317 |
|
|
try { |
318 |
|
|
// automatically generated code. |
319 |
|
✗ |
return _ServantBase::deleteIfExpired(); |
320 |
|
✗ |
} catch (const std::exception& e) { |
321 |
|
✗ |
throw ::hpp::Error (e.what()); |
322 |
|
|
} |
323 |
|
|
} |
324 |
|
|
|
325 |
|
|
template <typename _Base, typename _Storage> |
326 |
|
✗ |
void PathValidationServant<_Base, _Storage>::persistantStorage (::CORBA::Boolean persistant) |
327 |
|
|
{ |
328 |
|
|
try { |
329 |
|
|
// automatically generated code. |
330 |
|
✗ |
_ServantBase::persistantStorage(persistant); |
331 |
|
✗ |
} catch (const std::exception& e) { |
332 |
|
✗ |
throw ::hpp::Error (e.what()); |
333 |
|
|
} |
334 |
|
|
} |
335 |
|
|
|
336 |
|
|
template <typename _Base, typename _Storage> |
337 |
|
✗ |
::CORBA::Boolean PathValidationServant<_Base, _Storage>::validate (hpp::core_idl::Path_ptr p, ::CORBA::Boolean reverse, hpp::core_idl::Path_out validPart, hpp::core_idl::PathValidationReport_out report) |
338 |
|
|
{ |
339 |
|
|
try { |
340 |
|
|
// generated from /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.0/idl/hpp/core_idl/path_validations.idl:66 |
341 |
|
|
using namespace hpp::core; |
342 |
|
✗ |
PathPtr_t _p (::hpp::corbaServer::reference_to_servant_base<core::Path>(server_, p)->get()); |
343 |
|
✗ |
PathPtr_t vp; |
344 |
|
✗ |
PathValidationReportPtr_t pvr; |
345 |
|
|
|
346 |
|
✗ |
bool res = get()->validate (_p, reverse, vp, pvr); |
347 |
|
|
|
348 |
|
✗ |
if (pvr) { |
349 |
|
✗ |
std::ostringstream oss; oss << *pvr; |
350 |
|
✗ |
std::string res = oss.str(); |
351 |
|
✗ |
report = CORBA::string_dup(res.c_str()); |
352 |
|
✗ |
} else { |
353 |
|
✗ |
report = CORBA::string_dup(""); |
354 |
|
|
} |
355 |
|
|
|
356 |
|
✗ |
validPart = ::hpp::corbaServer::makeServant<hpp::core_idl::Path_ptr> (server_, new Path (server_, vp)); |
357 |
|
✗ |
return res; |
358 |
|
|
|
359 |
|
✗ |
} catch (const std::exception& e) { |
360 |
|
✗ |
throw ::hpp::Error (e.what()); |
361 |
|
|
} |
362 |
|
|
} |
363 |
|
|
|
364 |
|
|
template <typename _Base, typename _Storage> |
365 |
|
✗ |
::CORBA::Boolean PathValidationServant<_Base, _Storage>::validateConfiguration (const hpp::floatSeq& config, hpp::core_idl::ValidationReport_out report) |
366 |
|
|
{ |
367 |
|
|
try { |
368 |
|
|
// generated from /root/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-6.0.0/idl/hpp/core_idl/path_validations.idl:66 |
369 |
|
|
using namespace hpp::core; |
370 |
|
✗ |
Configuration_t q(corbaServer::floatSeqToVector(config)); |
371 |
|
✗ |
ValidationReportPtr_t vr; |
372 |
|
✗ |
bool res = get()->validate(q, vr); |
373 |
|
✗ |
if (vr) { |
374 |
|
✗ |
std::ostringstream oss; oss << *vr; |
375 |
|
✗ |
std::string res = oss.str(); |
376 |
|
✗ |
report = CORBA::string_dup(res.c_str()); |
377 |
|
✗ |
} else { |
378 |
|
✗ |
report = CORBA::string_dup(""); |
379 |
|
|
} |
380 |
|
✗ |
return res; |
381 |
|
|
|
382 |
|
✗ |
} catch (const std::exception& e) { |
383 |
|
✗ |
throw ::hpp::Error (e.what()); |
384 |
|
|
} |
385 |
|
|
} |
386 |
|
|
|
387 |
|
|
// End of implementational code |
388 |
|
|
} // namespace core_impl |
389 |
|
|
|
390 |
|
|
} // namespace hpp |
391 |
|
|
|
392 |
|
|
// |
393 |
|
|
// Implementational code for IDL interface hpp::core_idl::PathValidations |
394 |
|
|
// |
395 |
|
|
namespace hpp { |
396 |
|
|
|
397 |
|
|
namespace core_impl { |
398 |
|
|
template <typename _Base, typename _Storage> |
399 |
|
✗ |
PathValidationsServant<_Base, _Storage>::PathValidationsServant(::hpp::corbaServer::Server* server, |
400 |
|
|
const _Storage& s) |
401 |
|
✗ |
: hpp::core_impl::PathValidationServant<_Base, _Storage> (server, s) |
402 |
|
|
{ |
403 |
|
|
// add extra constructor code here |
404 |
|
|
} |
405 |
|
|
template <typename _Base, typename _Storage> |
406 |
|
✗ |
PathValidationsServant<_Base, _Storage>::~PathValidationsServant() |
407 |
|
|
{ |
408 |
|
|
// add extra destructor code here |
409 |
|
|
} |
410 |
|
|
|
411 |
|
|
// Methods corresponding to IDL attributes and operations |
412 |
|
|
|
413 |
|
|
template <typename _Base, typename _Storage> |
414 |
|
✗ |
void PathValidationsServant<_Base, _Storage>::setSecurityMargins (const hpp::floatSeqSeq& margins) |
415 |
|
|
{ |
416 |
|
|
try { |
417 |
|
|
// automatically generated code. |
418 |
|
✗ |
hpp::core::matrix_t _margins = hpp::corbaServer::floatSeqSeqToMatrix (margins); |
419 |
|
✗ |
(getT()->setSecurityMargins (_margins)); |
420 |
|
|
|
421 |
|
|
|
422 |
|
✗ |
} catch (const std::exception& e) { |
423 |
|
✗ |
throw ::hpp::Error (e.what()); |
424 |
|
|
} |
425 |
|
|
} |
426 |
|
|
|
427 |
|
|
template <typename _Base, typename _Storage> |
428 |
|
✗ |
void PathValidationsServant<_Base, _Storage>::setSecurityMarginBetweenBodies (const char* body_a, const char* body_b, hpp::value_type margin) |
429 |
|
|
{ |
430 |
|
|
try { |
431 |
|
|
// automatically generated code. |
432 |
|
✗ |
std::string _body_a (body_a); |
433 |
|
✗ |
std::string _body_b (body_b); |
434 |
|
✗ |
(getT()->setSecurityMarginBetweenBodies (_body_a, _body_b, margin)); |
435 |
|
|
|
436 |
|
|
|
437 |
|
✗ |
} catch (const std::exception& e) { |
438 |
|
✗ |
throw ::hpp::Error (e.what()); |
439 |
|
|
} |
440 |
|
|
} |
441 |
|
|
|
442 |
|
|
template <typename _Base, typename _Storage> |
443 |
|
✗ |
void PathValidationsServant<_Base, _Storage>::filterCollisionPairs (const hpp::core_idl::RelativeMotionMatrix& relMotion) |
444 |
|
|
{ |
445 |
|
|
try { |
446 |
|
|
// automatically generated code. |
447 |
|
✗ |
hpp::core::RelativeMotion::matrix_type _relMotion = hpp::corbaServer::intSeqSeqToMatrix (relMotion).cast<hpp::core::RelativeMotion::RelativeMotionType>(); |
448 |
|
✗ |
(getT()->filterCollisionPairs (_relMotion)); |
449 |
|
|
|
450 |
|
|
|
451 |
|
✗ |
} catch (const std::exception& e) { |
452 |
|
✗ |
throw ::hpp::Error (e.what()); |
453 |
|
|
} |
454 |
|
|
} |
455 |
|
|
|
456 |
|
|
// End of implementational code |
457 |
|
|
} // namespace core_impl |
458 |
|
|
|
459 |
|
|
} // namespace hpp |
460 |
|
|
|
461 |
|
|
// |
462 |
|
|
// Implementational code for IDL interface hpp::core_idl::ContinuousValidation |
463 |
|
|
// |
464 |
|
|
namespace hpp { |
465 |
|
|
|
466 |
|
|
namespace core_impl { |
467 |
|
|
template <typename _Base, typename _Storage> |
468 |
|
✗ |
ContinuousValidationServant<_Base, _Storage>::ContinuousValidationServant(::hpp::corbaServer::Server* server, |
469 |
|
|
const _Storage& s) |
470 |
|
✗ |
: hpp::core_impl::PathValidationServant<_Base, _Storage> (server, s) |
471 |
|
|
{ |
472 |
|
|
// add extra constructor code here |
473 |
|
|
} |
474 |
|
|
template <typename _Base, typename _Storage> |
475 |
|
✗ |
ContinuousValidationServant<_Base, _Storage>::~ContinuousValidationServant() |
476 |
|
|
{ |
477 |
|
|
// add extra destructor code here |
478 |
|
|
} |
479 |
|
|
|
480 |
|
|
// Methods corresponding to IDL attributes and operations |
481 |
|
|
|
482 |
|
|
template <typename _Base, typename _Storage> |
483 |
|
✗ |
void ContinuousValidationServant<_Base, _Storage>::setSecurityMargins (const hpp::floatSeqSeq& margins) |
484 |
|
|
{ |
485 |
|
|
try { |
486 |
|
|
// automatically generated code. |
487 |
|
✗ |
hpp::core::matrix_t _margins = hpp::corbaServer::floatSeqSeqToMatrix (margins); |
488 |
|
✗ |
(getT()->setSecurityMargins (_margins)); |
489 |
|
|
|
490 |
|
|
|
491 |
|
✗ |
} catch (const std::exception& e) { |
492 |
|
✗ |
throw ::hpp::Error (e.what()); |
493 |
|
|
} |
494 |
|
|
} |
495 |
|
|
|
496 |
|
|
template <typename _Base, typename _Storage> |
497 |
|
✗ |
void ContinuousValidationServant<_Base, _Storage>::setSecurityMarginBetweenBodies (const char* body_a, const char* body_b, hpp::value_type margin) |
498 |
|
|
{ |
499 |
|
|
try { |
500 |
|
|
// automatically generated code. |
501 |
|
✗ |
std::string _body_a (body_a); |
502 |
|
✗ |
std::string _body_b (body_b); |
503 |
|
✗ |
(getT()->setSecurityMarginBetweenBodies (_body_a, _body_b, margin)); |
504 |
|
|
|
505 |
|
|
|
506 |
|
✗ |
} catch (const std::exception& e) { |
507 |
|
✗ |
throw ::hpp::Error (e.what()); |
508 |
|
|
} |
509 |
|
|
} |
510 |
|
|
|
511 |
|
|
template <typename _Base, typename _Storage> |
512 |
|
✗ |
void ContinuousValidationServant<_Base, _Storage>::filterCollisionPairs (const hpp::core_idl::RelativeMotionMatrix& relMotion) |
513 |
|
|
{ |
514 |
|
|
try { |
515 |
|
|
// automatically generated code. |
516 |
|
✗ |
hpp::core::RelativeMotion::matrix_type _relMotion = hpp::corbaServer::intSeqSeqToMatrix (relMotion).cast<hpp::core::RelativeMotion::RelativeMotionType>(); |
517 |
|
✗ |
(getT()->filterCollisionPairs (_relMotion)); |
518 |
|
|
|
519 |
|
|
|
520 |
|
✗ |
} catch (const std::exception& e) { |
521 |
|
✗ |
throw ::hpp::Error (e.what()); |
522 |
|
|
} |
523 |
|
|
} |
524 |
|
|
|
525 |
|
|
template <typename _Base, typename _Storage> |
526 |
|
✗ |
void ContinuousValidationServant<_Base, _Storage>::setBreakDistance (hpp::value_type breakDistance) |
527 |
|
|
{ |
528 |
|
|
try { |
529 |
|
|
// automatically generated code. |
530 |
|
|
|
531 |
|
✗ |
(getT()->breakDistance (breakDistance)); |
532 |
|
|
|
533 |
|
|
|
534 |
|
✗ |
} catch (const std::exception& e) { |
535 |
|
✗ |
throw ::hpp::Error (e.what()); |
536 |
|
|
} |
537 |
|
|
} |
538 |
|
|
|
539 |
|
|
template <typename _Base, typename _Storage> |
540 |
|
✗ |
hpp::value_type ContinuousValidationServant<_Base, _Storage>::getBreakDistance () |
541 |
|
|
{ |
542 |
|
|
try { |
543 |
|
|
// automatically generated code. |
544 |
|
|
|
545 |
|
✗ |
hpp::value_type __return__ (getT()->breakDistance ()); |
546 |
|
|
|
547 |
|
✗ |
return __return__; |
548 |
|
✗ |
} catch (const std::exception& e) { |
549 |
|
✗ |
throw ::hpp::Error (e.what()); |
550 |
|
|
} |
551 |
|
|
} |
552 |
|
|
|
553 |
|
|
// End of implementational code |
554 |
|
|
} // namespace core_impl |
555 |
|
|
|
556 |
|
|
} // namespace hpp |
557 |
|
|
|
558 |
|
|
// |
559 |
|
|
// Implementational code for IDL interface hpp::core_idl::pathValidation_idl::Discretized |
560 |
|
|
// |
561 |
|
|
namespace hpp { |
562 |
|
|
|
563 |
|
|
namespace core_impl { |
564 |
|
|
|
565 |
|
|
namespace pathValidation_impl { |
566 |
|
|
template <typename _Base, typename _Storage> |
567 |
|
✗ |
DiscretizedServant<_Base, _Storage>::DiscretizedServant(::hpp::corbaServer::Server* server, |
568 |
|
|
const _Storage& s) |
569 |
|
✗ |
: hpp::core_impl::PathValidationServant<_Base, _Storage> (server, s) |
570 |
|
|
{ |
571 |
|
|
// add extra constructor code here |
572 |
|
|
} |
573 |
|
|
template <typename _Base, typename _Storage> |
574 |
|
✗ |
DiscretizedServant<_Base, _Storage>::~DiscretizedServant() |
575 |
|
|
{ |
576 |
|
|
// add extra destructor code here |
577 |
|
|
} |
578 |
|
|
|
579 |
|
|
// Methods corresponding to IDL attributes and operations |
580 |
|
|
|
581 |
|
|
template <typename _Base, typename _Storage> |
582 |
|
✗ |
void DiscretizedServant<_Base, _Storage>::setSecurityMargins (const hpp::floatSeqSeq& margins) |
583 |
|
|
{ |
584 |
|
|
try { |
585 |
|
|
// automatically generated code. |
586 |
|
✗ |
hpp::core::matrix_t _margins = hpp::corbaServer::floatSeqSeqToMatrix (margins); |
587 |
|
✗ |
(getT()->setSecurityMargins (_margins)); |
588 |
|
|
|
589 |
|
|
|
590 |
|
✗ |
} catch (const std::exception& e) { |
591 |
|
✗ |
throw ::hpp::Error (e.what()); |
592 |
|
|
} |
593 |
|
|
} |
594 |
|
|
|
595 |
|
|
template <typename _Base, typename _Storage> |
596 |
|
✗ |
void DiscretizedServant<_Base, _Storage>::setSecurityMarginBetweenBodies (const char* body_a, const char* body_b, hpp::value_type margin) |
597 |
|
|
{ |
598 |
|
|
try { |
599 |
|
|
// automatically generated code. |
600 |
|
✗ |
std::string _body_a (body_a); |
601 |
|
✗ |
std::string _body_b (body_b); |
602 |
|
✗ |
(getT()->setSecurityMarginBetweenBodies (_body_a, _body_b, margin)); |
603 |
|
|
|
604 |
|
|
|
605 |
|
✗ |
} catch (const std::exception& e) { |
606 |
|
✗ |
throw ::hpp::Error (e.what()); |
607 |
|
|
} |
608 |
|
|
} |
609 |
|
|
|
610 |
|
|
template <typename _Base, typename _Storage> |
611 |
|
✗ |
void DiscretizedServant<_Base, _Storage>::filterCollisionPairs (const hpp::core_idl::RelativeMotionMatrix& relMotion) |
612 |
|
|
{ |
613 |
|
|
try { |
614 |
|
|
// automatically generated code. |
615 |
|
✗ |
hpp::core::RelativeMotion::matrix_type _relMotion = hpp::corbaServer::intSeqSeqToMatrix (relMotion).cast<hpp::core::RelativeMotion::RelativeMotionType>(); |
616 |
|
✗ |
(getT()->filterCollisionPairs (_relMotion)); |
617 |
|
|
|
618 |
|
|
|
619 |
|
✗ |
} catch (const std::exception& e) { |
620 |
|
✗ |
throw ::hpp::Error (e.what()); |
621 |
|
|
} |
622 |
|
|
} |
623 |
|
|
|
624 |
|
|
// End of implementational code |
625 |
|
|
} // namespace pathValidation_impl |
626 |
|
|
|
627 |
|
|
} // namespace core_impl |
628 |
|
|
|
629 |
|
|
} // namespace hpp |
630 |
|
|
|
631 |
|
|
|
632 |
|
|
|
633 |
|
|
|
634 |
|
|
|
635 |
|
|
#endif // hpp_core_idl__path__validations_hxx__ |
636 |
|
|
|
637 |
|
|
|