How can I use the data from the LaserScan.msg inside the callback function?
So I have this call back function where I want to do something with the range_max value.
void LaserCallback(const sensor_msgs::LaserScan::ConstPtr& scan){
float x = range_max;
//and then use that for anything or do I have to do anything else before that line?
}
someone at this ( https://answers.ros.org/question/6023... )answer suggested something called AutoExp::processLaserScan, but how do I know which heades to include?
Thank you.