User Tools

Site Tools


eeros_architecture:control_system:available_blocks:rospublaserscan

This is an old revision of the document!


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 sensor_msgs::LaserScan. Each time the block is run by its time domain, this message is published under a given topic name.

// create publisher block, laserscanner range has a size of 150 values
RosPublisherLaserScan<Matrix<150, 1, double>, Matrix<150, 1, double >> laserScan("myNode/myTopic", "laser", 100);

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.1600350633.txt.gz · Last modified: 2020/09/17 15:50 by ursgraf