32 #ifndef ROBOT_STATUS_H 33 #define ROBOT_STATUS_H 47 namespace robot_status
64 #if defined(SIMPLE_MESSAGE_USE_ROS) || defined(ROS) 90 #if defined(SIMPLE_MESSAGE_USE_ROS) || defined(ROS) 145 TriState inMotion, RobotMode mode, TriState motionPossible);
184 this->drives_powered_ = drivesPowered;
189 this->e_stopped_ = eStopped;
194 this->error_code_ = errorCode;
199 this->in_error_ = inError;
204 this->in_motion_ = inMotion;
214 this->motion_possible_ = motionPossible;
void setInError(TriState inError)
TriState getMotionPossible()
industrial::shared_types::shared_int in_motion_
in motion state (see TriStates::TriState)
industrial::shared_types::shared_int motion_possible_
motion possible state (see TriStates::TriState)
void setMotionPossible(TriState motionPossible)
industrial::shared_types::shared_int in_error_
in error state (see TriStates::TriState)
void init(const M_string &remappings)
void setErrorCode(industrial::shared_types::shared_int errorCode)
industrial::shared_types::shared_int mode_
Operating mode (see RobotModes::RobotMode)
void setMode(RobotMode mode)
bool operator==(const in6_addr a, const in6_addr b)
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/Ro...
Interface for loading and unloading a class to/from a ByteArray.
void setInMotion(TriState inMotion)
The byte array wraps a dynamic array of bytes (i.e. char).
industrial::shared_types::shared_int e_stopped_
E-stop state (see TriStates::TriState)
TriState getDrivesPowered()
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
industrial::shared_types::shared_int getErrorCode() const
void setDrivesPowered(TriState drivesPowered)
void setEStopped(TriState eStopped)
TriStates::TriState TriState
industrial::shared_types::shared_int error_code_
error code (non-zero is error)
industrial::shared_types::shared_int drives_powered_
Drive power state (see TriStates::TriState)