Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How does OnNewLaserScans works?

I am trying to implement my own solid state lidar plugin to simulate a Livox. And was using the velodyne simulator as reference, but they use this method void OnScan(const ConstLaserScanStampedPtr &_msg); as a callback from a topic subscription, instead of the void OnNewLaserScans() provided by the base class.

Is it possible to use this latter method to update my measurements? How does it work? Is there any tutorial showing how to use it?