User Tools

Site Tools


eeros_architecture:control_system:available_blocks:ros2pubdigitalsignal

ROS2 Publisher Digital Signal

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

  RosPublisherDigitalSignal<> pubDS(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

  RosPublisherDigitalSignal<Matrix<3,1,bool>> pubDS(node, "myTopic"); // create publisher block
eeros_architecture/control_system/available_blocks/ros2pubdigitalsignal.txt · Last modified: 2025/03/18 10:16 by ursgraf