Running both the base and tilt lasers on the PR2 drains a lot of CPU because of the ray tracing that is done using ODE.
The gazebo_ros_laser plugin should be extended to allow some parameters of the laser to be reconfigured:
- rayCount
- rangeCount
- minAngle
- maxAngle
- minRange
- maxRange
- updateRate
- gaussianNoise
- frameName
- topicName
The rayCount and rangeCount numbers should have a sanity check, so if rayCount > rangeCount, it only generates the minimum number of needed rays.
trac data: