User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospubdouble

This is an old revision of the document!


ROS Publisher Double

This block samples the signal at its input and packs it into a ROS message of type std_msgs::Float64. Each time the block is run by its time domain, this message is published under a given topic name.

  RosPublisherDouble pubDouble("myTopic"); // create publisher block

For ROS2 you have to pass the node, from where the topic is sent.

  RosPublisherDouble pubDouble(node, "myTopic"); // create publisher block

This block can be connected to any signal whose value has type double.
IMPORTANT The time stamp of the signal is not transmitted.

eeros_architecture/control_system/available_blocks/rospubdouble.1675940063.txt.gz · Last modified: 2023/02/09 11:54 by ursgraf