00001 // ********************************************************************** 00002 // 00003 // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. 00004 // 00005 // This copy of Ice is licensed to you under the terms described in the 00006 // ICE_LICENSE file included in this distribution. 00007 // 00008 // ********************************************************************** 00009 00010 // Ice version 3.3.1 00011 // Generated from file `Scorbot.ice' 00012 00013 #ifndef __src_Ice__Scorbot_ice_H__ 00014 #define __src_Ice__Scorbot_ice_H__ 00015 00016 #include <Ice/LocalObjectF.h> 00017 #include <Ice/ProxyF.h> 00018 #include <Ice/ObjectF.h> 00019 #include <Ice/Exception.h> 00020 #include <Ice/LocalObject.h> 00021 #include <Ice/Proxy.h> 00022 #include <Ice/Object.h> 00023 #include <Ice/Outgoing.h> 00024 #include <Ice/Incoming.h> 00025 #include <Ice/Direct.h> 00026 #include <Ice/StreamF.h> 00027 #include <Ice/UndefSysMacros.h> 00028 00029 #ifndef ICE_IGNORE_VERSION 00030 # if ICE_INT_VERSION / 100 != 303 00031 # error Ice version mismatch! 00032 # endif 00033 # if ICE_INT_VERSION % 100 > 50 00034 # error Beta header file detected 00035 # endif 00036 # if ICE_INT_VERSION % 100 < 1 00037 # error Ice patch level mismatch! 00038 # endif 00039 #endif 00040 00041 namespace IceProxy 00042 { 00043 00044 namespace Robots 00045 { 00046 00047 class ScorbotIce; 00048 00049 } 00050 00051 } 00052 00053 namespace Robots 00054 { 00055 00056 class ScorbotIce; 00057 bool operator==(const ScorbotIce&, const ScorbotIce&); 00058 bool operator<(const ScorbotIce&, const ScorbotIce&); 00059 00060 } 00061 00062 namespace IceInternal 00063 { 00064 00065 ::Ice::Object* upCast(::Robots::ScorbotIce*); 00066 ::IceProxy::Ice::Object* upCast(::IceProxy::Robots::ScorbotIce*); 00067 00068 } 00069 00070 namespace Robots 00071 { 00072 00073 typedef ::IceInternal::Handle< ::Robots::ScorbotIce> ScorbotIcePtr; 00074 typedef ::IceInternal::ProxyHandle< ::IceProxy::Robots::ScorbotIce> ScorbotIcePrx; 00075 00076 void __read(::IceInternal::BasicStream*, ScorbotIcePrx&); 00077 void __patch__ScorbotIcePtr(void*, ::Ice::ObjectPtr&); 00078 00079 } 00080 00081 namespace Robots 00082 { 00083 00084 enum JOINTS 00085 { 00086 BASE, 00087 SHOULDER, 00088 ELBOW, 00089 WRIST1, 00090 WRIST2, 00091 GRIPPER, 00092 EX1, 00093 EX2, 00094 WRISTROLL, 00095 WRISTPITCH 00096 }; 00097 00098 void __write(::IceInternal::BasicStream*, JOINTS); 00099 void __read(::IceInternal::BasicStream*, JOINTS&); 00100 00101 struct ArmPos 00102 { 00103 ::Ice::Int base; 00104 ::Ice::Int shoulder; 00105 ::Ice::Int elbow; 00106 ::Ice::Int wrist1; 00107 ::Ice::Int wrist2; 00108 ::Ice::Int gripper; 00109 ::Ice::Int ex1; 00110 ::Ice::Int ex2; 00111 ::Ice::Int wristroll; 00112 ::Ice::Int wristpitch; 00113 ::Ice::Int duration; 00114 00115 bool operator==(const ArmPos&) const; 00116 bool operator<(const ArmPos&) const; 00117 bool operator!=(const ArmPos& __rhs) const 00118 { 00119 return !operator==(__rhs); 00120 } 00121 bool operator<=(const ArmPos& __rhs) const 00122 { 00123 return operator<(__rhs) || operator==(__rhs); 00124 } 00125 bool operator>(const ArmPos& __rhs) const 00126 { 00127 return !operator<(__rhs) && !operator==(__rhs); 00128 } 00129 bool operator>=(const ArmPos& __rhs) const 00130 { 00131 return !operator<(__rhs); 00132 } 00133 00134 void __write(::IceInternal::BasicStream*) const; 00135 void __read(::IceInternal::BasicStream*); 00136 }; 00137 00138 } 00139 00140 namespace IceProxy 00141 { 00142 00143 namespace Robots 00144 { 00145 00146 class ScorbotIce : virtual public ::IceProxy::Ice::Object 00147 { 00148 public: 00149 00150 ::Robots::ArmPos getIK(::Ice::Float x, ::Ice::Float y, ::Ice::Float z) 00151 { 00152 return getIK(x, y, z, 0); 00153 } 00154 ::Robots::ArmPos getIK(::Ice::Float x, ::Ice::Float y, ::Ice::Float z, const ::Ice::Context& __ctx) 00155 { 00156 return getIK(x, y, z, &__ctx); 00157 } 00158 00159 private: 00160 00161 ::Robots::ArmPos getIK(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*); 00162 00163 public: 00164 00165 bool getEFpos(::Ice::Float& x, ::Ice::Float& y, ::Ice::Float& z) 00166 { 00167 return getEFpos(x, y, z, 0); 00168 } 00169 bool getEFpos(::Ice::Float& x, ::Ice::Float& y, ::Ice::Float& z, const ::Ice::Context& __ctx) 00170 { 00171 return getEFpos(x, y, z, &__ctx); 00172 } 00173 00174 private: 00175 00176 bool getEFpos(::Ice::Float&, ::Ice::Float&, ::Ice::Float&, const ::Ice::Context*); 00177 00178 public: 00179 00180 bool setEFPos(::Ice::Float x, ::Ice::Float y, ::Ice::Float z) 00181 { 00182 return setEFPos(x, y, z, 0); 00183 } 00184 bool setEFPos(::Ice::Float x, ::Ice::Float y, ::Ice::Float z, const ::Ice::Context& __ctx) 00185 { 00186 return setEFPos(x, y, z, &__ctx); 00187 } 00188 00189 private: 00190 00191 bool setEFPos(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*); 00192 00193 public: 00194 00195 bool setMotor(::Robots::JOINTS joint, ::Ice::Int pwm) 00196 { 00197 return setMotor(joint, pwm, 0); 00198 } 00199 bool setMotor(::Robots::JOINTS joint, ::Ice::Int pwm, const ::Ice::Context& __ctx) 00200 { 00201 return setMotor(joint, pwm, &__ctx); 00202 } 00203 00204 private: 00205 00206 bool setMotor(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*); 00207 00208 public: 00209 00210 ::Ice::Int getPWM(::Robots::JOINTS j) 00211 { 00212 return getPWM(j, 0); 00213 } 00214 ::Ice::Int getPWM(::Robots::JOINTS j, const ::Ice::Context& __ctx) 00215 { 00216 return getPWM(j, &__ctx); 00217 } 00218 00219 private: 00220 00221 ::Ice::Int getPWM(::Robots::JOINTS, const ::Ice::Context*); 00222 00223 public: 00224 00225 bool setJointPos(::Robots::JOINTS joint, ::Ice::Int pos) 00226 { 00227 return setJointPos(joint, pos, 0); 00228 } 00229 bool setJointPos(::Robots::JOINTS joint, ::Ice::Int pos, const ::Ice::Context& __ctx) 00230 { 00231 return setJointPos(joint, pos, &__ctx); 00232 } 00233 00234 private: 00235 00236 bool setJointPos(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*); 00237 00238 public: 00239 00240 ::Ice::Int getJointPos(::Robots::JOINTS joint) 00241 { 00242 return getJointPos(joint, 0); 00243 } 00244 ::Ice::Int getJointPos(::Robots::JOINTS joint, const ::Ice::Context& __ctx) 00245 { 00246 return getJointPos(joint, &__ctx); 00247 } 00248 00249 private: 00250 00251 ::Ice::Int getJointPos(::Robots::JOINTS, const ::Ice::Context*); 00252 00253 public: 00254 00255 ::Ice::Float getEncoderAng(::Robots::JOINTS joint) 00256 { 00257 return getEncoderAng(joint, 0); 00258 } 00259 ::Ice::Float getEncoderAng(::Robots::JOINTS joint, const ::Ice::Context& __ctx) 00260 { 00261 return getEncoderAng(joint, &__ctx); 00262 } 00263 00264 private: 00265 00266 ::Ice::Float getEncoderAng(::Robots::JOINTS, const ::Ice::Context*); 00267 00268 public: 00269 00270 void resetEncoders() 00271 { 00272 resetEncoders(0); 00273 } 00274 void resetEncoders(const ::Ice::Context& __ctx) 00275 { 00276 resetEncoders(&__ctx); 00277 } 00278 00279 private: 00280 00281 void resetEncoders(const ::Ice::Context*); 00282 00283 public: 00284 00285 void stopAllMotors() 00286 { 00287 stopAllMotors(0); 00288 } 00289 void stopAllMotors(const ::Ice::Context& __ctx) 00290 { 00291 stopAllMotors(&__ctx); 00292 } 00293 00294 private: 00295 00296 void stopAllMotors(const ::Ice::Context*); 00297 00298 public: 00299 00300 void setSafety(bool val) 00301 { 00302 setSafety(val, 0); 00303 } 00304 void setSafety(bool val, const ::Ice::Context& __ctx) 00305 { 00306 setSafety(val, &__ctx); 00307 } 00308 00309 private: 00310 00311 void setSafety(bool, const ::Ice::Context*); 00312 00313 public: 00314 00315 ::Ice::Int getMovementTime() 00316 { 00317 return getMovementTime(0); 00318 } 00319 ::Ice::Int getMovementTime(const ::Ice::Context& __ctx) 00320 { 00321 return getMovementTime(&__ctx); 00322 } 00323 00324 private: 00325 00326 ::Ice::Int getMovementTime(const ::Ice::Context*); 00327 00328 public: 00329 00330 void homeMotor(::Robots::JOINTS joint, ::Ice::Int LimitSeekSpeed, ::Ice::Int MSJumpSpeed, ::Ice::Float MSJumpDelay, ::Ice::Int MSSeekSpeed, bool MSStopCondition, bool checkMS) 00331 { 00332 homeMotor(joint, LimitSeekSpeed, MSJumpSpeed, MSJumpDelay, MSSeekSpeed, MSStopCondition, checkMS, 0); 00333 } 00334 void homeMotor(::Robots::JOINTS joint, ::Ice::Int LimitSeekSpeed, ::Ice::Int MSJumpSpeed, ::Ice::Float MSJumpDelay, ::Ice::Int MSSeekSpeed, bool MSStopCondition, bool checkMS, const ::Ice::Context& __ctx) 00335 { 00336 homeMotor(joint, LimitSeekSpeed, MSJumpSpeed, MSJumpDelay, MSSeekSpeed, MSStopCondition, checkMS, &__ctx); 00337 } 00338 00339 private: 00340 00341 void homeMotor(::Robots::JOINTS, ::Ice::Int, ::Ice::Int, ::Ice::Float, ::Ice::Int, bool, bool, const ::Ice::Context*); 00342 00343 public: 00344 00345 void homeMotors() 00346 { 00347 homeMotors(0); 00348 } 00349 void homeMotors(const ::Ice::Context& __ctx) 00350 { 00351 homeMotors(&__ctx); 00352 } 00353 00354 private: 00355 00356 void homeMotors(const ::Ice::Context*); 00357 00358 public: 00359 00360 ::Ice::Int getMicroSwitch() 00361 { 00362 return getMicroSwitch(0); 00363 } 00364 ::Ice::Int getMicroSwitch(const ::Ice::Context& __ctx) 00365 { 00366 return getMicroSwitch(&__ctx); 00367 } 00368 00369 private: 00370 00371 ::Ice::Int getMicroSwitch(const ::Ice::Context*); 00372 00373 public: 00374 00375 ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS m) 00376 { 00377 return getMicroSwitchMotor(m, 0); 00378 } 00379 ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS m, const ::Ice::Context& __ctx) 00380 { 00381 return getMicroSwitchMotor(m, &__ctx); 00382 } 00383 00384 private: 00385 00386 ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS, const ::Ice::Context*); 00387 00388 public: 00389 00390 bool setArmPos(const ::Robots::ArmPos& pos) 00391 { 00392 return setArmPos(pos, 0); 00393 } 00394 bool setArmPos(const ::Robots::ArmPos& pos, const ::Ice::Context& __ctx) 00395 { 00396 return setArmPos(pos, &__ctx); 00397 } 00398 00399 private: 00400 00401 bool setArmPos(const ::Robots::ArmPos&, const ::Ice::Context*); 00402 00403 public: 00404 00405 ::Robots::ArmPos getArmPos() 00406 { 00407 return getArmPos(0); 00408 } 00409 ::Robots::ArmPos getArmPos(const ::Ice::Context& __ctx) 00410 { 00411 return getArmPos(&__ctx); 00412 } 00413 00414 private: 00415 00416 ::Robots::ArmPos getArmPos(const ::Ice::Context*); 00417 00418 public: 00419 00420 void motorsOn() 00421 { 00422 motorsOn(0); 00423 } 00424 void motorsOn(const ::Ice::Context& __ctx) 00425 { 00426 motorsOn(&__ctx); 00427 } 00428 00429 private: 00430 00431 void motorsOn(const ::Ice::Context*); 00432 00433 public: 00434 00435 void motorsOff() 00436 { 00437 motorsOff(0); 00438 } 00439 void motorsOff(const ::Ice::Context& __ctx) 00440 { 00441 motorsOff(&__ctx); 00442 } 00443 00444 private: 00445 00446 void motorsOff(const ::Ice::Context*); 00447 00448 public: 00449 00450 void shutdown() 00451 { 00452 shutdown(0); 00453 } 00454 void shutdown(const ::Ice::Context& __ctx) 00455 { 00456 shutdown(&__ctx); 00457 } 00458 00459 private: 00460 00461 void shutdown(const ::Ice::Context*); 00462 00463 public: 00464 00465 ::Ice::Double enc2ang(::Ice::Int encoderTicks) 00466 { 00467 return enc2ang(encoderTicks, 0); 00468 } 00469 ::Ice::Double enc2ang(::Ice::Int encoderTicks, const ::Ice::Context& __ctx) 00470 { 00471 return enc2ang(encoderTicks, &__ctx); 00472 } 00473 00474 private: 00475 00476 ::Ice::Double enc2ang(::Ice::Int, const ::Ice::Context*); 00477 00478 public: 00479 00480 ::Ice::Int ang2enc(::Ice::Double degrees) 00481 { 00482 return ang2enc(degrees, 0); 00483 } 00484 ::Ice::Int ang2enc(::Ice::Double degrees, const ::Ice::Context& __ctx) 00485 { 00486 return ang2enc(degrees, &__ctx); 00487 } 00488 00489 private: 00490 00491 ::Ice::Int ang2enc(::Ice::Double, const ::Ice::Context*); 00492 00493 public: 00494 00495 ::Ice::Double enc2mm(::Ice::Int encoderTicks) 00496 { 00497 return enc2mm(encoderTicks, 0); 00498 } 00499 ::Ice::Double enc2mm(::Ice::Int encoderTicks, const ::Ice::Context& __ctx) 00500 { 00501 return enc2mm(encoderTicks, &__ctx); 00502 } 00503 00504 private: 00505 00506 ::Ice::Double enc2mm(::Ice::Int, const ::Ice::Context*); 00507 00508 public: 00509 00510 ::Ice::Int mm2enc(::Ice::Double mm) 00511 { 00512 return mm2enc(mm, 0); 00513 } 00514 ::Ice::Int mm2enc(::Ice::Double mm, const ::Ice::Context& __ctx) 00515 { 00516 return mm2enc(mm, &__ctx); 00517 } 00518 00519 private: 00520 00521 ::Ice::Int mm2enc(::Ice::Double, const ::Ice::Context*); 00522 00523 public: 00524 00525 ::IceInternal::ProxyHandle<ScorbotIce> ice_context(const ::Ice::Context& __context) const 00526 { 00527 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00528 typedef ::IceProxy::Ice::Object _Base; 00529 return dynamic_cast<ScorbotIce*>(_Base::ice_context(__context).get()); 00530 #else 00531 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_context(__context).get()); 00532 #endif 00533 } 00534 00535 ::IceInternal::ProxyHandle<ScorbotIce> ice_adapterId(const std::string& __id) const 00536 { 00537 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00538 typedef ::IceProxy::Ice::Object _Base; 00539 return dynamic_cast<ScorbotIce*>(_Base::ice_adapterId(__id).get()); 00540 #else 00541 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_adapterId(__id).get()); 00542 #endif 00543 } 00544 00545 ::IceInternal::ProxyHandle<ScorbotIce> ice_endpoints(const ::Ice::EndpointSeq& __endpoints) const 00546 { 00547 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00548 typedef ::IceProxy::Ice::Object _Base; 00549 return dynamic_cast<ScorbotIce*>(_Base::ice_endpoints(__endpoints).get()); 00550 #else 00551 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_endpoints(__endpoints).get()); 00552 #endif 00553 } 00554 00555 ::IceInternal::ProxyHandle<ScorbotIce> ice_locatorCacheTimeout(int __timeout) const 00556 { 00557 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00558 typedef ::IceProxy::Ice::Object _Base; 00559 return dynamic_cast<ScorbotIce*>(_Base::ice_locatorCacheTimeout(__timeout).get()); 00560 #else 00561 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_locatorCacheTimeout(__timeout).get()); 00562 #endif 00563 } 00564 00565 ::IceInternal::ProxyHandle<ScorbotIce> ice_connectionCached(bool __cached) const 00566 { 00567 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00568 typedef ::IceProxy::Ice::Object _Base; 00569 return dynamic_cast<ScorbotIce*>(_Base::ice_connectionCached(__cached).get()); 00570 #else 00571 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_connectionCached(__cached).get()); 00572 #endif 00573 } 00574 00575 ::IceInternal::ProxyHandle<ScorbotIce> ice_endpointSelection(::Ice::EndpointSelectionType __est) const 00576 { 00577 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00578 typedef ::IceProxy::Ice::Object _Base; 00579 return dynamic_cast<ScorbotIce*>(_Base::ice_endpointSelection(__est).get()); 00580 #else 00581 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_endpointSelection(__est).get()); 00582 #endif 00583 } 00584 00585 ::IceInternal::ProxyHandle<ScorbotIce> ice_secure(bool __secure) const 00586 { 00587 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00588 typedef ::IceProxy::Ice::Object _Base; 00589 return dynamic_cast<ScorbotIce*>(_Base::ice_secure(__secure).get()); 00590 #else 00591 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_secure(__secure).get()); 00592 #endif 00593 } 00594 00595 ::IceInternal::ProxyHandle<ScorbotIce> ice_preferSecure(bool __preferSecure) const 00596 { 00597 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00598 typedef ::IceProxy::Ice::Object _Base; 00599 return dynamic_cast<ScorbotIce*>(_Base::ice_preferSecure(__preferSecure).get()); 00600 #else 00601 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_preferSecure(__preferSecure).get()); 00602 #endif 00603 } 00604 00605 ::IceInternal::ProxyHandle<ScorbotIce> ice_router(const ::Ice::RouterPrx& __router) const 00606 { 00607 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00608 typedef ::IceProxy::Ice::Object _Base; 00609 return dynamic_cast<ScorbotIce*>(_Base::ice_router(__router).get()); 00610 #else 00611 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_router(__router).get()); 00612 #endif 00613 } 00614 00615 ::IceInternal::ProxyHandle<ScorbotIce> ice_locator(const ::Ice::LocatorPrx& __locator) const 00616 { 00617 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00618 typedef ::IceProxy::Ice::Object _Base; 00619 return dynamic_cast<ScorbotIce*>(_Base::ice_locator(__locator).get()); 00620 #else 00621 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_locator(__locator).get()); 00622 #endif 00623 } 00624 00625 ::IceInternal::ProxyHandle<ScorbotIce> ice_collocationOptimized(bool __co) const 00626 { 00627 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00628 typedef ::IceProxy::Ice::Object _Base; 00629 return dynamic_cast<ScorbotIce*>(_Base::ice_collocationOptimized(__co).get()); 00630 #else 00631 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_collocationOptimized(__co).get()); 00632 #endif 00633 } 00634 00635 ::IceInternal::ProxyHandle<ScorbotIce> ice_twoway() const 00636 { 00637 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00638 typedef ::IceProxy::Ice::Object _Base; 00639 return dynamic_cast<ScorbotIce*>(_Base::ice_twoway().get()); 00640 #else 00641 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_twoway().get()); 00642 #endif 00643 } 00644 00645 ::IceInternal::ProxyHandle<ScorbotIce> ice_oneway() const 00646 { 00647 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00648 typedef ::IceProxy::Ice::Object _Base; 00649 return dynamic_cast<ScorbotIce*>(_Base::ice_oneway().get()); 00650 #else 00651 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_oneway().get()); 00652 #endif 00653 } 00654 00655 ::IceInternal::ProxyHandle<ScorbotIce> ice_batchOneway() const 00656 { 00657 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00658 typedef ::IceProxy::Ice::Object _Base; 00659 return dynamic_cast<ScorbotIce*>(_Base::ice_batchOneway().get()); 00660 #else 00661 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_batchOneway().get()); 00662 #endif 00663 } 00664 00665 ::IceInternal::ProxyHandle<ScorbotIce> ice_datagram() const 00666 { 00667 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00668 typedef ::IceProxy::Ice::Object _Base; 00669 return dynamic_cast<ScorbotIce*>(_Base::ice_datagram().get()); 00670 #else 00671 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_datagram().get()); 00672 #endif 00673 } 00674 00675 ::IceInternal::ProxyHandle<ScorbotIce> ice_batchDatagram() const 00676 { 00677 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00678 typedef ::IceProxy::Ice::Object _Base; 00679 return dynamic_cast<ScorbotIce*>(_Base::ice_batchDatagram().get()); 00680 #else 00681 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_batchDatagram().get()); 00682 #endif 00683 } 00684 00685 ::IceInternal::ProxyHandle<ScorbotIce> ice_compress(bool __compress) const 00686 { 00687 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00688 typedef ::IceProxy::Ice::Object _Base; 00689 return dynamic_cast<ScorbotIce*>(_Base::ice_compress(__compress).get()); 00690 #else 00691 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_compress(__compress).get()); 00692 #endif 00693 } 00694 00695 ::IceInternal::ProxyHandle<ScorbotIce> ice_timeout(int __timeout) const 00696 { 00697 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00698 typedef ::IceProxy::Ice::Object _Base; 00699 return dynamic_cast<ScorbotIce*>(_Base::ice_timeout(__timeout).get()); 00700 #else 00701 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_timeout(__timeout).get()); 00702 #endif 00703 } 00704 00705 ::IceInternal::ProxyHandle<ScorbotIce> ice_connectionId(const std::string& __id) const 00706 { 00707 #if defined(_MSC_VER) && (_MSC_VER < 1300) // VC++ 6 compiler bug 00708 typedef ::IceProxy::Ice::Object _Base; 00709 return dynamic_cast<ScorbotIce*>(_Base::ice_connectionId(__id).get()); 00710 #else 00711 return dynamic_cast<ScorbotIce*>(::IceProxy::Ice::Object::ice_connectionId(__id).get()); 00712 #endif 00713 } 00714 00715 static const ::std::string& ice_staticId(); 00716 00717 private: 00718 00719 virtual ::IceInternal::Handle< ::IceDelegateM::Ice::Object> __createDelegateM(); 00720 virtual ::IceInternal::Handle< ::IceDelegateD::Ice::Object> __createDelegateD(); 00721 virtual ::IceProxy::Ice::Object* __newInstance() const; 00722 }; 00723 00724 } 00725 00726 } 00727 00728 namespace IceDelegate 00729 { 00730 00731 namespace Robots 00732 { 00733 00734 class ScorbotIce : virtual public ::IceDelegate::Ice::Object 00735 { 00736 public: 00737 00738 virtual ::Robots::ArmPos getIK(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*) = 0; 00739 00740 virtual bool getEFpos(::Ice::Float&, ::Ice::Float&, ::Ice::Float&, const ::Ice::Context*) = 0; 00741 00742 virtual bool setEFPos(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*) = 0; 00743 00744 virtual bool setMotor(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*) = 0; 00745 00746 virtual ::Ice::Int getPWM(::Robots::JOINTS, const ::Ice::Context*) = 0; 00747 00748 virtual bool setJointPos(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*) = 0; 00749 00750 virtual ::Ice::Int getJointPos(::Robots::JOINTS, const ::Ice::Context*) = 0; 00751 00752 virtual ::Ice::Float getEncoderAng(::Robots::JOINTS, const ::Ice::Context*) = 0; 00753 00754 virtual void resetEncoders(const ::Ice::Context*) = 0; 00755 00756 virtual void stopAllMotors(const ::Ice::Context*) = 0; 00757 00758 virtual void setSafety(bool, const ::Ice::Context*) = 0; 00759 00760 virtual ::Ice::Int getMovementTime(const ::Ice::Context*) = 0; 00761 00762 virtual void homeMotor(::Robots::JOINTS, ::Ice::Int, ::Ice::Int, ::Ice::Float, ::Ice::Int, bool, bool, const ::Ice::Context*) = 0; 00763 00764 virtual void homeMotors(const ::Ice::Context*) = 0; 00765 00766 virtual ::Ice::Int getMicroSwitch(const ::Ice::Context*) = 0; 00767 00768 virtual ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS, const ::Ice::Context*) = 0; 00769 00770 virtual bool setArmPos(const ::Robots::ArmPos&, const ::Ice::Context*) = 0; 00771 00772 virtual ::Robots::ArmPos getArmPos(const ::Ice::Context*) = 0; 00773 00774 virtual void motorsOn(const ::Ice::Context*) = 0; 00775 00776 virtual void motorsOff(const ::Ice::Context*) = 0; 00777 00778 virtual void shutdown(const ::Ice::Context*) = 0; 00779 00780 virtual ::Ice::Double enc2ang(::Ice::Int, const ::Ice::Context*) = 0; 00781 00782 virtual ::Ice::Int ang2enc(::Ice::Double, const ::Ice::Context*) = 0; 00783 00784 virtual ::Ice::Double enc2mm(::Ice::Int, const ::Ice::Context*) = 0; 00785 00786 virtual ::Ice::Int mm2enc(::Ice::Double, const ::Ice::Context*) = 0; 00787 }; 00788 00789 } 00790 00791 } 00792 00793 namespace IceDelegateM 00794 { 00795 00796 namespace Robots 00797 { 00798 00799 class ScorbotIce : virtual public ::IceDelegate::Robots::ScorbotIce, 00800 virtual public ::IceDelegateM::Ice::Object 00801 { 00802 public: 00803 00804 virtual ::Robots::ArmPos getIK(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*); 00805 00806 virtual bool getEFpos(::Ice::Float&, ::Ice::Float&, ::Ice::Float&, const ::Ice::Context*); 00807 00808 virtual bool setEFPos(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*); 00809 00810 virtual bool setMotor(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*); 00811 00812 virtual ::Ice::Int getPWM(::Robots::JOINTS, const ::Ice::Context*); 00813 00814 virtual bool setJointPos(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*); 00815 00816 virtual ::Ice::Int getJointPos(::Robots::JOINTS, const ::Ice::Context*); 00817 00818 virtual ::Ice::Float getEncoderAng(::Robots::JOINTS, const ::Ice::Context*); 00819 00820 virtual void resetEncoders(const ::Ice::Context*); 00821 00822 virtual void stopAllMotors(const ::Ice::Context*); 00823 00824 virtual void setSafety(bool, const ::Ice::Context*); 00825 00826 virtual ::Ice::Int getMovementTime(const ::Ice::Context*); 00827 00828 virtual void homeMotor(::Robots::JOINTS, ::Ice::Int, ::Ice::Int, ::Ice::Float, ::Ice::Int, bool, bool, const ::Ice::Context*); 00829 00830 virtual void homeMotors(const ::Ice::Context*); 00831 00832 virtual ::Ice::Int getMicroSwitch(const ::Ice::Context*); 00833 00834 virtual ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS, const ::Ice::Context*); 00835 00836 virtual bool setArmPos(const ::Robots::ArmPos&, const ::Ice::Context*); 00837 00838 virtual ::Robots::ArmPos getArmPos(const ::Ice::Context*); 00839 00840 virtual void motorsOn(const ::Ice::Context*); 00841 00842 virtual void motorsOff(const ::Ice::Context*); 00843 00844 virtual void shutdown(const ::Ice::Context*); 00845 00846 virtual ::Ice::Double enc2ang(::Ice::Int, const ::Ice::Context*); 00847 00848 virtual ::Ice::Int ang2enc(::Ice::Double, const ::Ice::Context*); 00849 00850 virtual ::Ice::Double enc2mm(::Ice::Int, const ::Ice::Context*); 00851 00852 virtual ::Ice::Int mm2enc(::Ice::Double, const ::Ice::Context*); 00853 }; 00854 00855 } 00856 00857 } 00858 00859 namespace IceDelegateD 00860 { 00861 00862 namespace Robots 00863 { 00864 00865 class ScorbotIce : virtual public ::IceDelegate::Robots::ScorbotIce, 00866 virtual public ::IceDelegateD::Ice::Object 00867 { 00868 public: 00869 00870 virtual ::Robots::ArmPos getIK(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*); 00871 00872 virtual bool getEFpos(::Ice::Float&, ::Ice::Float&, ::Ice::Float&, const ::Ice::Context*); 00873 00874 virtual bool setEFPos(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Context*); 00875 00876 virtual bool setMotor(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*); 00877 00878 virtual ::Ice::Int getPWM(::Robots::JOINTS, const ::Ice::Context*); 00879 00880 virtual bool setJointPos(::Robots::JOINTS, ::Ice::Int, const ::Ice::Context*); 00881 00882 virtual ::Ice::Int getJointPos(::Robots::JOINTS, const ::Ice::Context*); 00883 00884 virtual ::Ice::Float getEncoderAng(::Robots::JOINTS, const ::Ice::Context*); 00885 00886 virtual void resetEncoders(const ::Ice::Context*); 00887 00888 virtual void stopAllMotors(const ::Ice::Context*); 00889 00890 virtual void setSafety(bool, const ::Ice::Context*); 00891 00892 virtual ::Ice::Int getMovementTime(const ::Ice::Context*); 00893 00894 virtual void homeMotor(::Robots::JOINTS, ::Ice::Int, ::Ice::Int, ::Ice::Float, ::Ice::Int, bool, bool, const ::Ice::Context*); 00895 00896 virtual void homeMotors(const ::Ice::Context*); 00897 00898 virtual ::Ice::Int getMicroSwitch(const ::Ice::Context*); 00899 00900 virtual ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS, const ::Ice::Context*); 00901 00902 virtual bool setArmPos(const ::Robots::ArmPos&, const ::Ice::Context*); 00903 00904 virtual ::Robots::ArmPos getArmPos(const ::Ice::Context*); 00905 00906 virtual void motorsOn(const ::Ice::Context*); 00907 00908 virtual void motorsOff(const ::Ice::Context*); 00909 00910 virtual void shutdown(const ::Ice::Context*); 00911 00912 virtual ::Ice::Double enc2ang(::Ice::Int, const ::Ice::Context*); 00913 00914 virtual ::Ice::Int ang2enc(::Ice::Double, const ::Ice::Context*); 00915 00916 virtual ::Ice::Double enc2mm(::Ice::Int, const ::Ice::Context*); 00917 00918 virtual ::Ice::Int mm2enc(::Ice::Double, const ::Ice::Context*); 00919 }; 00920 00921 } 00922 00923 } 00924 00925 namespace Robots 00926 { 00927 00928 class ScorbotIce : virtual public ::Ice::Object 00929 { 00930 public: 00931 00932 typedef ScorbotIcePrx ProxyType; 00933 typedef ScorbotIcePtr PointerType; 00934 00935 virtual ::Ice::ObjectPtr ice_clone() const; 00936 00937 virtual bool ice_isA(const ::std::string&, const ::Ice::Current& = ::Ice::Current()) const; 00938 virtual ::std::vector< ::std::string> ice_ids(const ::Ice::Current& = ::Ice::Current()) const; 00939 virtual const ::std::string& ice_id(const ::Ice::Current& = ::Ice::Current()) const; 00940 static const ::std::string& ice_staticId(); 00941 00942 virtual ::Robots::ArmPos getIK(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Current& = ::Ice::Current()) = 0; 00943 ::Ice::DispatchStatus ___getIK(::IceInternal::Incoming&, const ::Ice::Current&); 00944 00945 virtual bool getEFpos(::Ice::Float&, ::Ice::Float&, ::Ice::Float&, const ::Ice::Current& = ::Ice::Current()) = 0; 00946 ::Ice::DispatchStatus ___getEFpos(::IceInternal::Incoming&, const ::Ice::Current&); 00947 00948 virtual bool setEFPos(::Ice::Float, ::Ice::Float, ::Ice::Float, const ::Ice::Current& = ::Ice::Current()) = 0; 00949 ::Ice::DispatchStatus ___setEFPos(::IceInternal::Incoming&, const ::Ice::Current&); 00950 00951 virtual bool setMotor(::Robots::JOINTS, ::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0; 00952 ::Ice::DispatchStatus ___setMotor(::IceInternal::Incoming&, const ::Ice::Current&); 00953 00954 virtual ::Ice::Int getPWM(::Robots::JOINTS, const ::Ice::Current& = ::Ice::Current()) = 0; 00955 ::Ice::DispatchStatus ___getPWM(::IceInternal::Incoming&, const ::Ice::Current&); 00956 00957 virtual bool setJointPos(::Robots::JOINTS, ::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0; 00958 ::Ice::DispatchStatus ___setJointPos(::IceInternal::Incoming&, const ::Ice::Current&); 00959 00960 virtual ::Ice::Int getJointPos(::Robots::JOINTS, const ::Ice::Current& = ::Ice::Current()) = 0; 00961 ::Ice::DispatchStatus ___getJointPos(::IceInternal::Incoming&, const ::Ice::Current&); 00962 00963 virtual ::Ice::Float getEncoderAng(::Robots::JOINTS, const ::Ice::Current& = ::Ice::Current()) = 0; 00964 ::Ice::DispatchStatus ___getEncoderAng(::IceInternal::Incoming&, const ::Ice::Current&); 00965 00966 virtual void resetEncoders(const ::Ice::Current& = ::Ice::Current()) = 0; 00967 ::Ice::DispatchStatus ___resetEncoders(::IceInternal::Incoming&, const ::Ice::Current&); 00968 00969 virtual void stopAllMotors(const ::Ice::Current& = ::Ice::Current()) = 0; 00970 ::Ice::DispatchStatus ___stopAllMotors(::IceInternal::Incoming&, const ::Ice::Current&); 00971 00972 virtual void setSafety(bool, const ::Ice::Current& = ::Ice::Current()) = 0; 00973 ::Ice::DispatchStatus ___setSafety(::IceInternal::Incoming&, const ::Ice::Current&); 00974 00975 virtual ::Ice::Int getMovementTime(const ::Ice::Current& = ::Ice::Current()) = 0; 00976 ::Ice::DispatchStatus ___getMovementTime(::IceInternal::Incoming&, const ::Ice::Current&); 00977 00978 virtual void homeMotor(::Robots::JOINTS, ::Ice::Int, ::Ice::Int, ::Ice::Float, ::Ice::Int, bool, bool, const ::Ice::Current& = ::Ice::Current()) = 0; 00979 ::Ice::DispatchStatus ___homeMotor(::IceInternal::Incoming&, const ::Ice::Current&); 00980 00981 virtual void homeMotors(const ::Ice::Current& = ::Ice::Current()) = 0; 00982 ::Ice::DispatchStatus ___homeMotors(::IceInternal::Incoming&, const ::Ice::Current&); 00983 00984 virtual ::Ice::Int getMicroSwitch(const ::Ice::Current& = ::Ice::Current()) = 0; 00985 ::Ice::DispatchStatus ___getMicroSwitch(::IceInternal::Incoming&, const ::Ice::Current&); 00986 00987 virtual ::Ice::Int getMicroSwitchMotor(::Robots::JOINTS, const ::Ice::Current& = ::Ice::Current()) = 0; 00988 ::Ice::DispatchStatus ___getMicroSwitchMotor(::IceInternal::Incoming&, const ::Ice::Current&); 00989 00990 virtual bool setArmPos(const ::Robots::ArmPos&, const ::Ice::Current& = ::Ice::Current()) = 0; 00991 ::Ice::DispatchStatus ___setArmPos(::IceInternal::Incoming&, const ::Ice::Current&); 00992 00993 virtual ::Robots::ArmPos getArmPos(const ::Ice::Current& = ::Ice::Current()) = 0; 00994 ::Ice::DispatchStatus ___getArmPos(::IceInternal::Incoming&, const ::Ice::Current&); 00995 00996 virtual void motorsOn(const ::Ice::Current& = ::Ice::Current()) = 0; 00997 ::Ice::DispatchStatus ___motorsOn(::IceInternal::Incoming&, const ::Ice::Current&); 00998 00999 virtual void motorsOff(const ::Ice::Current& = ::Ice::Current()) = 0; 01000 ::Ice::DispatchStatus ___motorsOff(::IceInternal::Incoming&, const ::Ice::Current&); 01001 01002 virtual void shutdown(const ::Ice::Current& = ::Ice::Current()) = 0; 01003 ::Ice::DispatchStatus ___shutdown(::IceInternal::Incoming&, const ::Ice::Current&); 01004 01005 virtual ::Ice::Double enc2ang(::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0; 01006 ::Ice::DispatchStatus ___enc2ang(::IceInternal::Incoming&, const ::Ice::Current&); 01007 01008 virtual ::Ice::Int ang2enc(::Ice::Double, const ::Ice::Current& = ::Ice::Current()) = 0; 01009 ::Ice::DispatchStatus ___ang2enc(::IceInternal::Incoming&, const ::Ice::Current&); 01010 01011 virtual ::Ice::Double enc2mm(::Ice::Int, const ::Ice::Current& = ::Ice::Current()) = 0; 01012 ::Ice::DispatchStatus ___enc2mm(::IceInternal::Incoming&, const ::Ice::Current&); 01013 01014 virtual ::Ice::Int mm2enc(::Ice::Double, const ::Ice::Current& = ::Ice::Current()) = 0; 01015 ::Ice::DispatchStatus ___mm2enc(::IceInternal::Incoming&, const ::Ice::Current&); 01016 01017 virtual ::Ice::DispatchStatus __dispatch(::IceInternal::Incoming&, const ::Ice::Current&); 01018 01019 virtual void __write(::IceInternal::BasicStream*) const; 01020 virtual void __read(::IceInternal::BasicStream*, bool); 01021 virtual void __write(const ::Ice::OutputStreamPtr&) const; 01022 virtual void __read(const ::Ice::InputStreamPtr&, bool); 01023 }; 01024 01025 } 01026 01027 #endif