User Tools

Site Tools


eeros_architecture:control_system:available_blocks:ros2subdigitalsignal

Differences

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

Link to this comparison view

Next revision
Previous revision
eeros_architecture:control_system:available_blocks:ros2subdigitalsignal [2025/03/18 13:50] – created ursgrafeeros_architecture:control_system:available_blocks:ros2subdigitalsignal [2025/03/18 13:59] (current) ursgraf
Line 1: Line 1:
-====== ROS2 Subscriber Double ====== +====== ROS2 Subscriber Digital 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::DigitalSignal''. 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+  RosSubscriberDigitalSignal<> 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> 
 +  RosSubscriberDigitalSignal<Vector3> sub(node, "myTopic"); // create subscriber block 
 +</code>
eeros_architecture/control_system/available_blocks/ros2subdigitalsignal.1742302229.txt.gz · Last modified: 2025/03/18 13:50 by ursgraf