Documentation Status

pr2_object_manipulation: active_realtime_segmentation | fast_plane_detection | manipulation_worlds | object_recognition_gui | object_segmentation_gui | pick_and_place_demo_app | pr2_create_object_model | pr2_grasp_adjust | pr2_gripper_grasp_controller | pr2_gripper_grasp_planner_cluster | pr2_gripper_reactive_approach | pr2_gripper_sensor_action | pr2_gripper_sensor_controller | pr2_gripper_sensor_msgs | pr2_handy_tools | pr2_interactive_gripper_pose_action | pr2_interactive_manipulation | pr2_interactive_object_detection | pr2_manipulation_controllers | pr2_marker_control | pr2_navigation_controllers | pr2_object_manipulation_launch | pr2_object_manipulation_msgs | pr2_pick_and_place_demos | pr2_tabletop_manipulation_launch | pr2_wrappers | rgbd_assembler | robot_self_filter_color | segmented_clutter_grasp_planner | simple_Jtranspose_controller | tabletop_collision_map_processing | tabletop_object_detector | tabletop_vfh_cluster_detector | vfh_recognition | vfh_recognizer_db | vfh_recognizer_fs

Package Summary

Documented

A PR2 application that uses Interactive Markers to provide a point-and-click inteface for controlling the PR2 in Rviz.

pr2_object_manipulation: active_realtime_segmentation | fast_plane_detection | manipulation_worlds | object_recognition_gui | object_segmentation_gui | pick_and_place_demo_app | pr2_create_object_model | pr2_grasp_adjust | pr2_gripper_grasp_controller | pr2_gripper_grasp_planner_cluster | pr2_gripper_reactive_approach | pr2_gripper_sensor_action | pr2_gripper_sensor_controller | pr2_gripper_sensor_msgs | pr2_handy_tools | pr2_interactive_gripper_pose_action | pr2_interactive_manipulation | pr2_interactive_object_detection | pr2_manipulation_controllers | pr2_marker_control | pr2_navigation_controllers | pr2_object_manipulation_launch | pr2_object_manipulation_msgs | pr2_pick_and_place_demos | pr2_pick_and_place_tutorial | pr2_tabletop_manipulation_launch | pr2_wrappers | rgbd_assembler | robot_self_filter_color | segmented_clutter_grasp_planner | tabletop_collision_map_processing | tabletop_object_detector | tf_throttle

Package Summary

Documented

A PR2 application that uses Interactive Markers to provide a point-and-click inteface for controlling the PR2 in Rviz.

Cannot load information on name: pr2_marker_control, distro: hydro, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.
Cannot load information on name: pr2_marker_control, distro: indigo, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.
Cannot load information on name: pr2_marker_control, distro: jade, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.
Cannot load information on name: pr2_marker_control, distro: kinetic, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.
Cannot load information on name: pr2_marker_control, distro: lunar, which means that it is not yet in our index. Please see this page for information on how to submit your repository to our index.

Overview

This package provides an end-user graphical interface for controlling the PR2. Specifically, it uses interactive_markers, in combination with Rviz, to allow a user to command the various parts of the robot.

alt text

Installation

See this page for information on getting the needed packages installed for using interactive markers.

Launching

To bring the robot up in simulation:

roslaunch gazebo_worlds empty_world.launch

roslaunch pr2_gazebo pr2.launch

export ROBOT=sim

roslaunch pr2_interactive_manipulation pr2_interactive_manipulation_robot.launch sim:=true

roslaunch pr2_interactive_manipulation_frontend pr2_interactive_manipulation_desktop.launch sim:=true

In Rviz, add a "Interactive Markers" topic, and subscribe to /pr2_markercontrol/update. Finally, select the "Interact" button in Rviz tool bar (upper-left).

Controls

Every interactive piece will glow when you hover over it with the mouse. Remember interactive markers are only shown when the "Interact" mode is selected on the Rviz toolbar (the default is usually "Move Camera").

Head Pointing

alt text

This control allows you to drag around a target for the PR2 head to point toward.

  • Enable or disable display of the target by right-clicking on the head of the PR2 and selecting "Target Point."
  • The target point can be moved precisely by dragging the arrows on the colored control handles. Te colored discs allow you to change the orientation of the arrows.
  • The white ball in the center is a "view-facing" marker and is always dragged in t he plane of the current Rviz camera view.

Texture Projector

alt text

This control serves as an indicator of the status of the red texture projector and allows you to turn it on and off.

  • To turn on the projector, right-click on the head of the PR2 and toggle the "Projector" menu entry. After up to 5 seconds, a red cylinder will appear in front of the PR2 head.
  • To turn the projector off use the same menu option from the PR2 head, or simply click the red cylinder.
  • Please Note: turning the projector on and off can take up to 5 seconds. Please avoid clicking on the projector control multiple times during this period.

Arm Control

Gripper Movement

alt text

This control allows you to move the grippers!

Gripper Palm:

  • Left-click on either gripper palm to enable/disable the control rings.
  • Right-click on a gripper palm to get a menu to open or close that gripper.

Control Markers:

  • Left-click and drag the rings and arrows to translate and re-orient the gripper.
  • Right-click on any of the control rings/arrows to bring up the following menu options:
    • Marker Mode: When this is enabled you can arbitrarily move the control markers themselves, which changes the reference frame for the gripper controller.
    • Edit Control Frame: When this is enabled you can arbitrarily move the control markers themselves, which changes the reference frame for the gripper controller.
    • Reset Control Frame: Re-centers the control markers to the current gripper location.

Posture Control

alt text

  • Right-click on the upper arm to get a menu to enable or disable posture control.
  • Left-click and drag on the red rings to change the approximate orientation of the elbows.

Torso Control

alt text

This control allows you to raise and lower the spine of the PR2, using a pair of red and green arrows located on the back of the PR2.

  • To raise or lower the spine, simply click and hold the up or down arrow. The spine will stop when you release the mouse.
  • To raise or lower the spine all the way without having to hold the mouse button, right-click on either of the controls and select "All the Way" from the menu.

Base Control

alt text

* Please use with extreme caution!! * There is NO collision avoidance provided with these controls.

This control allows you to move the base of the PR2.

  • The arrows are currently placeholders and are not yet connected to the actual base controller... :D

Development Status

Completed Items:

  • Head pointing
  • Projector on/off
  • Gripper 6-DOF pose control using JTranspose controller
  • Arm redundancy ("posture") control
  • Gripper open/close
  • Torso up/down

In development:

  • Base movement
  • Switching between JTranspose controller and Joint controller.

Possible support, depending on interest:

  • Laser tilt commands (slow/fast/stop)
  • Variable closure commands for gripper

Comments/feedback welcome!

Wiki: pr2_marker_control (last edited 2013-07-10 20:04:47 by DanePowell)