User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospubdouble

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:control_system:available_blocks:rospubdouble [2017/11/05 20:17] grafeeros_architecture:control_system:available_blocks:rospubdouble [2023/02/09 11:58] (current) ursgraf
Line 2: Line 2:
 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. 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.
 <code cpp> <code cpp>
-  RosPublisherDouble pubDouble("myNode/myTopic"); // create publisher block+  RosPublisherDouble pubDouble("myTopic"); // create publisher block 
 +</code> 
 +For ROS2 you have to pass the node, from where the topic is sent. The ROS2 message is of type ''std_msgs::msg::Float64''
 +<code cpp> 
 +  RosPublisherDouble pubDouble(node, "myTopic"); // create publisher block
 </code> </code>
- 
 This block can be connected to any signal whose value has type ''double''. \\ This block can be connected to any signal whose value has type ''double''. \\
 IMPORTANT The time stamp of the signal is not transmitted. IMPORTANT The time stamp of the signal is not transmitted.
eeros_architecture/control_system/available_blocks/rospubdouble.1509909456.txt.gz · Last modified: 2017/11/05 20:17 by graf