User Tools

Site Tools


ROS Publisher Safety Level

This block reads the safety level id and packs it into a ROS message of type std_msgs::UInt32. Each time the block is run by its time domain, this message is published under a given topic name.

  RosPublisherSafetyLevel pubSL("myTopic"); // create publisher block

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

  RosPublisherSafetyLevel pubSL(node, "myTopic"); // create publisher block

This block must have a reference to the safety system in order to read the actual safety level. Please set the reference by calling:

eeros_architecture/control_system/available_blocks/rospubsafetylevel.txt · Last modified: 2023/02/09 12:02 by ursgraf