Go to the documentation of this file.
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)
industrial::shared_types::shared_int e_stopped_
E-stop state (see TriStates::TriState)
industrial::shared_types::shared_int mode_
Operating mode (see RobotModes::RobotMode)
industrial::shared_types::shared_int error_code_
error code (non-zero is error)
void copyFrom(RobotStatus &src)
Copies the passed in value.
unsigned int byteLength()
Virtual method returns the object size when packed into a ByteArray.
bool unload(industrial::byte_array::ByteArray *buffer)
Virtual method for unloading an object from a ByteArray.
bool load(industrial::byte_array::ByteArray *buffer)
Virtual method for loading an object into a ByteArray.
industrial::shared_types::shared_int getErrorCode() const
~RobotStatus(void)
Destructor.
RobotModes::RobotMode RobotMode
industrial::shared_types::shared_int in_motion_
in motion state (see TriStates::TriState)
void setDrivesPowered(TriState drivesPowered)
void setEStopped(TriState eStopped)
void setMotionPossible(TriState motionPossible)
industrial::shared_types::shared_int motion_possible_
motion possible state (see TriStates::TriState)
void setMode(RobotMode mode)
The byte array wraps a dynamic array of bytes (i.e. char).
industrial::shared_types::shared_int drives_powered_
Drive power state (see TriStates::TriState)
void setInError(TriState inError)
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/Ro...
bool operator==(RobotStatus &rhs)
== operator implementation
TriState getMotionPossible()
Interface for loading and unloading a class to/from a ByteArray.
void setErrorCode(industrial::shared_types::shared_int errorCode)
void setInMotion(TriState inMotion)
TriState getDrivesPowered()
TriStates::TriState TriState
void init()
Initializes an empty robot status.
RobotStatus(void)
Default constructor.
industrial::shared_types::shared_int in_error_
in error state (see TriStates::TriState)
simple_message
Author(s): Shaun Edwards
autogenerated on Wed Mar 2 2022 00:24:53