Robot command message.
More...
#include <messages.hpp>
◆ RobotCommandMessage()
| staubli_robot_driver::RobotCommandMessage::RobotCommandMessage |
( |
| ) |
|
◆ ~RobotCommandMessage()
| staubli_robot_driver::RobotCommandMessage::~RobotCommandMessage |
( |
| ) |
|
|
default |
◆ serialize() [1/3]
| bool staubli_robot_driver::RobotCommandMessage::serialize |
( |
uint8_t * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| const |
|
overridevirtual |
◆ deserialize() [1/3]
| bool staubli_robot_driver::RobotCommandMessage::deserialize |
( |
uint8_t * |
buffer, |
|
|
size_t |
buffer_size |
|
) |
| |
|
overridevirtual |
◆ message_size()
| static size_t staubli_robot_driver::RobotCommandMessage::message_size |
( |
| ) |
|
|
static |
Get the size of the message, static version.
◆ get_serialized_size()
| size_t staubli_robot_driver::RobotCommandMessage::get_serialized_size |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ serialize() [2/3]
◆ serialize() [3/3]
| bool staubli_robot_driver::Message::serialize |
( |
std::vector< uint8_t > & |
data | ) |
const |
Serialize message to vector.
- Warning
- This method modifies the input vector by resizing it to the size of the message.
- Parameters
-
| data | Output data buffer. Capacity must be at least message.get_serialized_size(). |
- Returns
- true if serialization was successful, false otherwise
◆ deserialize() [2/3]
◆ deserialize() [3/3]
| bool staubli_robot_driver::Message::deserialize |
( |
std::vector< uint8_t > & |
data | ) |
|
Deserialize message from vector.
- Warning
- The input vector must be at least the size of the message.
- Parameters
-
- Returns
- true if deserialization was successful, false otherwise
◆ command_type
◆ controller_period
| double staubli_robot_driver::RobotCommandMessage::controller_period = -1.0 |
◆ command_reference
| std::array<double, 6> staubli_robot_driver::RobotCommandMessage::command_reference |
Command reference for the robot.
This array contains the target values for the robot's joints. The interpretation of these values depends on the command type:
- JOINT_POSITION: Target joint positions in radians
- JOINT_VELOCITY: Target joint velocities in radians/s
- JOINT_TORQUE: Target joint torques in Nm
- STOP: Ignored, should be filled with zeros
◆ digital_outputs
| std::array<bool, 16> staubli_robot_driver::RobotCommandMessage::digital_outputs |
◆ analog_outputs
| std::array<double, 4> staubli_robot_driver::RobotCommandMessage::analog_outputs |
The documentation for this class was generated from the following file:
- /home/runner/work/staubli_driver_ros2/staubli_driver_ros2/staubli_robot_driver/include/staubli_robot_driver/communication/messages.hpp