Asynchronously publishes predefined messages on the /joint_states topic with rate ~100Hz.
More...
#include <joint_states_publisher_mock.h>
|
void | start (bool positions_fixed) |
|
Asynchronously publishes predefined messages on the /joint_states topic with rate ~100Hz.
Definition at line 34 of file joint_states_publisher_mock.h.
prbt_hardware_support::JointStatesPublisherMock::JointStatesPublisherMock |
( |
| ) |
|
prbt_hardware_support::JointStatesPublisherMock::~JointStatesPublisherMock |
( |
| ) |
|
sensor_msgs::JointStateConstPtr prbt_hardware_support::JointStatesPublisherMock::getNextMessage |
( |
| ) |
|
void prbt_hardware_support::JointStatesPublisherMock::start |
( |
bool |
positions_fixed | ) |
|
|
private |
void prbt_hardware_support::JointStatesPublisherMock::startAsync |
( |
bool |
move = false | ) |
|
Start a new thread publishing joint states.
- Parameters
-
move | If true, a movement is simulated, otherwise the positions do not change. |
Definition at line 45 of file joint_states_publisher_mock.cpp.
void prbt_hardware_support::JointStatesPublisherMock::terminate |
( |
| ) |
|
ros::Publisher prbt_hardware_support::JointStatesPublisherMock::joint_states_pub_ |
|
private |
sensor_msgs::JointState prbt_hardware_support::JointStatesPublisherMock::msg_ |
|
private |
std::mutex prbt_hardware_support::JointStatesPublisherMock::msg_mutex_ |
|
private |
std::atomic_bool prbt_hardware_support::JointStatesPublisherMock::terminate_ |
|
private |
std::thread prbt_hardware_support::JointStatesPublisherMock::thread_ |
|
private |
The documentation for this class was generated from the following files: