GCC Code Coverage Report


Directory: src/
File: src/hpp/corbaserver/manipulation/robotSK.cc
Date: 2024-12-13 15:43:02
Exec Total Coverage
Lines: 0 520 0.0%
Branches: 0 320 0.0%

Line Branch Exec Source
1 // This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit.
2
3 #include "robot-idl.hh"
4 #include <omniORB4/IOP_S.h>
5 #include <omniORB4/IOP_C.h>
6 #include <omniORB4/callDescriptor.h>
7 #include <omniORB4/callHandle.h>
8 #include <omniORB4/objTracker.h>
9
10
11 OMNI_USING_NAMESPACE(omni)
12
13 OMNI_MAYBE_UNUSED static const char* _0RL_library_version = omniORB_4_3;
14
15
16
17 hpp::corbaserver::manipulation::Robot_ptr hpp::corbaserver::manipulation::Robot_Helper::_nil() {
18 return ::hpp::corbaserver::manipulation::Robot::_nil();
19 }
20
21 ::CORBA::Boolean hpp::corbaserver::manipulation::Robot_Helper::is_nil(::hpp::corbaserver::manipulation::Robot_ptr p) {
22 return ::CORBA::is_nil(p);
23
24 }
25
26 void hpp::corbaserver::manipulation::Robot_Helper::release(::hpp::corbaserver::manipulation::Robot_ptr p) {
27 ::CORBA::release(p);
28 }
29
30 void hpp::corbaserver::manipulation::Robot_Helper::marshalObjRef(::hpp::corbaserver::manipulation::Robot_ptr obj, cdrStream& s) {
31 ::hpp::corbaserver::manipulation::Robot::_marshalObjRef(obj, s);
32 }
33
34 hpp::corbaserver::manipulation::Robot_ptr hpp::corbaserver::manipulation::Robot_Helper::unmarshalObjRef(cdrStream& s) {
35 return ::hpp::corbaserver::manipulation::Robot::_unmarshalObjRef(s);
36 }
37
38 void hpp::corbaserver::manipulation::Robot_Helper::duplicate(::hpp::corbaserver::manipulation::Robot_ptr obj) {
39 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
40 }
41
42 hpp::corbaserver::manipulation::Robot_ptr
43 hpp::corbaserver::manipulation::Robot::_duplicate(::hpp::corbaserver::manipulation::Robot_ptr obj)
44 {
45 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
46 return obj;
47 }
48
49 hpp::corbaserver::manipulation::Robot_ptr
50 hpp::corbaserver::manipulation::Robot::_narrow(::CORBA::Object_ptr obj)
51 {
52 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
53 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
54 return e ? e : _nil();
55 }
56
57
58 hpp::corbaserver::manipulation::Robot_ptr
59 hpp::corbaserver::manipulation::Robot::_unchecked_narrow(::CORBA::Object_ptr obj)
60 {
61 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
62 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
63 return e ? e : _nil();
64 }
65
66 hpp::corbaserver::manipulation::Robot_ptr
67 hpp::corbaserver::manipulation::Robot::_nil()
68 {
69 #ifdef OMNI_UNLOADABLE_STUBS
70 static _objref_Robot _the_nil_obj;
71 return &_the_nil_obj;
72 #else
73 static _objref_Robot* _the_nil_ptr = 0;
74 if (!_the_nil_ptr) {
75 omni::nilRefLock().lock();
76 if (!_the_nil_ptr) {
77 _the_nil_ptr = new _objref_Robot;
78 registerNilCorbaObject(_the_nil_ptr);
79 }
80 omni::nilRefLock().unlock();
81 }
82 return _the_nil_ptr;
83 #endif
84 }
85
86 const char* hpp::corbaserver::manipulation::Robot::_PD_repoId = "IDL:hpp/corbaserver/manipulation/Robot:1.0";
87
88
89 hpp::corbaserver::manipulation::_objref_Robot::~_objref_Robot() {
90
91 }
92
93
94 hpp::corbaserver::manipulation::_objref_Robot::_objref_Robot(omniIOR* ior, omniIdentity* id) :
95 omniObjRef(::hpp::corbaserver::manipulation::Robot::_PD_repoId, ior, id, 1)
96
97
98 {
99 _PR_setobj(this);
100 }
101
102 void*
103 hpp::corbaserver::manipulation::_objref_Robot::_ptrToObjRef(const char* id)
104 {
105 if (id == ::hpp::corbaserver::manipulation::Robot::_PD_repoId)
106 return (::hpp::corbaserver::manipulation::Robot_ptr) this;
107
108 if (id == ::CORBA::Object::_PD_repoId)
109 return (::CORBA::Object_ptr) this;
110
111 if (omni::strMatch(id, ::hpp::corbaserver::manipulation::Robot::_PD_repoId))
112 return (::hpp::corbaserver::manipulation::Robot_ptr) this;
113
114 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
115 return (::CORBA::Object_ptr) this;
116
117 return 0;
118 }
119
120
121 //
122 // Code for hpp::corbaserver::manipulation::Robot::insertRobotModel
123
124 // Proxy call descriptor class. Mangled signature:
125 // void_i_cstring_i_cstring_i_cstring_i_cstring_e_chpp_mError
126 class _0RL_cd_4703f5b0197d067f_00000000
127 : public omniCallDescriptor
128 {
129 public:
130 inline _0RL_cd_4703f5b0197d067f_00000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
131 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
132 {
133
134 }
135
136 void marshalArguments(cdrStream&);
137 void unmarshalArguments(cdrStream&);
138
139
140 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
141 static const char* const _user_exns[];
142
143 ::CORBA::String_var arg_0_;
144 const char* arg_0;
145 ::CORBA::String_var arg_1_;
146 const char* arg_1;
147 ::CORBA::String_var arg_2_;
148 const char* arg_2;
149 ::CORBA::String_var arg_3_;
150 const char* arg_3;
151 };
152
153 void _0RL_cd_4703f5b0197d067f_00000000::marshalArguments(cdrStream& _n)
154 {
155 _n.marshalString(arg_0,0);
156 _n.marshalString(arg_1,0);
157 _n.marshalString(arg_2,0);
158 _n.marshalString(arg_3,0);
159
160 }
161
162 void _0RL_cd_4703f5b0197d067f_00000000::unmarshalArguments(cdrStream& _n)
163 {
164 arg_0_ = _n.unmarshalString(0);
165 arg_0 = arg_0_.in();
166 arg_1_ = _n.unmarshalString(0);
167 arg_1 = arg_1_.in();
168 arg_2_ = _n.unmarshalString(0);
169 arg_2 = arg_2_.in();
170 arg_3_ = _n.unmarshalString(0);
171 arg_3 = arg_3_.in();
172
173 }
174
175 const char* const _0RL_cd_4703f5b0197d067f_00000000::_user_exns[] = {
176 hpp::Error::_PD_repoId
177 };
178
179 void _0RL_cd_4703f5b0197d067f_00000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
180 {
181 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
182 hpp::Error _ex;
183 _ex <<= s;
184 if (iop_client) iop_client->RequestCompleted();
185 throw _ex;
186 }
187
188
189 else {
190 if (iop_client) iop_client->RequestCompleted(1);
191 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
192 (::CORBA::CompletionStatus)s.completion());
193 }
194 }
195
196 // Local call call-back function.
197 static void
198 _0RL_lcfn_4703f5b0197d067f_10000000(omniCallDescriptor* cd, omniServant* svnt)
199 {
200 _0RL_cd_4703f5b0197d067f_00000000* tcd = (_0RL_cd_4703f5b0197d067f_00000000*)cd;
201 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
202 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
203 impl->insertRobotModel(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
204 #else
205 if (!cd->is_upcall())
206 impl->insertRobotModel(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
207 else {
208 try {
209 impl->insertRobotModel(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
210 }
211 catch(hpp::Error& ex) {
212 throw omniORB::StubUserException(ex._NP_duplicate());
213 }
214
215
216 }
217 #endif
218
219
220 }
221
222 void hpp::corbaserver::manipulation::_objref_Robot::insertRobotModel(const char* robotName, const char* rootJointType, const char* urdfname, const char* srdfname)
223 {
224 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_10000000, "insertRobotModel", 17);
225 _call_desc.arg_0 = robotName;
226 _call_desc.arg_1 = rootJointType;
227 _call_desc.arg_2 = urdfname;
228 _call_desc.arg_3 = srdfname;
229
230 _invoke(_call_desc);
231
232
233
234 }
235
236
237 //
238 // Code for hpp::corbaserver::manipulation::Robot::insertRobotModelOnFrame
239
240 // Proxy call descriptor class. Mangled signature:
241 // void_i_cstring_i_cstring_i_cstring_i_cstring_i_cstring_e_chpp_mError
242 class _0RL_cd_4703f5b0197d067f_20000000
243 : public omniCallDescriptor
244 {
245 public:
246 inline _0RL_cd_4703f5b0197d067f_20000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
247 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
248 {
249
250 }
251
252 void marshalArguments(cdrStream&);
253 void unmarshalArguments(cdrStream&);
254
255
256 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
257 static const char* const _user_exns[];
258
259 ::CORBA::String_var arg_0_;
260 const char* arg_0;
261 ::CORBA::String_var arg_1_;
262 const char* arg_1;
263 ::CORBA::String_var arg_2_;
264 const char* arg_2;
265 ::CORBA::String_var arg_3_;
266 const char* arg_3;
267 ::CORBA::String_var arg_4_;
268 const char* arg_4;
269 };
270
271 void _0RL_cd_4703f5b0197d067f_20000000::marshalArguments(cdrStream& _n)
272 {
273 _n.marshalString(arg_0,0);
274 _n.marshalString(arg_1,0);
275 _n.marshalString(arg_2,0);
276 _n.marshalString(arg_3,0);
277 _n.marshalString(arg_4,0);
278
279 }
280
281 void _0RL_cd_4703f5b0197d067f_20000000::unmarshalArguments(cdrStream& _n)
282 {
283 arg_0_ = _n.unmarshalString(0);
284 arg_0 = arg_0_.in();
285 arg_1_ = _n.unmarshalString(0);
286 arg_1 = arg_1_.in();
287 arg_2_ = _n.unmarshalString(0);
288 arg_2 = arg_2_.in();
289 arg_3_ = _n.unmarshalString(0);
290 arg_3 = arg_3_.in();
291 arg_4_ = _n.unmarshalString(0);
292 arg_4 = arg_4_.in();
293
294 }
295
296 const char* const _0RL_cd_4703f5b0197d067f_20000000::_user_exns[] = {
297 hpp::Error::_PD_repoId
298 };
299
300 void _0RL_cd_4703f5b0197d067f_20000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
301 {
302 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
303 hpp::Error _ex;
304 _ex <<= s;
305 if (iop_client) iop_client->RequestCompleted();
306 throw _ex;
307 }
308
309
310 else {
311 if (iop_client) iop_client->RequestCompleted(1);
312 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
313 (::CORBA::CompletionStatus)s.completion());
314 }
315 }
316
317 // Local call call-back function.
318 static void
319 _0RL_lcfn_4703f5b0197d067f_30000000(omniCallDescriptor* cd, omniServant* svnt)
320 {
321 _0RL_cd_4703f5b0197d067f_20000000* tcd = (_0RL_cd_4703f5b0197d067f_20000000*)cd;
322 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
323 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
324 impl->insertRobotModelOnFrame(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
325 #else
326 if (!cd->is_upcall())
327 impl->insertRobotModelOnFrame(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
328 else {
329 try {
330 impl->insertRobotModelOnFrame(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
331 }
332 catch(hpp::Error& ex) {
333 throw omniORB::StubUserException(ex._NP_duplicate());
334 }
335
336
337 }
338 #endif
339
340
341 }
342
343 void hpp::corbaserver::manipulation::_objref_Robot::insertRobotModelOnFrame(const char* robotName, const char* frameName, const char* rootJointType, const char* urdfname, const char* srdfname)
344 {
345 _0RL_cd_4703f5b0197d067f_20000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_30000000, "insertRobotModelOnFrame", 24);
346 _call_desc.arg_0 = robotName;
347 _call_desc.arg_1 = frameName;
348 _call_desc.arg_2 = rootJointType;
349 _call_desc.arg_3 = urdfname;
350 _call_desc.arg_4 = srdfname;
351
352 _invoke(_call_desc);
353
354
355
356 }
357
358
359 //
360 // Code for hpp::corbaserver::manipulation::Robot::insertRobotModelFromString
361
362 // Local call call-back function.
363 static void
364 _0RL_lcfn_4703f5b0197d067f_40000000(omniCallDescriptor* cd, omniServant* svnt)
365 {
366 _0RL_cd_4703f5b0197d067f_00000000* tcd = (_0RL_cd_4703f5b0197d067f_00000000*)cd;
367 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
368 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
369 impl->insertRobotModelFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
370 #else
371 if (!cd->is_upcall())
372 impl->insertRobotModelFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
373 else {
374 try {
375 impl->insertRobotModelFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
376 }
377 catch(hpp::Error& ex) {
378 throw omniORB::StubUserException(ex._NP_duplicate());
379 }
380
381
382 }
383 #endif
384
385
386 }
387
388 void hpp::corbaserver::manipulation::_objref_Robot::insertRobotModelFromString(const char* robotName, const char* rootJointType, const char* urdfString, const char* srdfString)
389 {
390 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_40000000, "insertRobotModelFromString", 27);
391 _call_desc.arg_0 = robotName;
392 _call_desc.arg_1 = rootJointType;
393 _call_desc.arg_2 = urdfString;
394 _call_desc.arg_3 = srdfString;
395
396 _invoke(_call_desc);
397
398
399
400 }
401
402
403 //
404 // Code for hpp::corbaserver::manipulation::Robot::insertRobotModelOnFrameFromString
405
406 // Local call call-back function.
407 static void
408 _0RL_lcfn_4703f5b0197d067f_50000000(omniCallDescriptor* cd, omniServant* svnt)
409 {
410 _0RL_cd_4703f5b0197d067f_20000000* tcd = (_0RL_cd_4703f5b0197d067f_20000000*)cd;
411 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
412 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
413 impl->insertRobotModelOnFrameFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
414 #else
415 if (!cd->is_upcall())
416 impl->insertRobotModelOnFrameFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
417 else {
418 try {
419 impl->insertRobotModelOnFrameFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
420 }
421 catch(hpp::Error& ex) {
422 throw omniORB::StubUserException(ex._NP_duplicate());
423 }
424
425
426 }
427 #endif
428
429
430 }
431
432 void hpp::corbaserver::manipulation::_objref_Robot::insertRobotModelOnFrameFromString(const char* robotName, const char* frameName, const char* rootJointType, const char* urdfString, const char* srdfString)
433 {
434 _0RL_cd_4703f5b0197d067f_20000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_50000000, "insertRobotModelOnFrameFromString", 34);
435 _call_desc.arg_0 = robotName;
436 _call_desc.arg_1 = frameName;
437 _call_desc.arg_2 = rootJointType;
438 _call_desc.arg_3 = urdfString;
439 _call_desc.arg_4 = srdfString;
440
441 _invoke(_call_desc);
442
443
444
445 }
446
447
448 //
449 // Code for hpp::corbaserver::manipulation::Robot::insertRobotSRDFModel
450
451 // Proxy call descriptor class. Mangled signature:
452 // void_i_cstring_i_cstring_e_chpp_mError
453 class _0RL_cd_4703f5b0197d067f_60000000
454 : public omniCallDescriptor
455 {
456 public:
457 inline _0RL_cd_4703f5b0197d067f_60000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
458 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
459 {
460
461 }
462
463 void marshalArguments(cdrStream&);
464 void unmarshalArguments(cdrStream&);
465
466
467 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
468 static const char* const _user_exns[];
469
470 ::CORBA::String_var arg_0_;
471 const char* arg_0;
472 ::CORBA::String_var arg_1_;
473 const char* arg_1;
474 };
475
476 void _0RL_cd_4703f5b0197d067f_60000000::marshalArguments(cdrStream& _n)
477 {
478 _n.marshalString(arg_0,0);
479 _n.marshalString(arg_1,0);
480
481 }
482
483 void _0RL_cd_4703f5b0197d067f_60000000::unmarshalArguments(cdrStream& _n)
484 {
485 arg_0_ = _n.unmarshalString(0);
486 arg_0 = arg_0_.in();
487 arg_1_ = _n.unmarshalString(0);
488 arg_1 = arg_1_.in();
489
490 }
491
492 const char* const _0RL_cd_4703f5b0197d067f_60000000::_user_exns[] = {
493 hpp::Error::_PD_repoId
494 };
495
496 void _0RL_cd_4703f5b0197d067f_60000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
497 {
498 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
499 hpp::Error _ex;
500 _ex <<= s;
501 if (iop_client) iop_client->RequestCompleted();
502 throw _ex;
503 }
504
505
506 else {
507 if (iop_client) iop_client->RequestCompleted(1);
508 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
509 (::CORBA::CompletionStatus)s.completion());
510 }
511 }
512
513 // Local call call-back function.
514 static void
515 _0RL_lcfn_4703f5b0197d067f_70000000(omniCallDescriptor* cd, omniServant* svnt)
516 {
517 _0RL_cd_4703f5b0197d067f_60000000* tcd = (_0RL_cd_4703f5b0197d067f_60000000*)cd;
518 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
519 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
520 impl->insertRobotSRDFModel(tcd->arg_0, tcd->arg_1);
521 #else
522 if (!cd->is_upcall())
523 impl->insertRobotSRDFModel(tcd->arg_0, tcd->arg_1);
524 else {
525 try {
526 impl->insertRobotSRDFModel(tcd->arg_0, tcd->arg_1);
527 }
528 catch(hpp::Error& ex) {
529 throw omniORB::StubUserException(ex._NP_duplicate());
530 }
531
532
533 }
534 #endif
535
536
537 }
538
539 void hpp::corbaserver::manipulation::_objref_Robot::insertRobotSRDFModel(const char* robotName, const char* srdfPath)
540 {
541 _0RL_cd_4703f5b0197d067f_60000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_70000000, "insertRobotSRDFModel", 21);
542 _call_desc.arg_0 = robotName;
543 _call_desc.arg_1 = srdfPath;
544
545 _invoke(_call_desc);
546
547
548
549 }
550
551
552 //
553 // Code for hpp::corbaserver::manipulation::Robot::insertRobotSRDFModelFromString
554
555 // Local call call-back function.
556 static void
557 _0RL_lcfn_4703f5b0197d067f_80000000(omniCallDescriptor* cd, omniServant* svnt)
558 {
559 _0RL_cd_4703f5b0197d067f_60000000* tcd = (_0RL_cd_4703f5b0197d067f_60000000*)cd;
560 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
561 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
562 impl->insertRobotSRDFModelFromString(tcd->arg_0, tcd->arg_1);
563 #else
564 if (!cd->is_upcall())
565 impl->insertRobotSRDFModelFromString(tcd->arg_0, tcd->arg_1);
566 else {
567 try {
568 impl->insertRobotSRDFModelFromString(tcd->arg_0, tcd->arg_1);
569 }
570 catch(hpp::Error& ex) {
571 throw omniORB::StubUserException(ex._NP_duplicate());
572 }
573
574
575 }
576 #endif
577
578
579 }
580
581 void hpp::corbaserver::manipulation::_objref_Robot::insertRobotSRDFModelFromString(const char* robotName, const char* srdfString)
582 {
583 _0RL_cd_4703f5b0197d067f_60000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_80000000, "insertRobotSRDFModelFromString", 31);
584 _call_desc.arg_0 = robotName;
585 _call_desc.arg_1 = srdfString;
586
587 _invoke(_call_desc);
588
589
590
591 }
592
593
594 //
595 // Code for hpp::corbaserver::manipulation::Robot::insertHumanoidModel
596
597 // Local call call-back function.
598 static void
599 _0RL_lcfn_4703f5b0197d067f_90000000(omniCallDescriptor* cd, omniServant* svnt)
600 {
601 _0RL_cd_4703f5b0197d067f_00000000* tcd = (_0RL_cd_4703f5b0197d067f_00000000*)cd;
602 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
603 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
604 impl->insertHumanoidModel(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
605 #else
606 if (!cd->is_upcall())
607 impl->insertHumanoidModel(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
608 else {
609 try {
610 impl->insertHumanoidModel(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
611 }
612 catch(hpp::Error& ex) {
613 throw omniORB::StubUserException(ex._NP_duplicate());
614 }
615
616
617 }
618 #endif
619
620
621 }
622
623 void hpp::corbaserver::manipulation::_objref_Robot::insertHumanoidModel(const char* robotName, const char* rootJointType, const char* urdfname, const char* srdfname)
624 {
625 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_90000000, "insertHumanoidModel", 20);
626 _call_desc.arg_0 = robotName;
627 _call_desc.arg_1 = rootJointType;
628 _call_desc.arg_2 = urdfname;
629 _call_desc.arg_3 = srdfname;
630
631 _invoke(_call_desc);
632
633
634
635 }
636
637
638 //
639 // Code for hpp::corbaserver::manipulation::Robot::insertHumanoidModelFromString
640
641 // Local call call-back function.
642 static void
643 _0RL_lcfn_4703f5b0197d067f_a0000000(omniCallDescriptor* cd, omniServant* svnt)
644 {
645 _0RL_cd_4703f5b0197d067f_00000000* tcd = (_0RL_cd_4703f5b0197d067f_00000000*)cd;
646 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
647 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
648 impl->insertHumanoidModelFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
649 #else
650 if (!cd->is_upcall())
651 impl->insertHumanoidModelFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
652 else {
653 try {
654 impl->insertHumanoidModelFromString(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
655 }
656 catch(hpp::Error& ex) {
657 throw omniORB::StubUserException(ex._NP_duplicate());
658 }
659
660
661 }
662 #endif
663
664
665 }
666
667 void hpp::corbaserver::manipulation::_objref_Robot::insertHumanoidModelFromString(const char* robotName, const char* rootJointType, const char* urdfString, const char* srdfString)
668 {
669 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_a0000000, "insertHumanoidModelFromString", 30);
670 _call_desc.arg_0 = robotName;
671 _call_desc.arg_1 = rootJointType;
672 _call_desc.arg_2 = urdfString;
673 _call_desc.arg_3 = srdfString;
674
675 _invoke(_call_desc);
676
677
678
679 }
680
681
682 //
683 // Code for hpp::corbaserver::manipulation::Robot::loadEnvironmentModel
684
685 // Proxy call descriptor class. Mangled signature:
686 // void_i_cstring_i_cstring_i_cstring_e_chpp_mError
687 class _0RL_cd_4703f5b0197d067f_b0000000
688 : public omniCallDescriptor
689 {
690 public:
691 inline _0RL_cd_4703f5b0197d067f_b0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
692 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
693 {
694
695 }
696
697 void marshalArguments(cdrStream&);
698 void unmarshalArguments(cdrStream&);
699
700
701 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
702 static const char* const _user_exns[];
703
704 ::CORBA::String_var arg_0_;
705 const char* arg_0;
706 ::CORBA::String_var arg_1_;
707 const char* arg_1;
708 ::CORBA::String_var arg_2_;
709 const char* arg_2;
710 };
711
712 void _0RL_cd_4703f5b0197d067f_b0000000::marshalArguments(cdrStream& _n)
713 {
714 _n.marshalString(arg_0,0);
715 _n.marshalString(arg_1,0);
716 _n.marshalString(arg_2,0);
717
718 }
719
720 void _0RL_cd_4703f5b0197d067f_b0000000::unmarshalArguments(cdrStream& _n)
721 {
722 arg_0_ = _n.unmarshalString(0);
723 arg_0 = arg_0_.in();
724 arg_1_ = _n.unmarshalString(0);
725 arg_1 = arg_1_.in();
726 arg_2_ = _n.unmarshalString(0);
727 arg_2 = arg_2_.in();
728
729 }
730
731 const char* const _0RL_cd_4703f5b0197d067f_b0000000::_user_exns[] = {
732 hpp::Error::_PD_repoId
733 };
734
735 void _0RL_cd_4703f5b0197d067f_b0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
736 {
737 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
738 hpp::Error _ex;
739 _ex <<= s;
740 if (iop_client) iop_client->RequestCompleted();
741 throw _ex;
742 }
743
744
745 else {
746 if (iop_client) iop_client->RequestCompleted(1);
747 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
748 (::CORBA::CompletionStatus)s.completion());
749 }
750 }
751
752 // Local call call-back function.
753 static void
754 _0RL_lcfn_4703f5b0197d067f_c0000000(omniCallDescriptor* cd, omniServant* svnt)
755 {
756 _0RL_cd_4703f5b0197d067f_b0000000* tcd = (_0RL_cd_4703f5b0197d067f_b0000000*)cd;
757 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
758 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
759 impl->loadEnvironmentModel(tcd->arg_0, tcd->arg_1, tcd->arg_2);
760 #else
761 if (!cd->is_upcall())
762 impl->loadEnvironmentModel(tcd->arg_0, tcd->arg_1, tcd->arg_2);
763 else {
764 try {
765 impl->loadEnvironmentModel(tcd->arg_0, tcd->arg_1, tcd->arg_2);
766 }
767 catch(hpp::Error& ex) {
768 throw omniORB::StubUserException(ex._NP_duplicate());
769 }
770
771
772 }
773 #endif
774
775
776 }
777
778 void hpp::corbaserver::manipulation::_objref_Robot::loadEnvironmentModel(const char* urdfName, const char* srdfName, const char* prefix)
779 {
780 _0RL_cd_4703f5b0197d067f_b0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_c0000000, "loadEnvironmentModel", 21);
781 _call_desc.arg_0 = urdfName;
782 _call_desc.arg_1 = srdfName;
783 _call_desc.arg_2 = prefix;
784
785 _invoke(_call_desc);
786
787
788
789 }
790
791
792 //
793 // Code for hpp::corbaserver::manipulation::Robot::getRootJointPosition
794
795 // Proxy call descriptor class. Mangled signature:
796 // _a7_cdouble_i_cstring_e_chpp_mError
797 class _0RL_cd_4703f5b0197d067f_d0000000
798 : public omniCallDescriptor
799 {
800 public:
801 inline _0RL_cd_4703f5b0197d067f_d0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
802 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
803 {
804
805 }
806
807 void marshalArguments(cdrStream&);
808 void unmarshalArguments(cdrStream&);
809
810 void unmarshalReturnedValues(cdrStream&);
811 void marshalReturnedValues(cdrStream&);
812
813 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
814 static const char* const _user_exns[];
815
816 ::CORBA::String_var arg_0_;
817 const char* arg_0;
818 hpp::Transform__var result;
819 };
820
821 void _0RL_cd_4703f5b0197d067f_d0000000::marshalArguments(cdrStream& _n)
822 {
823 _n.marshalString(arg_0,0);
824
825 }
826
827 void _0RL_cd_4703f5b0197d067f_d0000000::unmarshalArguments(cdrStream& _n)
828 {
829 arg_0_ = _n.unmarshalString(0);
830 arg_0 = arg_0_.in();
831
832 }
833
834 void _0RL_cd_4703f5b0197d067f_d0000000::marshalReturnedValues(cdrStream& _n)
835 {
836
837 #ifndef OMNI_MIXED_ENDIAN_DOUBLE
838 if (! _n.marshal_byte_swap()) {
839 _n.put_octet_array((_CORBA_Octet*)((::CORBA::Double*)result),56,omni::ALIGN_8);
840 }
841 else
842 #endif
843 {
844 _n.declareArrayLength(omni::ALIGN_8, 56);
845 for (_CORBA_ULong _0i0 = 0; _0i0 < 7; _0i0++){
846 result[_0i0] >>= _n;
847 }
848 }
849
850 }
851
852 void _0RL_cd_4703f5b0197d067f_d0000000::unmarshalReturnedValues(cdrStream& _n)
853 {
854 result = hpp::Transform__alloc();
855 _n.unmarshalArrayDouble((_CORBA_Double*)((::CORBA::Double*)result), 7);
856
857 }
858
859 const char* const _0RL_cd_4703f5b0197d067f_d0000000::_user_exns[] = {
860 hpp::Error::_PD_repoId
861 };
862
863 void _0RL_cd_4703f5b0197d067f_d0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
864 {
865 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
866 hpp::Error _ex;
867 _ex <<= s;
868 if (iop_client) iop_client->RequestCompleted();
869 throw _ex;
870 }
871
872
873 else {
874 if (iop_client) iop_client->RequestCompleted(1);
875 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
876 (::CORBA::CompletionStatus)s.completion());
877 }
878 }
879
880 // Local call call-back function.
881 static void
882 _0RL_lcfn_4703f5b0197d067f_e0000000(omniCallDescriptor* cd, omniServant* svnt)
883 {
884 _0RL_cd_4703f5b0197d067f_d0000000* tcd = (_0RL_cd_4703f5b0197d067f_d0000000*)cd;
885 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
886 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
887 tcd->result = impl->getRootJointPosition(tcd->arg_0);
888 #else
889 if (!cd->is_upcall())
890 tcd->result = impl->getRootJointPosition(tcd->arg_0);
891 else {
892 try {
893 tcd->result = impl->getRootJointPosition(tcd->arg_0);
894 }
895 catch(hpp::Error& ex) {
896 throw omniORB::StubUserException(ex._NP_duplicate());
897 }
898
899
900 }
901 #endif
902
903
904 }
905
906 hpp::Transform__slice* hpp::corbaserver::manipulation::_objref_Robot::getRootJointPosition(const char* robotName)
907 {
908 _0RL_cd_4703f5b0197d067f_d0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_e0000000, "getRootJointPosition", 21);
909 _call_desc.arg_0 = robotName;
910
911 _invoke(_call_desc);
912 return _call_desc.result._retn();
913
914
915 }
916
917
918 //
919 // Code for hpp::corbaserver::manipulation::Robot::setRootJointPosition
920
921 // Proxy call descriptor class. Mangled signature:
922 // void_i_cstring_i_a7_cdouble_e_chpp_mError
923 class _0RL_cd_4703f5b0197d067f_f0000000
924 : public omniCallDescriptor
925 {
926 public:
927 inline _0RL_cd_4703f5b0197d067f_f0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
928 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
929 {
930
931 }
932
933 void marshalArguments(cdrStream&);
934 void unmarshalArguments(cdrStream&);
935
936
937 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
938 static const char* const _user_exns[];
939
940 ::CORBA::String_var arg_0_;
941 const char* arg_0;
942 hpp::Transform_ arg_1_;
943 const hpp::Transform__slice* arg_1;
944 };
945
946 void _0RL_cd_4703f5b0197d067f_f0000000::marshalArguments(cdrStream& _n)
947 {
948 _n.marshalString(arg_0,0);
949
950 #ifndef OMNI_MIXED_ENDIAN_DOUBLE
951 if (! _n.marshal_byte_swap()) {
952 _n.put_octet_array((_CORBA_Octet*)((::CORBA::Double*)arg_1),56,omni::ALIGN_8);
953 }
954 else
955 #endif
956 {
957 _n.declareArrayLength(omni::ALIGN_8, 56);
958 for (_CORBA_ULong _0i0 = 0; _0i0 < 7; _0i0++){
959 arg_1[_0i0] >>= _n;
960 }
961 }
962
963 }
964
965 void _0RL_cd_4703f5b0197d067f_f0000000::unmarshalArguments(cdrStream& _n)
966 {
967 arg_0_ = _n.unmarshalString(0);
968 arg_0 = arg_0_.in();
969 _n.unmarshalArrayDouble((_CORBA_Double*)((::CORBA::Double*)arg_1_), 7);
970 arg_1 = &arg_1_[0];
971
972 }
973
974 const char* const _0RL_cd_4703f5b0197d067f_f0000000::_user_exns[] = {
975 hpp::Error::_PD_repoId
976 };
977
978 void _0RL_cd_4703f5b0197d067f_f0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
979 {
980 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
981 hpp::Error _ex;
982 _ex <<= s;
983 if (iop_client) iop_client->RequestCompleted();
984 throw _ex;
985 }
986
987
988 else {
989 if (iop_client) iop_client->RequestCompleted(1);
990 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
991 (::CORBA::CompletionStatus)s.completion());
992 }
993 }
994
995 // Local call call-back function.
996 static void
997 _0RL_lcfn_4703f5b0197d067f_01000000(omniCallDescriptor* cd, omniServant* svnt)
998 {
999 _0RL_cd_4703f5b0197d067f_f0000000* tcd = (_0RL_cd_4703f5b0197d067f_f0000000*)cd;
1000 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
1001 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1002 impl->setRootJointPosition(tcd->arg_0, tcd->arg_1);
1003 #else
1004 if (!cd->is_upcall())
1005 impl->setRootJointPosition(tcd->arg_0, tcd->arg_1);
1006 else {
1007 try {
1008 impl->setRootJointPosition(tcd->arg_0, tcd->arg_1);
1009 }
1010 catch(hpp::Error& ex) {
1011 throw omniORB::StubUserException(ex._NP_duplicate());
1012 }
1013
1014
1015 }
1016 #endif
1017
1018
1019 }
1020
1021 void hpp::corbaserver::manipulation::_objref_Robot::setRootJointPosition(const char* robotName, const ::hpp::Transform_ position)
1022 {
1023 _0RL_cd_4703f5b0197d067f_f0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_01000000, "setRootJointPosition", 21);
1024 _call_desc.arg_0 = robotName;
1025 _call_desc.arg_1 = &position[0];
1026
1027 _invoke(_call_desc);
1028
1029
1030
1031 }
1032
1033
1034 //
1035 // Code for hpp::corbaserver::manipulation::Robot::addGripper
1036
1037 // Proxy call descriptor class. Mangled signature:
1038 // void_i_cstring_i_cstring_i_a7_cdouble_i_cdouble_e_chpp_mError
1039 class _0RL_cd_4703f5b0197d067f_11000000
1040 : public omniCallDescriptor
1041 {
1042 public:
1043 inline _0RL_cd_4703f5b0197d067f_11000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1044 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1045 {
1046
1047 }
1048
1049 void marshalArguments(cdrStream&);
1050 void unmarshalArguments(cdrStream&);
1051
1052
1053 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1054 static const char* const _user_exns[];
1055
1056 ::CORBA::String_var arg_0_;
1057 const char* arg_0;
1058 ::CORBA::String_var arg_1_;
1059 const char* arg_1;
1060 hpp::Transform_ arg_2_;
1061 const hpp::Transform__slice* arg_2;
1062 ::CORBA::Double arg_3;
1063 };
1064
1065 void _0RL_cd_4703f5b0197d067f_11000000::marshalArguments(cdrStream& _n)
1066 {
1067 _n.marshalString(arg_0,0);
1068 _n.marshalString(arg_1,0);
1069
1070 #ifndef OMNI_MIXED_ENDIAN_DOUBLE
1071 if (! _n.marshal_byte_swap()) {
1072 _n.put_octet_array((_CORBA_Octet*)((::CORBA::Double*)arg_2),56,omni::ALIGN_8);
1073 }
1074 else
1075 #endif
1076 {
1077 _n.declareArrayLength(omni::ALIGN_8, 56);
1078 for (_CORBA_ULong _0i0 = 0; _0i0 < 7; _0i0++){
1079 arg_2[_0i0] >>= _n;
1080 }
1081 }
1082 arg_3 >>= _n;
1083
1084 }
1085
1086 void _0RL_cd_4703f5b0197d067f_11000000::unmarshalArguments(cdrStream& _n)
1087 {
1088 arg_0_ = _n.unmarshalString(0);
1089 arg_0 = arg_0_.in();
1090 arg_1_ = _n.unmarshalString(0);
1091 arg_1 = arg_1_.in();
1092 _n.unmarshalArrayDouble((_CORBA_Double*)((::CORBA::Double*)arg_2_), 7);
1093 arg_2 = &arg_2_[0];
1094 (::CORBA::Double&)arg_3 <<= _n;
1095
1096 }
1097
1098 const char* const _0RL_cd_4703f5b0197d067f_11000000::_user_exns[] = {
1099 hpp::Error::_PD_repoId
1100 };
1101
1102 void _0RL_cd_4703f5b0197d067f_11000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1103 {
1104 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1105 hpp::Error _ex;
1106 _ex <<= s;
1107 if (iop_client) iop_client->RequestCompleted();
1108 throw _ex;
1109 }
1110
1111
1112 else {
1113 if (iop_client) iop_client->RequestCompleted(1);
1114 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1115 (::CORBA::CompletionStatus)s.completion());
1116 }
1117 }
1118
1119 // Local call call-back function.
1120 static void
1121 _0RL_lcfn_4703f5b0197d067f_21000000(omniCallDescriptor* cd, omniServant* svnt)
1122 {
1123 _0RL_cd_4703f5b0197d067f_11000000* tcd = (_0RL_cd_4703f5b0197d067f_11000000*)cd;
1124 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
1125 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1126 impl->addGripper(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
1127 #else
1128 if (!cd->is_upcall())
1129 impl->addGripper(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
1130 else {
1131 try {
1132 impl->addGripper(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
1133 }
1134 catch(hpp::Error& ex) {
1135 throw omniORB::StubUserException(ex._NP_duplicate());
1136 }
1137
1138
1139 }
1140 #endif
1141
1142
1143 }
1144
1145 void hpp::corbaserver::manipulation::_objref_Robot::addGripper(const char* linkName, const char* gripperName, const ::hpp::Transform_ handlePositioninJoint, ::CORBA::Double clearance)
1146 {
1147 _0RL_cd_4703f5b0197d067f_11000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_21000000, "addGripper", 11);
1148 _call_desc.arg_0 = linkName;
1149 _call_desc.arg_1 = gripperName;
1150 _call_desc.arg_2 = &handlePositioninJoint[0];
1151 _call_desc.arg_3 = clearance;
1152
1153 _invoke(_call_desc);
1154
1155
1156
1157 }
1158
1159
1160 //
1161 // Code for hpp::corbaserver::manipulation::Robot::addHandle
1162
1163 // Proxy call descriptor class. Mangled signature:
1164 // void_i_cstring_i_cstring_i_a7_cdouble_i_cdouble_i_chpp_mboolSeq_e_chpp_mError
1165 class _0RL_cd_4703f5b0197d067f_31000000
1166 : public omniCallDescriptor
1167 {
1168 public:
1169 inline _0RL_cd_4703f5b0197d067f_31000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1170 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1171 {
1172
1173 }
1174
1175 void marshalArguments(cdrStream&);
1176 void unmarshalArguments(cdrStream&);
1177
1178
1179 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1180 static const char* const _user_exns[];
1181
1182 ::CORBA::String_var arg_0_;
1183 const char* arg_0;
1184 ::CORBA::String_var arg_1_;
1185 const char* arg_1;
1186 hpp::Transform_ arg_2_;
1187 const hpp::Transform__slice* arg_2;
1188 ::CORBA::Double arg_3;
1189 hpp::boolSeq_var arg_4_;
1190 const hpp::boolSeq* arg_4;
1191 };
1192
1193 void _0RL_cd_4703f5b0197d067f_31000000::marshalArguments(cdrStream& _n)
1194 {
1195 _n.marshalString(arg_0,0);
1196 _n.marshalString(arg_1,0);
1197
1198 #ifndef OMNI_MIXED_ENDIAN_DOUBLE
1199 if (! _n.marshal_byte_swap()) {
1200 _n.put_octet_array((_CORBA_Octet*)((::CORBA::Double*)arg_2),56,omni::ALIGN_8);
1201 }
1202 else
1203 #endif
1204 {
1205 _n.declareArrayLength(omni::ALIGN_8, 56);
1206 for (_CORBA_ULong _0i0 = 0; _0i0 < 7; _0i0++){
1207 arg_2[_0i0] >>= _n;
1208 }
1209 }
1210 arg_3 >>= _n;
1211 (const hpp::boolSeq&) *arg_4 >>= _n;
1212
1213 }
1214
1215 void _0RL_cd_4703f5b0197d067f_31000000::unmarshalArguments(cdrStream& _n)
1216 {
1217 arg_0_ = _n.unmarshalString(0);
1218 arg_0 = arg_0_.in();
1219 arg_1_ = _n.unmarshalString(0);
1220 arg_1 = arg_1_.in();
1221 _n.unmarshalArrayDouble((_CORBA_Double*)((::CORBA::Double*)arg_2_), 7);
1222 arg_2 = &arg_2_[0];
1223 (::CORBA::Double&)arg_3 <<= _n;
1224 arg_4_ = new hpp::boolSeq;
1225 (hpp::boolSeq&)arg_4_ <<= _n;
1226 arg_4 = &arg_4_.in();
1227
1228 }
1229
1230 const char* const _0RL_cd_4703f5b0197d067f_31000000::_user_exns[] = {
1231 hpp::Error::_PD_repoId
1232 };
1233
1234 void _0RL_cd_4703f5b0197d067f_31000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1235 {
1236 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1237 hpp::Error _ex;
1238 _ex <<= s;
1239 if (iop_client) iop_client->RequestCompleted();
1240 throw _ex;
1241 }
1242
1243
1244 else {
1245 if (iop_client) iop_client->RequestCompleted(1);
1246 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1247 (::CORBA::CompletionStatus)s.completion());
1248 }
1249 }
1250
1251 // Local call call-back function.
1252 static void
1253 _0RL_lcfn_4703f5b0197d067f_41000000(omniCallDescriptor* cd, omniServant* svnt)
1254 {
1255 _0RL_cd_4703f5b0197d067f_31000000* tcd = (_0RL_cd_4703f5b0197d067f_31000000*)cd;
1256 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
1257 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1258 impl->addHandle(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, *tcd->arg_4);
1259 #else
1260 if (!cd->is_upcall())
1261 impl->addHandle(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, *tcd->arg_4);
1262 else {
1263 try {
1264 impl->addHandle(tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3, *tcd->arg_4);
1265 }
1266 catch(hpp::Error& ex) {
1267 throw omniORB::StubUserException(ex._NP_duplicate());
1268 }
1269
1270
1271 }
1272 #endif
1273
1274
1275 }
1276
1277 void hpp::corbaserver::manipulation::_objref_Robot::addHandle(const char* linkName, const char* handleName, const ::hpp::Transform_ localPosition, ::CORBA::Double clearance, const ::hpp::boolSeq& mask)
1278 {
1279 _0RL_cd_4703f5b0197d067f_31000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_41000000, "addHandle", 10);
1280 _call_desc.arg_0 = linkName;
1281 _call_desc.arg_1 = handleName;
1282 _call_desc.arg_2 = &localPosition[0];
1283 _call_desc.arg_3 = clearance;
1284 _call_desc.arg_4 = &(::hpp::boolSeq&) mask;
1285
1286 _invoke(_call_desc);
1287
1288
1289
1290 }
1291
1292
1293 //
1294 // Code for hpp::corbaserver::manipulation::Robot::getGripperPositionInJoint
1295
1296 // Proxy call descriptor class. Mangled signature:
1297 // _cstring_i_cstring_o_a7_cdouble_e_chpp_mError
1298 class _0RL_cd_4703f5b0197d067f_51000000
1299 : public omniCallDescriptor
1300 {
1301 public:
1302 inline _0RL_cd_4703f5b0197d067f_51000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
1303 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
1304 {
1305
1306 }
1307
1308 void marshalArguments(cdrStream&);
1309 void unmarshalArguments(cdrStream&);
1310
1311 void unmarshalReturnedValues(cdrStream&);
1312 void marshalReturnedValues(cdrStream&);
1313
1314 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
1315 static const char* const _user_exns[];
1316
1317 ::CORBA::String_var arg_0_;
1318 const char* arg_0;
1319 hpp::Transform_ arg_1_;
1320 hpp::Transform__slice* arg_1;
1321 ::CORBA::String_var result;
1322 };
1323
1324 void _0RL_cd_4703f5b0197d067f_51000000::marshalArguments(cdrStream& _n)
1325 {
1326 _n.marshalString(arg_0,0);
1327
1328 }
1329
1330 void _0RL_cd_4703f5b0197d067f_51000000::unmarshalArguments(cdrStream& _n)
1331 {
1332 arg_0_ = _n.unmarshalString(0);
1333 arg_0 = arg_0_.in();
1334
1335 }
1336
1337 void _0RL_cd_4703f5b0197d067f_51000000::marshalReturnedValues(cdrStream& _n)
1338 {
1339 _n.marshalString(result,0);
1340
1341 #ifndef OMNI_MIXED_ENDIAN_DOUBLE
1342 if (! _n.marshal_byte_swap()) {
1343 _n.put_octet_array((_CORBA_Octet*)((::CORBA::Double*)arg_1),56,omni::ALIGN_8);
1344 }
1345 else
1346 #endif
1347 {
1348 _n.declareArrayLength(omni::ALIGN_8, 56);
1349 for (_CORBA_ULong _0i0 = 0; _0i0 < 7; _0i0++){
1350 arg_1[_0i0] >>= _n;
1351 }
1352 }
1353
1354 }
1355
1356 void _0RL_cd_4703f5b0197d067f_51000000::unmarshalReturnedValues(cdrStream& _n)
1357 {
1358 result = _n.unmarshalString(0);
1359 _n.unmarshalArrayDouble((_CORBA_Double*)((::CORBA::Double*)arg_1), 7);
1360
1361 }
1362
1363 const char* const _0RL_cd_4703f5b0197d067f_51000000::_user_exns[] = {
1364 hpp::Error::_PD_repoId
1365 };
1366
1367 void _0RL_cd_4703f5b0197d067f_51000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
1368 {
1369 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
1370 hpp::Error _ex;
1371 _ex <<= s;
1372 if (iop_client) iop_client->RequestCompleted();
1373 throw _ex;
1374 }
1375
1376
1377 else {
1378 if (iop_client) iop_client->RequestCompleted(1);
1379 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
1380 (::CORBA::CompletionStatus)s.completion());
1381 }
1382 }
1383
1384 // Local call call-back function.
1385 static void
1386 _0RL_lcfn_4703f5b0197d067f_61000000(omniCallDescriptor* cd, omniServant* svnt)
1387 {
1388 _0RL_cd_4703f5b0197d067f_51000000* tcd = (_0RL_cd_4703f5b0197d067f_51000000*)cd;
1389 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
1390 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1391 tcd->result = impl->getGripperPositionInJoint(tcd->arg_0, tcd->arg_1);
1392 #else
1393 if (!cd->is_upcall())
1394 tcd->result = impl->getGripperPositionInJoint(tcd->arg_0, tcd->arg_1);
1395 else {
1396 try {
1397 tcd->result = impl->getGripperPositionInJoint(tcd->arg_0, tcd->arg_1);
1398 }
1399 catch(hpp::Error& ex) {
1400 throw omniORB::StubUserException(ex._NP_duplicate());
1401 }
1402
1403
1404 }
1405 #endif
1406
1407
1408 }
1409
1410 char* hpp::corbaserver::manipulation::_objref_Robot::getGripperPositionInJoint(const char* gripperName, ::hpp::Transform_ position)
1411 {
1412 _0RL_cd_4703f5b0197d067f_51000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_61000000, "getGripperPositionInJoint", 26);
1413 _call_desc.arg_0 = gripperName;
1414 _call_desc.arg_1 = &position[0];
1415
1416 _invoke(_call_desc);
1417 return _call_desc.result._retn();
1418
1419
1420 }
1421
1422
1423 //
1424 // Code for hpp::corbaserver::manipulation::Robot::getHandlePositionInJoint
1425
1426 // Local call call-back function.
1427 static void
1428 _0RL_lcfn_4703f5b0197d067f_71000000(omniCallDescriptor* cd, omniServant* svnt)
1429 {
1430 _0RL_cd_4703f5b0197d067f_51000000* tcd = (_0RL_cd_4703f5b0197d067f_51000000*)cd;
1431 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
1432 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1433 tcd->result = impl->getHandlePositionInJoint(tcd->arg_0, tcd->arg_1);
1434 #else
1435 if (!cd->is_upcall())
1436 tcd->result = impl->getHandlePositionInJoint(tcd->arg_0, tcd->arg_1);
1437 else {
1438 try {
1439 tcd->result = impl->getHandlePositionInJoint(tcd->arg_0, tcd->arg_1);
1440 }
1441 catch(hpp::Error& ex) {
1442 throw omniORB::StubUserException(ex._NP_duplicate());
1443 }
1444
1445
1446 }
1447 #endif
1448
1449
1450 }
1451
1452 char* hpp::corbaserver::manipulation::_objref_Robot::getHandlePositionInJoint(const char* handleName, ::hpp::Transform_ position)
1453 {
1454 _0RL_cd_4703f5b0197d067f_51000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_71000000, "getHandlePositionInJoint", 25);
1455 _call_desc.arg_0 = handleName;
1456 _call_desc.arg_1 = &position[0];
1457
1458 _invoke(_call_desc);
1459 return _call_desc.result._retn();
1460
1461
1462 }
1463
1464
1465 //
1466 // Code for hpp::corbaserver::manipulation::Robot::setHandlePositionInJoint
1467
1468 // Local call call-back function.
1469 static void
1470 _0RL_lcfn_4703f5b0197d067f_81000000(omniCallDescriptor* cd, omniServant* svnt)
1471 {
1472 _0RL_cd_4703f5b0197d067f_f0000000* tcd = (_0RL_cd_4703f5b0197d067f_f0000000*)cd;
1473 hpp::corbaserver::manipulation::_impl_Robot* impl = (hpp::corbaserver::manipulation::_impl_Robot*) svnt->_ptrToInterface(hpp::corbaserver::manipulation::Robot::_PD_repoId);
1474 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
1475 impl->setHandlePositionInJoint(tcd->arg_0, tcd->arg_1);
1476 #else
1477 if (!cd->is_upcall())
1478 impl->setHandlePositionInJoint(tcd->arg_0, tcd->arg_1);
1479 else {
1480 try {
1481 impl->setHandlePositionInJoint(tcd->arg_0, tcd->arg_1);
1482 }
1483 catch(hpp::Error& ex) {
1484 throw omniORB::StubUserException(ex._NP_duplicate());
1485 }
1486
1487
1488 }
1489 #endif
1490
1491
1492 }
1493
1494 void hpp::corbaserver::manipulation::_objref_Robot::setHandlePositionInJoint(const char* handleName, const ::hpp::Transform_ position)
1495 {
1496 _0RL_cd_4703f5b0197d067f_f0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_81000000, "setHandlePositionInJoint", 25);
1497 _call_desc.arg_0 = handleName;
1498 _call_desc.arg_1 = &position[0];
1499
1500 _invoke(_call_desc);
1501
1502
1503
1504 }
1505
1506 hpp::corbaserver::manipulation::_pof_Robot::~_pof_Robot() {}
1507
1508
1509 omniObjRef*
1510 hpp::corbaserver::manipulation::_pof_Robot::newObjRef(omniIOR* ior, omniIdentity* id)
1511 {
1512 return new ::hpp::corbaserver::manipulation::_objref_Robot(ior, id);
1513 }
1514
1515
1516 ::CORBA::Boolean
1517 hpp::corbaserver::manipulation::_pof_Robot::is_a(const char* id) const
1518 {
1519 if (omni::ptrStrMatch(id, ::hpp::corbaserver::manipulation::Robot::_PD_repoId))
1520 return 1;
1521
1522 return 0;
1523 }
1524
1525 const hpp::corbaserver::manipulation::_pof_Robot _the_pof_hpp_mcorbaserver_mmanipulation_mRobot;
1526
1527 hpp::corbaserver::manipulation::_impl_Robot::~_impl_Robot() {}
1528
1529
1530 ::CORBA::Boolean
1531 hpp::corbaserver::manipulation::_impl_Robot::_dispatch(omniCallHandle& _handle)
1532 {
1533 const char* op = _handle.operation_name();
1534
1535 if (omni::strMatch(op, "insertRobotModel")) {
1536
1537 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_10000000, "insertRobotModel", 17, 1);
1538
1539 _handle.upcall(this,_call_desc);
1540 return 1;
1541 }
1542
1543 if (omni::strMatch(op, "insertRobotModelOnFrame")) {
1544
1545 _0RL_cd_4703f5b0197d067f_20000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_30000000, "insertRobotModelOnFrame", 24, 1);
1546
1547 _handle.upcall(this,_call_desc);
1548 return 1;
1549 }
1550
1551 if (omni::strMatch(op, "insertRobotModelFromString")) {
1552
1553 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_40000000, "insertRobotModelFromString", 27, 1);
1554
1555 _handle.upcall(this,_call_desc);
1556 return 1;
1557 }
1558
1559 if (omni::strMatch(op, "insertRobotModelOnFrameFromString")) {
1560
1561 _0RL_cd_4703f5b0197d067f_20000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_50000000, "insertRobotModelOnFrameFromString", 34, 1);
1562
1563 _handle.upcall(this,_call_desc);
1564 return 1;
1565 }
1566
1567 if (omni::strMatch(op, "insertRobotSRDFModel")) {
1568
1569 _0RL_cd_4703f5b0197d067f_60000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_70000000, "insertRobotSRDFModel", 21, 1);
1570
1571 _handle.upcall(this,_call_desc);
1572 return 1;
1573 }
1574
1575 if (omni::strMatch(op, "insertRobotSRDFModelFromString")) {
1576
1577 _0RL_cd_4703f5b0197d067f_60000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_80000000, "insertRobotSRDFModelFromString", 31, 1);
1578
1579 _handle.upcall(this,_call_desc);
1580 return 1;
1581 }
1582
1583 if (omni::strMatch(op, "insertHumanoidModel")) {
1584
1585 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_90000000, "insertHumanoidModel", 20, 1);
1586
1587 _handle.upcall(this,_call_desc);
1588 return 1;
1589 }
1590
1591 if (omni::strMatch(op, "insertHumanoidModelFromString")) {
1592
1593 _0RL_cd_4703f5b0197d067f_00000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_a0000000, "insertHumanoidModelFromString", 30, 1);
1594
1595 _handle.upcall(this,_call_desc);
1596 return 1;
1597 }
1598
1599 if (omni::strMatch(op, "loadEnvironmentModel")) {
1600
1601 _0RL_cd_4703f5b0197d067f_b0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_c0000000, "loadEnvironmentModel", 21, 1);
1602
1603 _handle.upcall(this,_call_desc);
1604 return 1;
1605 }
1606
1607 if (omni::strMatch(op, "getRootJointPosition")) {
1608
1609 _0RL_cd_4703f5b0197d067f_d0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_e0000000, "getRootJointPosition", 21, 1);
1610
1611 _handle.upcall(this,_call_desc);
1612 return 1;
1613 }
1614
1615 if (omni::strMatch(op, "setRootJointPosition")) {
1616
1617 _0RL_cd_4703f5b0197d067f_f0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_01000000, "setRootJointPosition", 21, 1);
1618
1619 _handle.upcall(this,_call_desc);
1620 return 1;
1621 }
1622
1623 if (omni::strMatch(op, "addGripper")) {
1624
1625 _0RL_cd_4703f5b0197d067f_11000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_21000000, "addGripper", 11, 1);
1626
1627 _handle.upcall(this,_call_desc);
1628 return 1;
1629 }
1630
1631 if (omni::strMatch(op, "addHandle")) {
1632
1633 _0RL_cd_4703f5b0197d067f_31000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_41000000, "addHandle", 10, 1);
1634
1635 _handle.upcall(this,_call_desc);
1636 return 1;
1637 }
1638
1639 if (omni::strMatch(op, "getGripperPositionInJoint")) {
1640
1641 _0RL_cd_4703f5b0197d067f_51000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_61000000, "getGripperPositionInJoint", 26, 1);
1642 _call_desc.arg_1 = _call_desc.arg_1_;
1643 _handle.upcall(this,_call_desc);
1644 return 1;
1645 }
1646
1647 if (omni::strMatch(op, "getHandlePositionInJoint")) {
1648
1649 _0RL_cd_4703f5b0197d067f_51000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_71000000, "getHandlePositionInJoint", 25, 1);
1650 _call_desc.arg_1 = _call_desc.arg_1_;
1651 _handle.upcall(this,_call_desc);
1652 return 1;
1653 }
1654
1655 if (omni::strMatch(op, "setHandlePositionInJoint")) {
1656
1657 _0RL_cd_4703f5b0197d067f_f0000000 _call_desc(_0RL_lcfn_4703f5b0197d067f_81000000, "setHandlePositionInJoint", 25, 1);
1658
1659 _handle.upcall(this,_call_desc);
1660 return 1;
1661 }
1662
1663
1664 return 0;
1665 }
1666
1667 void*
1668 hpp::corbaserver::manipulation::_impl_Robot::_ptrToInterface(const char* id)
1669 {
1670 if (id == ::hpp::corbaserver::manipulation::Robot::_PD_repoId)
1671 return (::hpp::corbaserver::manipulation::_impl_Robot*) this;
1672
1673 if (id == ::CORBA::Object::_PD_repoId)
1674 return (void*) 1;
1675
1676 if (omni::strMatch(id, ::hpp::corbaserver::manipulation::Robot::_PD_repoId))
1677 return (::hpp::corbaserver::manipulation::_impl_Robot*) this;
1678
1679 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
1680 return (void*) 1;
1681 return 0;
1682 }
1683
1684 const char*
1685 hpp::corbaserver::manipulation::_impl_Robot::_mostDerivedRepoId()
1686 {
1687 return ::hpp::corbaserver::manipulation::Robot::_PD_repoId;
1688 }
1689
1690 POA_hpp::corbaserver::manipulation::Robot::~Robot() {}
1691
1692