35 #include "subscriber.h"
37 #include "sensor_msgs/JointState.h"
68 int32_t position_360_degree, std::string topic_name =
"");
75 static const bool debug =
false;
78 static const unsigned queue_size = 100;
81 void receive(
const sensor_msgs::JointState& msg);
84 int32_t rad_to_pos(
double pos)
const;
87 static constexpr
double pi() {
return std::acos(-1); }
90 int32_t m_position_0_degree;
91 int32_t m_position_360_degree;
92 std::string m_topic_name;
95 ros::Subscriber m_subscriber;
This class provides a Subscriber implementation for use with kaco::Bridge and a CiA 402 motor device...
void advertise() override
This class represents a CanOpen slave device in the network.
Interface, which provides methods for subscribing topics.
JointStateSubscriber(Device &device, int32_t position_0_degree, int32_t position_360_degree, std::string topic_name="")
Constructor.