ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

(assuming reading the intensity the way you do is correct...) If this is the only file you touched, this obviously does not work. You only return the intensities, but you also have to write it into the sensor_msgs/LaserScan message that is published.

Add it in the respective driver node here. The line should then read:

scan.ranges, scan.intensities = self.robot.getScanRanges()

You can obviously send a PR, they will probably have some feedback or change requests. But just go ahead (if there are contribution guidelines in the repo, make sure to follow them)

P.S. Next time, please add a link to the repo you are modifying. I first only found one ROS driver written in C++.