Python code to teleoperate the Baxter industrial robot using Kinect, Oculus Rift, and a web interface.
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
csv
images
README.md
baxter_console.py
demo_day_readme.txt
kinect.rviz
remap_keys.sh
stopthread.py
teleoperate.py
teleoperate_tweaked.py

README.md

Baxter Teleoperation using Kinect and the Oculus Rift

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.

Setup:

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.

Commands:

  • baxter.idle() cease teleoperation and move to an idle position (as specified by csv file)
  • baxter.standby() move baxter to the 'psi' kinect calibration pose
  • baxter.start_teleoperation(transition) execute one of three transitions to teleoperation, 0=immediate, 1=with animation, 2=with image
  • baxter.queue_state(dict) queue images or motions
  • baxter.send_image(path) display an image on baxter's face