[Documentation] [TitleIndex] [WordIndex

Installation

sudo apt-get install ros-groovy-pr2-pbd

RUNNING

Running with Gazebo on your desktop

Terminal 1 (this will launch Gazebo):

$ export ROBOT=sim
$ roslaunch pr2_pbd_interaction simulated_robot.launch

Terminal 2 (this will launch robot related stuff):

$ export ROBOT=sim
$ roslaunch pr2_pbd_interaction pbd_demo_robot.launch

Terminal 3 (this will launch rviz and gui):

$ export ROBOT=sim
$ roslaunch pr2_pbd_interaction pbd_demo_desktop.launch

* In the window named “Default - RosGui”, click on Plugins>PR2 Programming by Demonstration.

Running on the robot

On the robot:

$ robot start
$ roslaunch pr2_pbd_interaction pbd_demo_robot.launch

On the desktop:

$ roslaunch pr2_pbd_interaction pbd_demo_desktop.launch

INTERACTION

Here is an example sequence of speech commands to program a new action (which you can send through the GUI).

You can also say ‘Open/close right/left hand’ as part of the sequence. If you would like any of your saved poses or trajectories to be relative to an object in the environment use the command ‘Record object pose’ before starting to save (currently assumes a single object on a flat surface). You can later edit the coordinate frames through the rviz window, by right-clicking on their visualization.

Full command list

test-microphone
relax-right-arm
relax-left-arm
open-right-hand
open-left-hand
close-right-hand
close-left-hand
stop-execution
undo-last-command
delete-all-steps
delete-last-step
freeze-right-arm
freeze-left-arm
record-object-pose
create-new-action
execute-action
next-action
previous-action
save-action
edit-action
save-pose
start-recording-motion
stop-recording-motion


2024-12-07 15:01