User Tools

Site Tools


eeros_architecture:control_system:available_blocks:ros2subanalogsignal

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
eeros_architecture:control_system:available_blocks:ros2subanalogsignal [2025/03/18 13:56] ursgrafeeros_architecture:control_system:available_blocks:ros2subanalogsignal [2025/03/18 13:58] (current) ursgraf
Line 3: Line 3:
  
 <code cpp> <code cpp>
-  RosSubscriberAnalogSignal sub(node, "myNode/myTopic"); // create subscriber block+  RosSubscriberAnalogSignal<> sub(node, "myNode/myTopic"); // create subscriber block
 </code> </code>
  
 IMPORTANT The time stamp of the signal is set to the time stamp of the message. IMPORTANT The time stamp of the signal is set to the time stamp of the message.
 +
 +Alternatively, you could receive a vector by instantiating a block with
 +<code cpp>
 +  RosSubscriberAnalogSignal<Vector3> sub(node, "myTopic"); // create subscriber block
 +</code>
eeros_architecture/control_system/available_blocks/ros2subanalogsignal.txt · Last modified: 2025/03/18 13:58 by ursgraf