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

Revision history [back]

It appears that in the transformLaserScanToPointCloud function a lookupTransform is called at time:

scan_in.header.stamp + ros::Duration ().fromSec (scan_in.ranges.size () * scan_in.time_increment)

My quick-fix solution was to call waitForTransform and include that added time before calling transformLaserScanToPointCloud.

It appears that in the transformLaserScanToPointCloud function a lookupTransform is called at time:

scan_in.header.stamp + ros::Duration ().fromSec (scan_in.ranges.size () * scan_in.time_increment)

My quick-fix solution was to call waitForTransform and include that added time before calling transformLaserScanToPointCloud.

Source: https://github.com/ros-perception/laser_geometry/blob/hydro-devel/src/laser_geometry.cpp