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

Revision history [back]

I am no 100% sure this could be the source of your problem, but on the broadcaster, after you call

r.sleep()

You should call too

ros::spinOnce();

So ROS can do its magic.

I am no 100% sure this could be the source of your problem, but on the broadcaster, after you call

r.sleep()

You should call too

ros::spinOnce();

So ROS can do its magic.

Anyway, if what you want is to translate a laser scan into a point cloud, don't re-invent the wheel, just take a look at laser_geometry package.