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

Revision history [back]

click to hide/show revision 1
initial version

I managed to sort out the error.

Thanks to Paul's input, I found that ALL the points from the input cloud were being rejected, for various reasons. The common cause for each of them being rejected was that there is a difference between camera frames as provided by most ROS camera drivers (uvc_driver in my case), and how a laserscan frame is defined.

Camera frames have their z axis perpendicular to the image plane, x towards right, and y downwards along the image plane. Laser scan frames require x axis being along the forward direction (equivalent to z of camera frames), z upwards and y to the left.

I set up a transformation node between the initial camera frame and a base_link frame, with quaternions configured for the above frame mapping, enabled the target frame in the pointcloud_to_laserscan launch file, and the problem was solved.