Gaze Arm is a cheap robot arm controlled with ROS.
- GWS Micro 2BBMG - Micro Servo x2
- Servo bracket x2
- Smart phone holder
- USB webcam
- AC adapter
- Intel Edison
- PC (Ubuntu recommended)
Both PC and Edison
- Install ROS (PC: Desktop-Full, Edison: Bare Bones), libmraa.
- Add ros_gpio node.
- $ cd ros_source_folder
- $ wstool set --git ros_gpio https://github.com/yoneken/ros_gpio.git
- $ wstool update ros_gpio
on PC
- Install Gazebo.
- Add gaze_arm node.
- $ cd ros_source_folder
- $ wstool set --git gaze_arm https://github.com/yoneken/gaze_arm.git
- $ wstool update gaze_arm
- Make nodes.
- $ make_catkin_isolated --install --pkg ros_gpio gaze_arm
- Set ROS_MASTER_URI and ROS_IP. For example, IP address of your PC is XXX.XXX.XXX.XXX:
- $ export ROS_MASTER_URI="http://XXX.XXX.XXX.XXX:11311"
- $ export ROS_IP="XXX.XXX.XXX.XXX"
- Set parmeter for gscam.
- $ export GSCAM_CONFIG="v4l2src device=/dev/video0 ! video/x-raw-rgb ! ffmpegcolorspace"
- Launch gaze_arm node.
- $ roslaunch gaze_arm gaze_arm.launch
on Edison
- Make ros_gpio node.
- $ make_catkin_isolated --install --pkg ros_gpio
- Set ROS_MASTER_URI and ROS_IP. For example, IP address of your Edison is YYY.YYY.YYY.YYY:
- $ export ROS_MASTER_URI="http://XXX.XXX.XXX.XXX:11311"
- $ export ROS_IP="YYY.YYY.YYY.YYY"
- Connect servo motors' signal pin to Edison's 5 and 6 pin.
- Run ros_gpio node.
- $ rosrun ros_gpio srv_server
Now. You can control the arm to type "i", ",", "j", and "l" keys. In gazeno, the simulation model is moved synchronously with the real robot.