This repository contains code for an interactive console that allows you to send commands to Baxter, including starting teleoperation. Commands can be queued or interrupted for seamless operation. Also supports playback of joint positions or images as specified in CSV files.
First, enter the Baxter environment. If you want to use the simulator:
cd ~/ros_ws
. baxter.sh sim
roslaunch baxter_gazebo baxter_world.launch
If you want to use the real robot:
cd ~/ros_ws
. baxter.sh
Second, start the kinect client in a new terminal tab:
roslaunch openni_launch openni.launch
Third, start tracking in another termial tab:
roslaunch openni_tracker openni_tracker.launch
Finally, enable the robot and start the console.
rosrun baxter_tools enable_robot.py -e
python baxter_console.py
You can then run commands at the >>>
prompt.
baxter.idle()
cease teleoperation and move to an idle position (as specified by csv file)baxter.standby()
move baxter to the 'psi' kinect calibration posebaxter.start_teleoperation(transition)
execute one of three transitions to teleoperation, 0=immediate, 1=with animation, 2=with imagebaxter.queue_state(dict)
queue images or motionsbaxter.send_image(path)
display an image on baxter's face