User Tools

Site Tools


eeros_architecture:control_system:available_blocks:ros2subanalogsignal

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 content of the last message is written to the signal output of the block.

  RosSubscriberAnalogSignal<> sub(node, "myNode/myTopic"); // create subscriber 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

  RosSubscriberAnalogSignal<Vector3> sub(node, "myTopic"); // create subscriber block
eeros_architecture/control_system/available_blocks/ros2subanalogsignal.txt · Last modified: 2025/03/18 13:58 by ursgraf