35 #include "publisher.h"
66 int32_t position_360_degree,
const std::string& position_actual_field =
"Position actual value",
const std::string& topic_name =
"");
76 static const bool debug =
false;
79 static const unsigned queue_size = 100;
82 double pos_to_rad(int32_t pos)
const;
85 static constexpr
double pi() {
return std::acos(-1); }
88 int32_t m_position_0_degree;
89 int32_t m_position_360_degree;
90 std::string m_position_actual_field;
91 std::string m_topic_name;
94 ros::Publisher m_publisher;
JointStatePublisher(Device &device, int32_t position_0_degree, int32_t position_360_degree, const std::string &position_actual_field="Position actual value", const std::string &topic_name="")
Constructor.
Interface, which provides methods for publishing topics.
void advertise() override
This class provides a Publisher implementation for use with kaco::Bridge and a CiA 402 motor device...
This class represents a CanOpen slave device in the network.