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

Revision history [back]

Frames of the TF are not fixed. Some nodes have some defaults that can be (most of the times) changed with ROS parameters when launching the nodes. That said, Hokuyo node usually publishes laserscans in the laser frame. By default, there is also the world frame.

Therefore, all you are missing is a transformation between world and laser that you can set with a TransformBroadcaster publishing the transformation between these frames based on the motor positions.

Usually, there is a link in the middle called base_link which is the main link for a given robot. And usually, transformation between world and base_link is given by a localization node. Therefore, some people just publishes the transformation between base_link and laser.

By the way, I suggest for the next times to have a short, concise title and a more detailed question body, giving a bit more details about your problem. It is hard to know what you exactly want based on just this information.