Mock robot server to simulate a Staubli robot for testing purposes.
More...
#include <mock_robot_server.hpp>
Mock robot server to simulate a Staubli robot for testing purposes.
- Warning
- This class is a mock and does not implement all functionalities of the real Robot...
◆ MockRobotServer()
| staubli_robot_driver::MockRobotServer::MockRobotServer |
( |
| ) |
|
◆ ~MockRobotServer()
| staubli_robot_driver::MockRobotServer::~MockRobotServer |
( |
| ) |
|
◆ init()
Initialize the mock robot server with the given network configuration.
- Parameters
-
| config | Network configuration |
- Returns
- True if initialization was successful, false otherwise
◆ is_ready()
| bool staubli_robot_driver::MockRobotServer::is_ready |
( |
| ) |
const |
Check if mock robot server is initialized and ready.
- Returns
- True if ready, false otherwise
◆ disconnect()
| bool staubli_robot_driver::MockRobotServer::disconnect |
( |
| ) |
|
Disconnect the mock robot server.
- Returns
- True if disconnected successfully, false otherwise
◆ send_mock_robot_state()
Send a robot state message from the mock robot server.
- Parameters
-
| state | Mock robot state message to send |
- Returns
- true if the message was sent successfully, false otherwise
◆ send_mock_diagnostic_data()
Send a diagnostic data message from the mock robot server.
- Parameters
-
| data | Mock diagnostic data message to send |
- Returns
- true if the message was sent successfully, false otherwise
◆ get_last_received_command()
Receive a command message sent to the mock robot server.
- Parameters
-
| command | Output command message |
- Returns
- True if a message was received successfully, false otherwise
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/mock_robot_server.hpp