|
| StarEnlargerServiceWorker (const Nice::JointPtr &_config, Basda::MoccaCDevicePtr _coconDevice, std::vector< Basda::MoccaNDevicePtr > _moconDevice) |
|
virtual | ~StarEnlargerServiceWorker () |
|
virtual void | init () |
|
virtual void | deinit () |
|
virtual void | activate () |
|
virtual void | deactivate () |
|
virtual void | terminate () |
| schedule EXIT as the next target state. More...
|
|
virtual void | errorOffline () |
| set the target state to OFFLINE. More...
|
|
virtual void | errorStandby () |
| set the target state to OFFLINE. More...
|
|
virtual void | errorOnline () |
| set the target state to OFFLINE. More...
|
|
virtual void | errorWorking () |
| set the target state to OFFLINE. More...
|
|
virtual void | idleOffline () |
| wait for a state change. More...
|
|
virtual void | idleOnline () |
| wait for a state change. More...
|
|
virtual void | stop () |
| does nothing. More...
|
|
virtual void | abort () |
| does nothing. More...
|
|
virtual bool | isReachable () |
|
virtual bool | isAtHome () |
|
virtual bool | isAtLimit () |
|
virtual bool | isMoving () |
|
virtual bool | isCurrentlyEnabled (std::string _device) |
|
virtual void | getCollision () |
|
virtual void | setCollision () |
|
virtual void | resetCollision () |
|
virtual Nice::MapStringPoint | getPosition () |
|
virtual Nice::MapStringPoint | getPosition (std::string _unit, std::string _coordSys, bool _devEncoder=true) |
|
virtual Nice::MapStringRect | getTravelrange () |
|
virtual Nice::MapStringWMatrix | getTransformation (std::string _unit="UM", std::string _coordSys="F") |
|
virtual void | setPosition (std::string _name, const Nice::Point &_position) |
|
virtual Nice::MapStringPoint | convertPosition (const Nice::MapStringPoint &_position, bool _fromAbsolute, std::string _fromUnit, std::string _fromCoordSys, bool _toAbsolute, std::string _toUnit, std::string _toCoordSys) |
|
std::map< std::string, Nice::BitSet > | identifyMovingMotors (Nice::MapStringPoint _positions, std::string _unit, std::string _coordSys, bool _absolute) |
|
virtual bool | validateMoveTo (const Nice::MapStringPoint &_positions, std::string _unit, std::string _coordSys) |
|
virtual void | moveTo (const Nice::MapStringPoint &_positions, std::string _unit, std::string _coordSys) |
|
virtual void | retreatToBase (const Nice::MapStringPoint &_positions) |
| Move the y-positions of all devices in the _positions to zero. Effectively this retreats all motors to their base positions, keeping the x component and minimizing the amount the individual motors stick into the common area. The implementation is serialized, which means, the motors move individually in the order detailed in the _positions, and the next motor moves once the previous motor has settled to its base position. More...
|
|
virtual bool | validateMoveBy (const Nice::MapStringPoint &_distance, std::string _unit, std::string _coordSys) |
|
virtual void | moveBy (const Nice::MapStringPoint &_distance, std::string _unit, std::string _coordSys) |
|
virtual void | moveToStart (std::string _name, const Nice::Point &_position, std::string _unit, std::string _coordSys) |
| Start moving a motor to an absolute position. If the motor is not enabled, it will not be moved. More...
|
|
virtual void | moveToWait () |
|
virtual void | moveByStart (std::string _name, const Nice::Point &_position, std::string _unit, std::string _coordSys) |
| Start moving a motor by a relative amount. If the motor is not enabled, it will not be moved. More...
|
|
virtual void | moveByWait () |
|
virtual void | moveToLimitStart (std::string _name, const Nice::Point &_limit) |
| Start moving a motor to a combined limit in both coordinates. If the motor is not enabled, it will not be moved. More...
|
|
virtual void | moveToLimitWait () |
|
virtual void | moveToHomeSingleStart (std::string _name, const int _motor) |
| Start moving a motor to its home position. If the motor is not enabled, it will not be moved. More...
|
|
virtual void | moveToHomeSingleWait () |
|
virtual void | moveToHomeStart (std::string _name) |
| Start moving a motor to its home position. If the motor is not enabled, it will not be moved. More...
|
|
virtual void | moveToHomeWait () |
|
virtual void | moveToHome () |
|
virtual void | setTargets (const Nice::MapStringPoint &) |
|
virtual void | setEnabledDevice (std::string _device, bool _enable, const Nice::Point &_position) |
|
virtual void | setEnabledDevices (const Nice::MapStringPoint &_positions, Nice::DynamicBitset _enable) |
|
| StarEnlargerServiceWorkerSkeleton (const Nice::JointPtr &_config) |
|
virtual | ~StarEnlargerServiceWorkerSkeleton () |
|
| StarEnlargerServiceWorkerSkeleton (const Nice::JointPtr &_config) |
|
virtual | ~StarEnlargerServiceWorkerSkeleton () |
|
const Nice::PropertyPtr & | cmd () |
|
void | setCompletion (const Nice::Completion &_c) |
|
void | cmdStart (const std::string &_action="") |
|
void | cmdDone () |
|
void | cmdWarning (const std::string &_l) |
|
void | cmdWarning (const Nice::LoggerObject &_o) |
|
void | cmdError (const std::string &_l) |
|
void | cmdError (const Nice::LoggerObject &_o) |
|
void | cmdError (const Nice::SeqLoggerObject &_oo) |
|
void | cmdPercent (Nice::Int _v) |
|
void | cmdAction (Nice::Int _v, const std::string &_s) |
|
virtual void | cmd (const Nice::Completion &_c) |
|
template<typename DataType > |
Nice::Completion | exec (const Nice::Completion &_c, DataType &_localdata, const DataType &_indata=DataType()) |
| if currently online, push the state into WORKING More...
|
|
template<typename DataType > |
void | execCommand (DataType _cmd) |
|
const Nice::PropertyPtr & | cmd () |
|
void | setCompletion (const Nice::Completion &_c) |
|
void | cmdStart (const std::string &_action="") |
|
void | cmdDone () |
|
void | cmdWarning (const std::string &_l) |
|
void | cmdWarning (const Nice::LoggerObject &_o) |
|
void | cmdError (const std::string &_l) |
|
void | cmdError (const Nice::LoggerObject &_o) |
|
void | cmdError (const Nice::SeqLoggerObject &_oo) |
|
void | cmdPercent (Nice::Int _v) |
|
void | cmdAction (Nice::Int _v, const std::string &_s) |
|
virtual void | cmd (const Nice::Completion &_c) |
|
template<typename DataType > |
Nice::Completion | exec (const Nice::Completion &_c, DataType &_localdata, const DataType &_indata=DataType()) |
|
template<typename DataType > |
void | execCommand (DataType _cmd) |
|
const Nice::JointPtr & | config () |
|
Nice::JointPtr | cfg () |
|
Nice::JointPtr | var () |
|
virtual const std::string & | name () |
|
virtual WorkerThreadPtr | worker () |
|
virtual Nice::Monitor & | monitor () |
|
virtual void | lock () |
|
virtual void | unlock () |
|
bool | stateIsSettled () |
|
bool | stateHasChanged () |
|
void | changeState (Basda::ServiceState _state) |
| change state to a new state If the state is the current state, or a negative state, do nothing. Otherwise change the "next" state in the state machine and notify all threads. More...
|
|
bool | tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0)) |
| change state to a new state More...
|
|
void | waitForState (Basda::ServiceState _state) |
| wait (indefinitely) until the worker has reached a spcifici state More...
|
|
bool | timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout) |
| wait (indefinitely) until the worker has reached a specific state More...
|
|
bool | changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to) |
| wait (indefinitely) until the worker has reached a spcifici state More...
|
|
Basda::ServiceState | state () |
|
Basda::ServiceState | stateNow () |
|
Basda::ServiceState | stateNext () |
|
Basda::ServiceState | stateLast () |
|
bool | isTransit () |
|
bool | isTerminated () |
|
const Nice::JointPtr & | config () |
|
Nice::JointPtr | cfg () |
|
Nice::JointPtr | var () |
|
virtual const std::string & | name () |
|
virtual WorkerThreadPtr | worker () |
|
virtual Nice::Monitor & | monitor () |
|
virtual void | lock () |
|
virtual void | unlock () |
|
bool | stateIsSettled () |
|
bool | stateHasChanged () |
|
void | changeState (Basda::ServiceState _state) |
|
bool | tryChangeState (Basda::ServiceState _state, const Nice::Time &_timeout=Nice::Time::seconds(0.0)) |
|
void | waitForState (Basda::ServiceState _state) |
|
bool | timedWaitForState (Basda::ServiceState _state, const Nice::Time &_timeout) |
|
bool | changeStateOnlyFromTo (Basda::ServiceState _from, Basda::ServiceState _to) |
|
Basda::ServiceState | state () |
|
Basda::ServiceState | stateNow () |
|
Basda::ServiceState | stateNext () |
|
Basda::ServiceState | stateLast () |
|
bool | isTransit () |
|
bool | isTerminated () |
|
|
virtual void | status () |
|
void | predict () |
| predict the time to reach the target positions and detect collisions. More...
|
|
const char * | isReachableNode () |
|
const char * | convertPositionNode () |
|
void | convertPositionInit (const Nice::MapStringPoint &_position, bool _from_absolute, std::string _from_unit, std::string _from_coordinate_system, bool _to_absolute, std::string _to_unit, std::string _to_coordinate_system) |
|
const char * | getPositionNode () |
|
void | getPositionInit (std::string _unit, std::string _coordinate_system, bool _dev_enc) |
|
const char * | setTargetsNode () |
|
void | setTargetsInit (const Nice::MapStringPoint &_position) |
|
const char * | resetCollisionNode () |
|
const char * | isCurrentlyEnabledNode () |
|
void | isCurrentlyEnabledInit (std::string _device) |
|
const char * | getTravelrangeNode () |
|
const char * | getTransformationNode () |
|
void | getTransformationInit (std::string _unit, std::string _coordinate_system) |
|
const char * | moveToNode () |
|
void | moveToInit (const Nice::MapStringPoint &_positions, std::string _unit, std::string _coordinate_system) |
|
const char * | retreatToBaseNode () |
|
void | retreatToBaseInit (const Nice::MapStringPoint &_positions) |
|
const char * | moveByNode () |
|
void | moveByInit (const Nice::MapStringPoint &_distance, std::string _unit, std::string _coordinate_system) |
|
const char * | moveToHomeNode () |
|
const char * | validateMoveToNode () |
|
void | validateMoveToInit (const Nice::MapStringPoint &_positions, std::string _unit, std::string _coordinate_system) |
|
const char * | validateMoveByNode () |
|
void | validateMoveByInit (const Nice::MapStringPoint &_distance, std::string _unit, std::string _coordinate_system) |
|
const char * | setEnabledDeviceNode () |
|
void | setEnabledDeviceInit (std::string _device, bool _enable, const Nice::Point &_position) |
|
const char * | setEnabledDevicesNode () |
|
void | setEnabledDevicesInit (const Nice::MapStringPoint &_positions, Nice::DynamicBitset _enable) |
|
virtual void | work () |
|
const char * | isReachableNode () |
|
const char * | convertPositionNode () |
|
void | convertPositionInit (const Nice::MapStringPoint &_position, bool _from_absolute, std::string _from_unit, std::string _from_coordinate_system, bool _to_absolute, std::string _to_unit, std::string _to_coordinate_system) |
|
const char * | getPositionNode () |
|
void | getPositionInit (std::string _unit, std::string _coordinate_system, bool _dev_enc) |
|
const char * | setTargetsNode () |
|
void | setTargetsInit (const Nice::MapStringPoint &_position) |
|
const char * | resetCollisionNode () |
|
const char * | isCurrentlyEnabledNode () |
|
void | isCurrentlyEnabledInit (std::string _device) |
|
const char * | getTravelrangeNode () |
|
const char * | getTransformationNode () |
|
void | getTransformationInit (std::string _unit, std::string _coordinate_system) |
|
const char * | moveToNode () |
|
void | moveToInit (const Nice::MapStringPoint &_positions, std::string _unit, std::string _coordinate_system) |
|
const char * | retreatToBaseNode () |
|
void | retreatToBaseInit (const Nice::MapStringPoint &_positions) |
|
const char * | moveByNode () |
|
void | moveByInit (const Nice::MapStringPoint &_distance, std::string _unit, std::string _coordinate_system) |
|
const char * | moveToHomeNode () |
|
const char * | validateMoveToNode () |
|
void | validateMoveToInit (const Nice::MapStringPoint &_positions, std::string _unit, std::string _coordinate_system) |
|
const char * | validateMoveByNode () |
|
void | validateMoveByInit (const Nice::MapStringPoint &_distance, std::string _unit, std::string _coordinate_system) |
|
const char * | setEnabledDeviceNode () |
|
void | setEnabledDeviceInit (std::string _device, bool _enable, const Nice::Point &_position) |
|
const char * | setEnabledDevicesNode () |
|
void | setEnabledDevicesInit (const Nice::MapStringPoint &_positions, Nice::DynamicBitset _enable) |
|
virtual void | work () |
|
| ServiceWorkerSkeleton (const Nice::JointPtr &_config) |
|
| ServiceWorkerSkeleton (const Nice::JointPtr &_config) |
|
| ServiceWorker (const Nice::JointPtr &_jointPtr) |
| ctor More...
|
|
virtual | ~ServiceWorker () |
| dtor Does nothing (in this base class) More...
|
|
void | triggerState (const Basda::ServiceStateMachine &_state) |
| change state to a new state More...
|
|
void | sendStateStatus (const std::string &_action, int _percent) |
|
void | setState (Basda::ServiceState _next) |
|
virtual void | waitForNewState () |
|
virtual bool | timedWaitForNewState (const Nice::Time &_timeout) |
|
virtual void | preinit () |
|
virtual void | packin () |
| schedule ONLINE as the next target state. More...
|
|
virtual void | idleStandby () |
| wait for a state change. More...
|
|
| ServiceWorker (const Nice::JointPtr &_jointPtr) |
|
virtual | ~ServiceWorker () |
|
void | triggerState (const Basda::ServiceStateMachine &_state) |
|
void | sendStateStatus (const std::string &_action, int _percent) |
|
void | setState (Basda::ServiceState _next) |
|
virtual void | waitForNewState () |
|
virtual bool | timedWaitForNewState (const Nice::Time &_timeout) |
|
virtual void | preinit () |
|
virtual void | packin () |
|
virtual void | idleStandby () |
|