O'Reilly logo

Robot Operating System Cookbook by Kumar Bipin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2D pose estimate

The 2D pose estimate allows the user to initialize the localization system of the navigation stack by setting the pose of the robot in the world. The navigation stack waits on the topic with the name /initialpose for the first pose, which can be sent by using RViz windows with the click of a mouse. If this wasn't done at the beginning, the robot will start the auto-localization process and try to set an initial pose.

We can look upon the following screenshot for setting the initial pose. Here we will click on the 2D Pose Estimate button, and click on the map to point to the initial position of our robot:

  • Topic: initialpose
  • Type: geometry_msgs/PoseWithCovarianceStamped
2D pose estimate

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required