-
Notifications
You must be signed in to change notification settings - Fork 7
Baxter and Gazebo Simulation Installation
- UBUNTU 14.04 LTS
- PYTHON 2.7
-
WORKSTATION SETUP Follow steps from 1 to 4 from the reference link: Workstation Setup (ROS Indigo version)
-
SIMULATOR SETUP Follow steps to install GAZEBO from the reference link : Simulator Installation (ROS Indigo version)
-
MIDCA Follow instructions from the reference link to install MIDCA : MIDCA
-
DEPENDENCIES A. Pocket Sphinx
$ pip install --upgrade pip setuptools wheel
$ pip install --upgrade pocketsphinx
B. Robot State Publisher
$ sudo apt-get install ros-indigo-robot-state-publisher
This is the demo on the gazebo simulator working with the simulated baxter robot on the blocksworld domain. We use three blocks in this domain and perform operations like stack, unstack, get and put.
-
Launch the Baxter Robot in the Gazebo Simulator Open a new terminal window ( cntrl + T)
$ cd ~/ros_ws (Go to the workspace directory)
$ ./baxter.sh sim
$ roslaunch baxter_gazebo baxter_world.launch
Figure 1: Baxter in Gazebo, after executing the above commands
-
Get the models into the simulator (Table and Blocks): Open a new terminal (cntrl + T) Direct to the MIDCA Folder
$ ./baxter.sh sim
$ cd examples/_gazebo_baxter
$ python model.py
Figure 2. Baxter Robot along with table and blocks in gazebo, after executing the above commands
-
Position Right Hand Camera To view Blocks: Open a new terminal (cntrl + T) Direct to the MIDCA Folder
$ ./baxter.sh sim
$ cd examples/_gazebo_baxter
$ python tuck_arms.py -u
$ python position_right_camera.py
$ python publish_right_camera_to_xdisplay.py
Figure 3. Baxter Robot with left arm in tucked position and right arm in a position to view blocks, after executing the above commands
-
Script to Detect Objects and send coordinates to MIDCA Detects the blocks and puts the coordinates into MIDCA's Incoming Message Handler. Open a new terminal (cntrl + T) Direct to the MIDCA Folder
$ ./baxter.sh sim
$ cd examples/_gazebo_baxter
$ python OD.py
-
Script to Receive command from MIDCA and execute on MIDCA During the Act Phase MIDCA initiates the command into outgoing message handler, that is received through the script grabbing.py and implements the actions to be performed physically. Open a new terminal (cntrl + T) Direct to the MIDCA Folder
$ ./baxter.sh sim
$ cd examples/_gazebo_baxter
$ python grabbing.py
-
Run MIDCA Receives the instructions through voice commands and executes the phases. MIDCA runs in a continous loop until terminated. Open a new terminal (cntrl + T) Direct to the MIDCA Folder
$ ./baxter.sh sim
$ cd examples
$ python baxter_run_OD_sim.py
-
Run Voice Commands Use headphones to speak out voice commands, after running the scripts below Format : stack the [block name] on the [block name] put the [block name] on table unstack the [block name] get the [block name] Example: stack the “blue block” on the “red block” Open a new terminal (cntrl + T) Direct to the MIDCA Folder
$ ./baxter.sh sim
$ cd examples/_gazebo_baxter
$ python voice_cmds_sr.py
Go to MIDCA Home page