00001
00002
00003 #include "BotControlSK.hh"
00004 #include <omniORB4/IOP_S.h>
00005 #include <omniORB4/IOP_C.h>
00006 #include <omniORB4/callDescriptor.h>
00007 #include <omniORB4/callHandle.h>
00008 #include <omniORB4/objTracker.h>
00009
00010
00011 OMNI_USING_NAMESPACE(omni)
00012
00013 static const char* _0RL_library_version = omniORB_4_1;
00014
00015
00016
00017 BotControl_ptr BotControl_Helper::_nil() {
00018 return ::BotControl::_nil();
00019 }
00020
00021 ::CORBA::Boolean BotControl_Helper::is_nil(::BotControl_ptr p) {
00022 return ::CORBA::is_nil(p);
00023
00024 }
00025
00026 void BotControl_Helper::release(::BotControl_ptr p) {
00027 ::CORBA::release(p);
00028 }
00029
00030 void BotControl_Helper::marshalObjRef(::BotControl_ptr obj, cdrStream& s) {
00031 ::BotControl::_marshalObjRef(obj, s);
00032 }
00033
00034 BotControl_ptr BotControl_Helper::unmarshalObjRef(cdrStream& s) {
00035 return ::BotControl::_unmarshalObjRef(s);
00036 }
00037
00038 void BotControl_Helper::duplicate(::BotControl_ptr obj) {
00039 if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj);
00040 }
00041
00042 BotControl_ptr
00043 BotControl::_duplicate(::BotControl_ptr obj)
00044 {
00045 if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj);
00046 return obj;
00047 }
00048
00049 BotControl_ptr
00050 BotControl::_narrow(::CORBA::Object_ptr obj)
00051 {
00052 if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
00053 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
00054 return e ? e : _nil();
00055 }
00056
00057
00058 BotControl_ptr
00059 BotControl::_unchecked_narrow(::CORBA::Object_ptr obj)
00060 {
00061 if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil();
00062 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
00063 return e ? e : _nil();
00064 }
00065
00066 BotControl_ptr
00067 BotControl::_nil()
00068 {
00069 #ifdef OMNI_UNLOADABLE_STUBS
00070 static _objref_BotControl _the_nil_obj;
00071 return &_the_nil_obj;
00072 #else
00073 static _objref_BotControl* _the_nil_ptr = 0;
00074 if( !_the_nil_ptr ) {
00075 omni::nilRefLock().lock();
00076 if( !_the_nil_ptr ) {
00077 _the_nil_ptr = new _objref_BotControl;
00078 registerNilCorbaObject(_the_nil_ptr);
00079 }
00080 omni::nilRefLock().unlock();
00081 }
00082 return _the_nil_ptr;
00083 #endif
00084 }
00085
00086 const char* BotControl::_PD_repoId = "IDL:BotControl:1.0";
00087
00088
00089 _objref_BotControl::~_objref_BotControl() {
00090
00091 }
00092
00093
00094 _objref_BotControl::_objref_BotControl(omniIOR* ior, omniIdentity* id) :
00095 omniObjRef(::BotControl::_PD_repoId, ior, id, 1)
00096
00097
00098 {
00099 _PR_setobj(this);
00100 }
00101
00102 void*
00103 _objref_BotControl::_ptrToObjRef(const char* id)
00104 {
00105 if( id == ::BotControl::_PD_repoId )
00106 return (::BotControl_ptr) this;
00107
00108 if( id == ::CORBA::Object::_PD_repoId )
00109 return (::CORBA::Object_ptr) this;
00110
00111 if( omni::strMatch(id, ::BotControl::_PD_repoId) )
00112 return (::BotControl_ptr) this;
00113
00114 if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
00115 return (::CORBA::Object_ptr) this;
00116
00117 return 0;
00118 }
00119
00120
00121
00122 class _0RL_cd_1473fd27e4f46097_00000000
00123 : public omniCallDescriptor
00124 {
00125 public:
00126 inline _0RL_cd_1473fd27e4f46097_00000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00127 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00128 {
00129
00130 }
00131
00132
00133
00134
00135
00136 };
00137
00138
00139 static void
00140 _0RL_lcfn_1473fd27e4f46097_10000000(omniCallDescriptor*, omniServant* svnt)
00141 {
00142
00143 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00144 impl->init();
00145
00146
00147 }
00148
00149 void _objref_BotControl::init()
00150 {
00151 _0RL_cd_1473fd27e4f46097_00000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_10000000, "init", 5);
00152
00153
00154 _invoke(_call_desc);
00155
00156
00157
00158 }
00159
00160
00161 class _0RL_cd_1473fd27e4f46097_20000000
00162 : public omniCallDescriptor
00163 {
00164 public:
00165 inline _0RL_cd_1473fd27e4f46097_20000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00166 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00167 {
00168
00169 }
00170
00171
00172 void unmarshalReturnedValues(cdrStream&);
00173 void marshalReturnedValues(cdrStream&);
00174
00175
00176 ::CORBA::Float result;
00177 };
00178
00179 void _0RL_cd_1473fd27e4f46097_20000000::marshalReturnedValues(cdrStream& _n)
00180 {
00181 result >>= _n;
00182
00183 }
00184
00185 void _0RL_cd_1473fd27e4f46097_20000000::unmarshalReturnedValues(cdrStream& _n)
00186 {
00187 (::CORBA::Float&)result <<= _n;
00188
00189 }
00190
00191
00192 static void
00193 _0RL_lcfn_1473fd27e4f46097_30000000(omniCallDescriptor* cd, omniServant* svnt)
00194 {
00195 _0RL_cd_1473fd27e4f46097_20000000* tcd = (_0RL_cd_1473fd27e4f46097_20000000*)cd;
00196 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00197 tcd->result = impl->getSpeed();
00198
00199
00200 }
00201
00202 ::CORBA::Float _objref_BotControl::getSpeed()
00203 {
00204 _0RL_cd_1473fd27e4f46097_20000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_30000000, "getSpeed", 9);
00205
00206
00207 _invoke(_call_desc);
00208 return _call_desc.result;
00209
00210
00211 }
00212
00213
00214 class _0RL_cd_1473fd27e4f46097_40000000
00215 : public omniCallDescriptor
00216 {
00217 public:
00218 inline _0RL_cd_1473fd27e4f46097_40000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00219 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00220 {
00221
00222 }
00223
00224 void marshalArguments(cdrStream&);
00225 void unmarshalArguments(cdrStream&);
00226
00227 void unmarshalReturnedValues(cdrStream&);
00228 void marshalReturnedValues(cdrStream&);
00229
00230
00231 ::CORBA::Float arg_0;
00232 ::CORBA::Short result;
00233 };
00234
00235 void _0RL_cd_1473fd27e4f46097_40000000::marshalArguments(cdrStream& _n)
00236 {
00237 arg_0 >>= _n;
00238
00239 }
00240
00241 void _0RL_cd_1473fd27e4f46097_40000000::unmarshalArguments(cdrStream& _n)
00242 {
00243 (::CORBA::Float&)arg_0 <<= _n;
00244
00245 }
00246
00247 void _0RL_cd_1473fd27e4f46097_40000000::marshalReturnedValues(cdrStream& _n)
00248 {
00249 result >>= _n;
00250
00251 }
00252
00253 void _0RL_cd_1473fd27e4f46097_40000000::unmarshalReturnedValues(cdrStream& _n)
00254 {
00255 (::CORBA::Short&)result <<= _n;
00256
00257 }
00258
00259
00260 static void
00261 _0RL_lcfn_1473fd27e4f46097_50000000(omniCallDescriptor* cd, omniServant* svnt)
00262 {
00263 _0RL_cd_1473fd27e4f46097_40000000* tcd = (_0RL_cd_1473fd27e4f46097_40000000*)cd;
00264 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00265 tcd->result = impl->setSpeed(tcd->arg_0);
00266
00267
00268 }
00269
00270 ::CORBA::Short _objref_BotControl::setSpeed(::CORBA::Float speed)
00271 {
00272 _0RL_cd_1473fd27e4f46097_40000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_50000000, "setSpeed", 9);
00273 _call_desc.arg_0 = speed;
00274
00275 _invoke(_call_desc);
00276 return _call_desc.result;
00277
00278
00279 }
00280
00281 static void
00282 _0RL_lcfn_1473fd27e4f46097_60000000(omniCallDescriptor* cd, omniServant* svnt)
00283 {
00284 _0RL_cd_1473fd27e4f46097_20000000* tcd = (_0RL_cd_1473fd27e4f46097_20000000*)cd;
00285 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00286 tcd->result = impl->getSteering();
00287
00288
00289 }
00290
00291 ::CORBA::Float _objref_BotControl::getSteering()
00292 {
00293 _0RL_cd_1473fd27e4f46097_20000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_60000000, "getSteering", 12);
00294
00295
00296 _invoke(_call_desc);
00297 return _call_desc.result;
00298
00299
00300 }
00301
00302 static void
00303 _0RL_lcfn_1473fd27e4f46097_70000000(omniCallDescriptor* cd, omniServant* svnt)
00304 {
00305 _0RL_cd_1473fd27e4f46097_40000000* tcd = (_0RL_cd_1473fd27e4f46097_40000000*)cd;
00306 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00307 tcd->result = impl->setSteering(tcd->arg_0);
00308
00309
00310 }
00311
00312 ::CORBA::Short _objref_BotControl::setSteering(::CORBA::Float steeringPos)
00313 {
00314 _0RL_cd_1473fd27e4f46097_40000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_70000000, "setSteering", 12);
00315 _call_desc.arg_0 = steeringPos;
00316
00317 _invoke(_call_desc);
00318 return _call_desc.result;
00319
00320
00321 }
00322
00323
00324 class _0RL_cd_1473fd27e4f46097_80000000
00325 : public omniCallDescriptor
00326 {
00327 public:
00328 inline _0RL_cd_1473fd27e4f46097_80000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00329 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00330 {
00331
00332 }
00333
00334 void marshalArguments(cdrStream&);
00335 void unmarshalArguments(cdrStream&);
00336
00337 void unmarshalReturnedValues(cdrStream&);
00338 void marshalReturnedValues(cdrStream&);
00339
00340
00341 ::CORBA::Short arg_0;
00342 ImageOrb_var result;
00343 };
00344
00345 void _0RL_cd_1473fd27e4f46097_80000000::marshalArguments(cdrStream& _n)
00346 {
00347 arg_0 >>= _n;
00348
00349 }
00350
00351 void _0RL_cd_1473fd27e4f46097_80000000::unmarshalArguments(cdrStream& _n)
00352 {
00353 (::CORBA::Short&)arg_0 <<= _n;
00354
00355 }
00356
00357 void _0RL_cd_1473fd27e4f46097_80000000::marshalReturnedValues(cdrStream& _n)
00358 {
00359 (const ImageOrb&) result >>= _n;
00360
00361 }
00362
00363 void _0RL_cd_1473fd27e4f46097_80000000::unmarshalReturnedValues(cdrStream& _n)
00364 {
00365 result = new ImageOrb;
00366 (ImageOrb&)result <<= _n;
00367
00368 }
00369
00370
00371 static void
00372 _0RL_lcfn_1473fd27e4f46097_90000000(omniCallDescriptor* cd, omniServant* svnt)
00373 {
00374 _0RL_cd_1473fd27e4f46097_80000000* tcd = (_0RL_cd_1473fd27e4f46097_80000000*)cd;
00375 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00376 tcd->result = impl->getImageSensor(tcd->arg_0);
00377
00378
00379 }
00380
00381 ImageOrb* _objref_BotControl::getImageSensor(::CORBA::Short i)
00382 {
00383 _0RL_cd_1473fd27e4f46097_80000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_90000000, "getImageSensor", 15);
00384 _call_desc.arg_0 = i;
00385
00386 _invoke(_call_desc);
00387 return _call_desc.result._retn();
00388
00389
00390 }
00391
00392
00393 class _0RL_cd_1473fd27e4f46097_a0000000
00394 : public omniCallDescriptor
00395 {
00396 public:
00397 inline _0RL_cd_1473fd27e4f46097_a0000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00398 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00399 {
00400
00401 }
00402
00403 void marshalArguments(cdrStream&);
00404 void unmarshalArguments(cdrStream&);
00405
00406 void unmarshalReturnedValues(cdrStream&);
00407 void marshalReturnedValues(cdrStream&);
00408
00409
00410 ::CORBA::Short arg_0;
00411 ::CORBA::Short arg_1;
00412 ::CORBA::Short arg_2;
00413 };
00414
00415 void _0RL_cd_1473fd27e4f46097_a0000000::marshalArguments(cdrStream& _n)
00416 {
00417 arg_2 >>= _n;
00418
00419 }
00420
00421 void _0RL_cd_1473fd27e4f46097_a0000000::unmarshalArguments(cdrStream& _n)
00422 {
00423 (::CORBA::Short&)arg_2 <<= _n;
00424
00425 }
00426
00427 void _0RL_cd_1473fd27e4f46097_a0000000::marshalReturnedValues(cdrStream& _n)
00428 {
00429 arg_0 >>= _n;
00430 arg_1 >>= _n;
00431
00432 }
00433
00434 void _0RL_cd_1473fd27e4f46097_a0000000::unmarshalReturnedValues(cdrStream& _n)
00435 {
00436 (::CORBA::Short&)arg_0 <<= _n;
00437 (::CORBA::Short&)arg_1 <<= _n;
00438
00439 }
00440
00441
00442 static void
00443 _0RL_lcfn_1473fd27e4f46097_b0000000(omniCallDescriptor* cd, omniServant* svnt)
00444 {
00445 _0RL_cd_1473fd27e4f46097_a0000000* tcd = (_0RL_cd_1473fd27e4f46097_a0000000*)cd;
00446 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00447 impl->getImageSensorDims(tcd->arg_0, tcd->arg_1, tcd->arg_2);
00448
00449
00450 }
00451
00452 void _objref_BotControl::getImageSensorDims(::CORBA::Short& w, ::CORBA::Short& h, ::CORBA::Short i)
00453 {
00454 _0RL_cd_1473fd27e4f46097_a0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_b0000000, "getImageSensorDims", 19);
00455 _call_desc.arg_2 = i;
00456
00457 _invoke(_call_desc);
00458 w = _call_desc.arg_0;
00459 h = _call_desc.arg_1;
00460
00461
00462 }
00463
00464
00465 class _0RL_cd_1473fd27e4f46097_c0000000
00466 : public omniCallDescriptor
00467 {
00468 public:
00469 inline _0RL_cd_1473fd27e4f46097_c0000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00470 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00471 {
00472
00473 }
00474
00475 void marshalArguments(cdrStream&);
00476 void unmarshalArguments(cdrStream&);
00477
00478 void unmarshalReturnedValues(cdrStream&);
00479 void marshalReturnedValues(cdrStream&);
00480
00481
00482 ::CORBA::Short arg_0;
00483 ::CORBA::Short result;
00484 };
00485
00486 void _0RL_cd_1473fd27e4f46097_c0000000::marshalArguments(cdrStream& _n)
00487 {
00488 arg_0 >>= _n;
00489
00490 }
00491
00492 void _0RL_cd_1473fd27e4f46097_c0000000::unmarshalArguments(cdrStream& _n)
00493 {
00494 (::CORBA::Short&)arg_0 <<= _n;
00495
00496 }
00497
00498 void _0RL_cd_1473fd27e4f46097_c0000000::marshalReturnedValues(cdrStream& _n)
00499 {
00500 result >>= _n;
00501
00502 }
00503
00504 void _0RL_cd_1473fd27e4f46097_c0000000::unmarshalReturnedValues(cdrStream& _n)
00505 {
00506 (::CORBA::Short&)result <<= _n;
00507
00508 }
00509
00510
00511 static void
00512 _0RL_lcfn_1473fd27e4f46097_d0000000(omniCallDescriptor* cd, omniServant* svnt)
00513 {
00514 _0RL_cd_1473fd27e4f46097_c0000000* tcd = (_0RL_cd_1473fd27e4f46097_c0000000*)cd;
00515 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00516 tcd->result = impl->getSensorValue(tcd->arg_0);
00517
00518
00519 }
00520
00521 ::CORBA::Short _objref_BotControl::getSensorValue(::CORBA::Short i)
00522 {
00523 _0RL_cd_1473fd27e4f46097_c0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_d0000000, "getSensorValue", 15);
00524 _call_desc.arg_0 = i;
00525
00526 _invoke(_call_desc);
00527 return _call_desc.result;
00528
00529
00530 }
00531
00532
00533 class _0RL_cd_1473fd27e4f46097_e0000000
00534 : public omniCallDescriptor
00535 {
00536 public:
00537 inline _0RL_cd_1473fd27e4f46097_e0000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00538 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00539 {
00540
00541 }
00542
00543 void marshalArguments(cdrStream&);
00544 void unmarshalArguments(cdrStream&);
00545
00546
00547
00548 ::CORBA::Short arg_0;
00549 };
00550
00551 void _0RL_cd_1473fd27e4f46097_e0000000::marshalArguments(cdrStream& _n)
00552 {
00553 arg_0 >>= _n;
00554
00555 }
00556
00557 void _0RL_cd_1473fd27e4f46097_e0000000::unmarshalArguments(cdrStream& _n)
00558 {
00559 (::CORBA::Short&)arg_0 <<= _n;
00560
00561 }
00562
00563
00564 static void
00565 _0RL_lcfn_1473fd27e4f46097_f0000000(omniCallDescriptor* cd, omniServant* svnt)
00566 {
00567 _0RL_cd_1473fd27e4f46097_e0000000* tcd = (_0RL_cd_1473fd27e4f46097_e0000000*)cd;
00568 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00569 impl->motorsOff(tcd->arg_0);
00570
00571
00572 }
00573
00574 void _objref_BotControl::motorsOff(::CORBA::Short i)
00575 {
00576 _0RL_cd_1473fd27e4f46097_e0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_f0000000, "motorsOff", 10);
00577 _call_desc.arg_0 = i;
00578
00579 _invoke(_call_desc);
00580
00581
00582
00583 }
00584
00585
00586 class _0RL_cd_1473fd27e4f46097_01000000
00587 : public omniCallDescriptor
00588 {
00589 public:
00590 inline _0RL_cd_1473fd27e4f46097_01000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00591 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00592 {
00593
00594 }
00595
00596 void marshalArguments(cdrStream&);
00597 void unmarshalArguments(cdrStream&);
00598
00599
00600
00601 ::CORBA::Short arg_0;
00602 ::CORBA::Float arg_1;
00603 };
00604
00605 void _0RL_cd_1473fd27e4f46097_01000000::marshalArguments(cdrStream& _n)
00606 {
00607 arg_0 >>= _n;
00608 arg_1 >>= _n;
00609
00610 }
00611
00612 void _0RL_cd_1473fd27e4f46097_01000000::unmarshalArguments(cdrStream& _n)
00613 {
00614 (::CORBA::Short&)arg_0 <<= _n;
00615 (::CORBA::Float&)arg_1 <<= _n;
00616
00617 }
00618
00619
00620 static void
00621 _0RL_lcfn_1473fd27e4f46097_11000000(omniCallDescriptor* cd, omniServant* svnt)
00622 {
00623 _0RL_cd_1473fd27e4f46097_01000000* tcd = (_0RL_cd_1473fd27e4f46097_01000000*)cd;
00624 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00625 impl->setMotor(tcd->arg_0, tcd->arg_1);
00626
00627
00628 }
00629
00630 void _objref_BotControl::setMotor(::CORBA::Short i, ::CORBA::Float val)
00631 {
00632 _0RL_cd_1473fd27e4f46097_01000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_11000000, "setMotor", 9);
00633 _call_desc.arg_0 = i;
00634 _call_desc.arg_1 = val;
00635
00636 _invoke(_call_desc);
00637
00638
00639
00640 }
00641
00642
00643 class _0RL_cd_1473fd27e4f46097_21000000
00644 : public omniCallDescriptor
00645 {
00646 public:
00647 inline _0RL_cd_1473fd27e4f46097_21000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00648 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00649 {
00650
00651 }
00652
00653 void marshalArguments(cdrStream&);
00654 void unmarshalArguments(cdrStream&);
00655
00656 void unmarshalReturnedValues(cdrStream&);
00657 void marshalReturnedValues(cdrStream&);
00658
00659
00660 CmdData_var arg_0_;
00661 const CmdData* arg_0;
00662 ::CORBA::Short result;
00663 };
00664
00665 void _0RL_cd_1473fd27e4f46097_21000000::marshalArguments(cdrStream& _n)
00666 {
00667 (const CmdData&) *arg_0 >>= _n;
00668
00669 }
00670
00671 void _0RL_cd_1473fd27e4f46097_21000000::unmarshalArguments(cdrStream& _n)
00672 {
00673 arg_0_ = new CmdData;
00674 (CmdData&)arg_0_ <<= _n;
00675 arg_0 = &arg_0_.in();
00676
00677 }
00678
00679 void _0RL_cd_1473fd27e4f46097_21000000::marshalReturnedValues(cdrStream& _n)
00680 {
00681 result >>= _n;
00682
00683 }
00684
00685 void _0RL_cd_1473fd27e4f46097_21000000::unmarshalReturnedValues(cdrStream& _n)
00686 {
00687 (::CORBA::Short&)result <<= _n;
00688
00689 }
00690
00691
00692 static void
00693 _0RL_lcfn_1473fd27e4f46097_31000000(omniCallDescriptor* cd, omniServant* svnt)
00694 {
00695 _0RL_cd_1473fd27e4f46097_21000000* tcd = (_0RL_cd_1473fd27e4f46097_21000000*)cd;
00696 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00697 tcd->result = impl->sendRawCmd(*tcd->arg_0);
00698
00699
00700 }
00701
00702 ::CORBA::Short _objref_BotControl::sendRawCmd(const CmdData& data)
00703 {
00704 _0RL_cd_1473fd27e4f46097_21000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_31000000, "sendRawCmd", 11);
00705 _call_desc.arg_0 = &(CmdData&) data;
00706
00707 _invoke(_call_desc);
00708 return _call_desc.result;
00709
00710
00711 }
00712
00713 static void
00714 _0RL_lcfn_1473fd27e4f46097_41000000(omniCallDescriptor* cd, omniServant* svnt)
00715 {
00716 _0RL_cd_1473fd27e4f46097_e0000000* tcd = (_0RL_cd_1473fd27e4f46097_e0000000*)cd;
00717 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00718 impl->setOIMode(tcd->arg_0);
00719
00720
00721 }
00722
00723 void _objref_BotControl::setOIMode(::CORBA::Short m)
00724 {
00725 _0RL_cd_1473fd27e4f46097_e0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_41000000, "setOIMode", 10);
00726 _call_desc.arg_0 = m;
00727
00728 _invoke(_call_desc);
00729
00730
00731
00732 }
00733
00734 static void
00735 _0RL_lcfn_1473fd27e4f46097_51000000(omniCallDescriptor* cd, omniServant* svnt)
00736 {
00737 _0RL_cd_1473fd27e4f46097_e0000000* tcd = (_0RL_cd_1473fd27e4f46097_e0000000*)cd;
00738 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00739 impl->playSong(tcd->arg_0);
00740
00741
00742 }
00743
00744 void _objref_BotControl::playSong(::CORBA::Short song)
00745 {
00746 _0RL_cd_1473fd27e4f46097_e0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_51000000, "playSong", 9);
00747 _call_desc.arg_0 = song;
00748
00749 _invoke(_call_desc);
00750
00751
00752
00753 }
00754
00755 static void
00756 _0RL_lcfn_1473fd27e4f46097_61000000(omniCallDescriptor*, omniServant* svnt)
00757 {
00758
00759 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00760 impl->dock();
00761
00762
00763 }
00764
00765 void _objref_BotControl::dock()
00766 {
00767 _0RL_cd_1473fd27e4f46097_00000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_61000000, "dock", 5);
00768
00769
00770 _invoke(_call_desc);
00771
00772
00773
00774 }
00775
00776 static void
00777 _0RL_lcfn_1473fd27e4f46097_71000000(omniCallDescriptor*, omniServant* svnt)
00778 {
00779
00780 _impl_BotControl* impl = (_impl_BotControl*) svnt->_ptrToInterface(BotControl::_PD_repoId);
00781 impl->shutdown();
00782
00783
00784 }
00785
00786 void _objref_BotControl::shutdown()
00787 {
00788 _0RL_cd_1473fd27e4f46097_00000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_71000000, "shutdown", 9);
00789
00790
00791 _invoke(_call_desc);
00792
00793
00794
00795 }
00796 _pof_BotControl::~_pof_BotControl() {}
00797
00798
00799 omniObjRef*
00800 _pof_BotControl::newObjRef(omniIOR* ior, omniIdentity* id)
00801 {
00802 return new ::_objref_BotControl(ior, id);
00803 }
00804
00805
00806 ::CORBA::Boolean
00807 _pof_BotControl::is_a(const char* id) const
00808 {
00809 if( omni::ptrStrMatch(id, ::BotControl::_PD_repoId) )
00810 return 1;
00811
00812 return 0;
00813 }
00814
00815 const _pof_BotControl _the_pof_BotControl;
00816
00817 _impl_BotControl::~_impl_BotControl() {}
00818
00819
00820 ::CORBA::Boolean
00821 _impl_BotControl::_dispatch(omniCallHandle& _handle)
00822 {
00823 const char* op = _handle.operation_name();
00824
00825 if( omni::strMatch(op, "init") ) {
00826
00827 _0RL_cd_1473fd27e4f46097_00000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_10000000, "init", 5, 1);
00828
00829 _handle.upcall(this,_call_desc);
00830 return 1;
00831 }
00832
00833 if( omni::strMatch(op, "getSpeed") ) {
00834
00835 _0RL_cd_1473fd27e4f46097_20000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_30000000, "getSpeed", 9, 1);
00836
00837 _handle.upcall(this,_call_desc);
00838 return 1;
00839 }
00840
00841 if( omni::strMatch(op, "setSpeed") ) {
00842
00843 _0RL_cd_1473fd27e4f46097_40000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_50000000, "setSpeed", 9, 1);
00844
00845 _handle.upcall(this,_call_desc);
00846 return 1;
00847 }
00848
00849 if( omni::strMatch(op, "getSteering") ) {
00850
00851 _0RL_cd_1473fd27e4f46097_20000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_60000000, "getSteering", 12, 1);
00852
00853 _handle.upcall(this,_call_desc);
00854 return 1;
00855 }
00856
00857 if( omni::strMatch(op, "setSteering") ) {
00858
00859 _0RL_cd_1473fd27e4f46097_40000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_70000000, "setSteering", 12, 1);
00860
00861 _handle.upcall(this,_call_desc);
00862 return 1;
00863 }
00864
00865 if( omni::strMatch(op, "getImageSensor") ) {
00866
00867 _0RL_cd_1473fd27e4f46097_80000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_90000000, "getImageSensor", 15, 1);
00868
00869 _handle.upcall(this,_call_desc);
00870 return 1;
00871 }
00872
00873 if( omni::strMatch(op, "getImageSensorDims") ) {
00874
00875 _0RL_cd_1473fd27e4f46097_a0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_b0000000, "getImageSensorDims", 19, 1);
00876
00877 _handle.upcall(this,_call_desc);
00878 return 1;
00879 }
00880
00881 if( omni::strMatch(op, "getSensorValue") ) {
00882
00883 _0RL_cd_1473fd27e4f46097_c0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_d0000000, "getSensorValue", 15, 1);
00884
00885 _handle.upcall(this,_call_desc);
00886 return 1;
00887 }
00888
00889 if( omni::strMatch(op, "motorsOff") ) {
00890
00891 _0RL_cd_1473fd27e4f46097_e0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_f0000000, "motorsOff", 10, 1);
00892
00893 _handle.upcall(this,_call_desc);
00894 return 1;
00895 }
00896
00897 if( omni::strMatch(op, "setMotor") ) {
00898
00899 _0RL_cd_1473fd27e4f46097_01000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_11000000, "setMotor", 9, 1);
00900
00901 _handle.upcall(this,_call_desc);
00902 return 1;
00903 }
00904
00905 if( omni::strMatch(op, "sendRawCmd") ) {
00906
00907 _0RL_cd_1473fd27e4f46097_21000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_31000000, "sendRawCmd", 11, 1);
00908
00909 _handle.upcall(this,_call_desc);
00910 return 1;
00911 }
00912
00913 if( omni::strMatch(op, "setOIMode") ) {
00914
00915 _0RL_cd_1473fd27e4f46097_e0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_41000000, "setOIMode", 10, 1);
00916
00917 _handle.upcall(this,_call_desc);
00918 return 1;
00919 }
00920
00921 if( omni::strMatch(op, "playSong") ) {
00922
00923 _0RL_cd_1473fd27e4f46097_e0000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_51000000, "playSong", 9, 1);
00924
00925 _handle.upcall(this,_call_desc);
00926 return 1;
00927 }
00928
00929 if( omni::strMatch(op, "dock") ) {
00930
00931 _0RL_cd_1473fd27e4f46097_00000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_61000000, "dock", 5, 1);
00932
00933 _handle.upcall(this,_call_desc);
00934 return 1;
00935 }
00936
00937 if( omni::strMatch(op, "shutdown") ) {
00938
00939 _0RL_cd_1473fd27e4f46097_00000000 _call_desc(_0RL_lcfn_1473fd27e4f46097_71000000, "shutdown", 9, 1);
00940
00941 _handle.upcall(this,_call_desc);
00942 return 1;
00943 }
00944
00945
00946 return 0;
00947 }
00948
00949 void*
00950 _impl_BotControl::_ptrToInterface(const char* id)
00951 {
00952 if( id == ::BotControl::_PD_repoId )
00953 return (::_impl_BotControl*) this;
00954
00955 if( id == ::CORBA::Object::_PD_repoId )
00956 return (void*) 1;
00957
00958 if( omni::strMatch(id, ::BotControl::_PD_repoId) )
00959 return (::_impl_BotControl*) this;
00960
00961 if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
00962 return (void*) 1;
00963 return 0;
00964 }
00965
00966 const char*
00967 _impl_BotControl::_mostDerivedRepoId()
00968 {
00969 return ::BotControl::_PD_repoId;
00970 }
00971
00972 POA_BotControl::~POA_BotControl() {}
00973