32 inline int signum(
const double& value)
34 return (value > 0) - (0 > value);
81 return boost::make_shared<JointState>(
next_msg_);
142 static double sign = 1.0;
void startPublishingAsync(const double &joint1_start_position=0.0)
static constexpr unsigned int JOINT_STATES_RATE
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).
static constexpr unsigned int JOINT_STATES_QUEUE_SIZE
std::atomic_bool go_home_flag_
JointStatePublisherMock()
static constexpr double JOINT1_ABSOLUTE_POSITION_LIMIT
ros::Time next_time_stamp_
void publish(const boost::shared_ptr< M > &message) const
void setJoint1Velocity(const double &vel)
std::thread publisher_thread_
std::mutex next_msg_mutex_
~JointStatePublisherMock()
static const std::string JOINT_STATES_TOPIC_NAME
sensor_msgs::JointState JointState
int signum(const double &value)
void updateJoint1Position()
static const std::string JOINT_NAMES_PARAMETER