ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You are broadcasting those code-sniplets (for testing!), right?
You have to build a tree, or in this case a line as: map -> odom -> base_link -> base_laser
If you look at the code sniplets you have posted, you can see, that you interchanged parent and child a bid.
You also have to continuously publish all transforms and later on obviously with real data. If that doesn't help follow the comment by Eric Perko.