This block receives a ROS message of type sensor_msgs::LaserScan
. Each time the block is run by its time domain, the last message received is driven on its output signals.
// create subscriber block, laserscanner range has a size of 150 values RosSubscriberLaserScan<Matrix<150, 1, double>, Matrix<150, 1, double >> laserScan("myNode/myTopic", 100, false);
The template parameter of the block determines the size of the range and intensity vectors.