eeros_architecture:control_system:available_blocks:rospublaserscan
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
eeros_architecture:control_system:available_blocks:rospublaserscan [2017/11/01 22:50] – created graf | eeros_architecture:control_system:available_blocks:rospublaserscan [2023/02/09 12:01] (current) – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== ROS Publisher Laser Scan ====== | ====== ROS Publisher Laser Scan ====== | ||
This block samples the sensor signal of a laser scanner at its inputs and packs it into a ROS message of type '' | This block samples the sensor signal of a laser scanner at its inputs and packs it into a ROS message of type '' | ||
- | <code cpp> | + | <code cpp> |
- | | + | // create publisher block, lasers canner range has a size of 150 values |
- | | + | RosPublisherLaserScan< |
+ | </ | ||
+ | For ROS2 you have to pass the node, from where the topic is sent. The ROS2 message is of type std_msgs:: | ||
+ | <code cpp> | ||
+ | // create publisher block, lasers canner range has a size of 150 values | ||
+ | RosPublisherLaserScan< | ||
</ | </ | ||
- | The template parameter of the block determines the size of the range and intensity vectors. | + | The template parameter of the block determines the size of the range and intensity vectors. The time stamp of the signal is transmitted in the message header. |
eeros_architecture/control_system/available_blocks/rospublaserscan.1509573051.txt.gz · Last modified: 2017/11/01 22:50 (external edit)