eeros_architecture:control_system:available_blocks:ros2subdigitalsignal
ROS2 Subscriber Digital Signal
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.
RosSubscriberDigitalSignal<> sub(node, "myNode/myTopic"); // create subscriber block
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
RosSubscriberDigitalSignal<Vector3> sub(node, "myTopic"); // create subscriber block
eeros_architecture/control_system/available_blocks/ros2subdigitalsignal.txt · Last modified: 2025/03/18 13:59 by ursgraf