(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Teleop PR2 Mobile Base In Simulation

Description: Controlling PR2 base with keyboard and driving PR2 around in simulation.

Tutorial Level: INTERMEDIATE

Next Tutorial: Moving the PR2 Arm in Simulation

Driving PR2 in simulation

  1. Launch empty word:
    rosmake pr2_gazebo
    roslaunch gazebo_worlds empty_world.launch
  2. Launch PR2 in simulation in an empty world. This also brings up the base controllers:
    roslaunch pr2_gazebo pr2.launch
  3. Now you can drive the base around using the pr2_teleop package:

    roslaunch pr2_teleop teleop_keyboard.launch

    Make sure the keyboard focus is on the terminal where you have launched pr2_teleop_keyboard.launch when you press the control keys (e.g. w,s,d,a, etc).

  4. You can verify that the teleop command are being sent using rostopic:

    rostopic echo base_controller/command
  5. For PR2 visualization interface,
    rosrun rviz rviz

    For more information, see rviz.

Wiki: pr2_simulator/Tutorials/TeleopBaseControllerPR2InSimulation (last edited 2012-10-21 16:22:29 by AbhishekPatil)