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

In the laserscan message definition it says the following:

                     # in frame frame_id, angles are measured around 
                     # the positive Z axis (counterclockwise, if Z is up)
                     # with zero angle being forward along the x axis

So if you want to stay conform, you'd have to change your code to use the x-y-plane. If your scanner is turned mounted, adjust its tf frame to reflect that position.

In the laserscan message definition it says the following:

                     # in frame frame_id, angles are measured around 
                     # the positive Z axis (counterclockwise, if Z is up)
                     # with zero angle being forward along the x axis

So if you want to stay conform, you'd have to change your code to use the x-y-plane. If your scanner is turned mounted, adjust its tf frame to reflect that position.


Updated..

First, your bag file only contains only the laserscan, so I couldn't reproduce everything. rosbag info CloudAndScan.bag shows some stats.

The pointcloud indeed is expected to be in a camera frame. See parameters docs and part 2) on this answer. I think you only have to adjust your frame information.

If it won't work, I'd ask you to update your question with your pointcloud_to_laserscan parameters and upload a bag with scan, cloud and tf.