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
This block can be connected to any signal whose value has type double
.
The time stamp of the signal is not transmitted.