Go to the documentation of this file.
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;
~JointStatePublisherMock()
int signum(const double &value)
ros::Time next_time_stamp_
std::atomic_bool stop_flag_
std::atomic_bool go_home_flag_
static const std::string JOINT_STATES_TOPIC_NAME
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(AdvertiseOptions &ops)
void updateJoint1Position()
static constexpr double JOINT1_ABSOLUTE_POSITION_LIMIT
JointStateConstPtr getNextMessage()
Return the message which will be published next.
static constexpr unsigned int JOINT_STATES_QUEUE_SIZE
sensor_msgs::JointState JointState
std::vector< std::string > joint_names_
std::mutex next_msg_mutex_
const std::string & getNamespace() const
static const std::string JOINT_NAMES_PARAMETER
JointStatePublisherMock()
void setJoint1Velocity(const double &vel)
static constexpr unsigned int JOINT_STATES_RATE
std::thread publisher_thread_
void goHome()
Go back to home position (position=velocity=0.0).
void startPublishingAsync(const double &joint1_start_position=0.0)