User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospubanalogsignal

This is an old revision of the document!


ROS Publisher Analog Signal

This block samples the signal at its input and packs it into a ROS 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("myTopic"); // create publisher block

For ROS2 you have to pass the node, from where the topic is sent. The ROS2 message is of type eeros_msgs::msg::AnalogSignal.

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