ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
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.
2 | No.2 Revision |
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.