User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rossubdouble

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:rossubdouble [2017/11/05 20:20] grafeeros_architecture:control_system:available_blocks:rossubdouble [2023/02/27 16:50] (current) ursgraf
Line 2: Line 2:
 This block receives ROS messages of type ''std_msgs::Float64''. Each time the block is run by its time domain, the message content is written to the output of the block. This block receives ROS messages of type ''std_msgs::Float64''. Each time the block is run by its time domain, the message content is written to the output of the block.
 <code cpp> <code cpp>
-  RosSubscriberDouble pubDouble("myNode/myTopic"); // create subscriber block+  RosSubscriberDouble subDouble("myNode/myTopic"); // create subscriber block 
 +</code> 
 + 
 +For ROS2 you have to pass the node, from where the topic is received. The ROS2 message is of type ''std_msgs::msg::Float64''
 +<code cpp> 
 +  RosSubscriberDouble subDouble(node, "myNode/myTopic"); // create subscriber block
 </code> </code>
  
 IMPORTANT The message is transmitted without time stamp. The time stamp of the signal is set to the actual time when running the block. IMPORTANT The message is transmitted without time stamp. The time stamp of the signal is set to the actual time when running the block.
eeros_architecture/control_system/available_blocks/rossubdouble.1509909636.txt.gz · Last modified: 2017/11/05 20:20 by graf