eeros_architecture:control_system:available_blocks:rospubsafetylevel
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
eeros_architecture:control_system:available_blocks:rospubsafetylevel [2019/01/17 11:28] – created graf | eeros_architecture:control_system:available_blocks:rospubsafetylevel [2023/02/09 12:02] (current) – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ROS Publisher Safety Level ====== | ====== ROS Publisher Safety Level ====== | ||
- | This block outputssamples | + | This block reads the safety level id and packs it into a ROS message of type '' |
- | <code cpp> | + | <code cpp> |
- | // create publisher block, laserscanner range has a size of 150 values | + | |
- | | + | </code> |
+ | For ROS2 you have to pass the node, from where the topic is sent. The ROS2 message is of type std_msgs:: | ||
+ | <code cpp> | ||
+ | RosPublisherSafetyLevel pubSL(node, " | ||
</ | </ | ||
- | The template parameter of the block determines | + | This block must have a reference to the safety system in order to read the actual safety level. Please set the reference by calling: \\ |
+ | <code cpp> | ||
+ | controlSystem.pubSL.setSafetySystem(safetySystem); | ||
+ | </ |
eeros_architecture/control_system/available_blocks/rospubsafetylevel.1547720909.txt.gz · Last modified: 2019/01/17 11:28 by graf