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
Next revision
Previous revision
eeros_architecture:control_system:available_blocks:ros2subanalogsignal [2025/03/18 10:44] ursgrafeeros_architecture:control_system:available_blocks:ros2subanalogsignal [2025/03/18 13:58] (current) ursgraf
Line 1: Line 1:
-====== ROS2 Subscriber Double ====== +====== ROS2 Subscriber Analog Signal ====== 
-This block receives ROS messages of type ''eeros_msgs::msg::AnalogSignal''. 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 ''eeros_msgs::msg::AnalogSignal''. Each time the block is run by its time domain, the content of the last message is written to the signal output of the block.
  
 <code cpp> <code cpp>
-  RosSubscriberAnalogSigbalDouble subDouble(node, "myNode/myTopic"); // create subscriber block+  RosSubscriberAnalogSignal<> sub(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 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.1742291052.txt.gz · Last modified: 2025/03/18 10:44 by ursgraf