Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/RobotStatus message.
More...
#include <robot_status.h>
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/RobotStatus message.
The byte representation of a robot status is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:
member: type size drives_powered (industrial::shared_types::shared_int) 4 bytes e_stopped (industrial::shared_types::shared_int) 4 bytes error_code (industrial::shared_types::shared_int) 4 bytes in_error (industrial::shared_types::shared_int) 4 bytes in_motion (industrial::shared_types::shared_int) 4 bytes mode (industrial::shared_types::shared_int) 4 bytes motion_possible (industrial::shared_types::shared_int) 4 bytes
THIS CLASS IS NOT THREAD-SAFE
Definition at line 116 of file robot_status.h.
| industrial::robot_status::RobotStatus::RobotStatus |
( |
void |
| ) |
|
Default constructor.
This method creates empty data.
Definition at line 112 of file robot_status.cpp.
| industrial::robot_status::RobotStatus::~RobotStatus |
( |
void |
| ) |
|
| unsigned int industrial::robot_status::RobotStatus::byteLength |
( |
| ) |
|
|
inlinevirtual |
| void industrial::robot_status::RobotStatus::copyFrom |
( |
RobotStatus & |
src | ) |
|
| TriState industrial::robot_status::RobotStatus::getDrivesPowered |
( |
| ) |
|
|
inline |
| TriState industrial::robot_status::RobotStatus::getEStopped |
( |
| ) |
|
|
inline |
| TriState industrial::robot_status::RobotStatus::getInError |
( |
| ) |
|
|
inline |
| TriState industrial::robot_status::RobotStatus::getInMotion |
( |
| ) |
|
|
inline |
| RobotMode industrial::robot_status::RobotStatus::getMode |
( |
| ) |
|
|
inline |
| TriState industrial::robot_status::RobotStatus::getMotionPossible |
( |
| ) |
|
|
inline |
| void industrial::robot_status::RobotStatus::init |
( |
| ) |
|
Virtual method for loading an object into a ByteArray.
This method should load all the required data to reconstruct the class object into the buffer
- Parameters
-
| buffer | pointer to ByteArray |
- Returns
- true on success, false otherwise (buffer not large enough)
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 157 of file robot_status.cpp.
| bool industrial::robot_status::RobotStatus::operator== |
( |
RobotStatus & |
rhs | ) |
|
== operator implementation
- Returns
- true if equal
Definition at line 150 of file robot_status.cpp.
| void industrial::robot_status::RobotStatus::setDrivesPowered |
( |
TriState |
drivesPowered | ) |
|
|
inline |
| void industrial::robot_status::RobotStatus::setEStopped |
( |
TriState |
eStopped | ) |
|
|
inline |
| void industrial::robot_status::RobotStatus::setInError |
( |
TriState |
inError | ) |
|
|
inline |
| void industrial::robot_status::RobotStatus::setInMotion |
( |
TriState |
inMotion | ) |
|
|
inline |
| void industrial::robot_status::RobotStatus::setMode |
( |
RobotMode |
mode | ) |
|
|
inline |
| void industrial::robot_status::RobotStatus::setMotionPossible |
( |
TriState |
motionPossible | ) |
|
|
inline |
Virtual method for unloading an object from a ByteArray.
This method should unload all the required data to reconstruct the class object (in place)
- Parameters
-
| buffer | pointer to ByteArray |
- Returns
- true on success, false otherwise (buffer not large enough)
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 180 of file robot_status.cpp.
The documentation for this class was generated from the following files: