18 #ifndef PILZ_TESTUTILS_JOINT_STATE_PUBLISHER_MOCK_H 19 #define PILZ_TESTUTILS_JOINT_STATE_PUBLISHER_MOCK_H 29 #include <sensor_msgs/JointState.h> void startPublishingAsync(const double &joint1_start_position=0.0)
std::vector< std::string > joint_names_
std::atomic_bool stop_flag_
JointStateConstPtr getNextMessage()
Return the message which will be published next.
void goHome()
Go back to home position (position=velocity=0.0).
std::atomic_bool go_home_flag_
sensor_msgs::JointStateConstPtr JointStateConstPtr
JointStatePublisherMock()
ros::Time next_time_stamp_
void setJoint1Velocity(const double &vel)
std::thread publisher_thread_
JointStatePublisherMock & operator=(const JointStatePublisherMock &other)=delete
std::mutex next_msg_mutex_
~JointStatePublisherMock()
Mocks the joint_states interface. Can simulate robot movement by changing the position of the first j...
sensor_msgs::JointState JointState
void updateJoint1Position()