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

How to localize pr2 on gazebo?

asked 2012-07-04 02:14:04 -0600

sam gravatar image

updated 2012-07-04 02:54:56 -0600

I followed Faking Sensor Info in Simulation.

I run

  roslaunch pr2_gazebo pr2_empty_world.launch
  roslaunch pr2_teleop teleop_keyboard.launch
  rosrun fake_localization fake_localization
  rostopic echo amcl_pose

It doesn't show any result.

How to solve it?

Thank you~

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2012-07-04 02:32:41 -0600

Lorenz gravatar image

updated 2012-07-04 02:33:22 -0600

The odometry frame for the PR2 is not odom but odom_combined. You need to set the corresponding parameter for fake_localization. For instance, the following launch file should work:

<launch>
  <node name="fake_localizaton" type="fake_localization" pkg="fake_localization">
    <rosparam>
      odom_frame_id: odom_combined
      base_frame_id: base_footprint
    </rosparam>
  </node>
</launch>
edit flag offensive delete link more
0

answered 2012-07-04 02:19:45 -0600

michikarg gravatar image

Did you check if the correct frames are posted on the /tf topic? Fake_localization should provide the "/map->/odom" frame...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-07-04 02:14:04 -0600

Seen: 762 times

Last updated: Jul 04 '12