ROS code to control a boba drink mixing Baxter Robot
I assume you already have ROS setup
- Create a folder for your ROS workspace. Make sure it includes a
src
subfolder.
- Ex:
mkdir -p ~/ee106a_final/src
cd ~/ee106a_final/src
catkin_init_workspace
- Clone this repo.
git clone https://github.com/yizow/boba_bot.git
- Feel free to use ssh to clone if you have ssh-keys setup.
cd ~/ee106a_final/
catkin_make
- To start a camera, simply call roslaunch launch file that corresponds to the camera you want to turn on (Ex: head_camera.launch).
- To verify this is working, you can call
roslaunch image_view image_view image:=/cameras/head_camera/image
(Or /cameras/left_hand_camera/image) - Since head cameras are not calibrated correctly, you must run ./headsub.py which is in the src folder to re-broadcast all ar_tag values that's read from the head camera, by calling ./headsub.py. This reads the conf.py file to determine which ar tags are being used and rebroadcasts them.
- You will also need to download the ar_track_avalar package, which you can follow lab instructions for.
Modify the ingredient_list or menu_list in conf.py
LAUNCH FILES WOO
- Source devel/setup.sh
- roslaunch boba_bot boba_bot.launch
- A new terminal will automatically open, waiting for Baxter commands.