User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospubanalogsignal

This is an old revision of the document!


ROS2 Publisher Analog Signal

This block samples the signal at its input and packs it into a ROS2 message of type eeros_msgs::msg::AnalogSignal. Each time the block is run by its time domain, this message is published under a given topic name.

  RosPublisherAnalogSignal<> pubAS(node, "myTopic"); // create publisher block

This block will publish a single signal together with its time stamp. Alternatively, you could publish a vector by instantiating a block with

  RosPublisherAnalogSignal<Vector3> pubAS(node, "myTopic"); // create publisher block
eeros_architecture/control_system/available_blocks/rospubanalogsignal.1742288303.txt.gz · Last modified: 2025/03/18 09:58 by ursgraf