Using April tags to control finger arrangement, pressure controllers and robot arm trajectories
- Install ROS
- Set up your AprilTag workspace
- Make a new catkin workspace
- Clone the AprilTag ROS package
- Clone the USB cam package
- Install dependencies:
rosdep install --from-paths src --ignore-src -y
- Run
catkin_make_isolated
- Set up your pressure control workspace
- Make another new catkin workspace
- Set up my pressure controller package
- Clone this package into the src folder
- Clone my video_recorder package into the src folder (optional)
- Clone my rosbag_recorder package into the src folder (optional)
- Run
catkin_make
- Set up the robot arm control package in same workspace as the pressure controller
- Set up your
~/.bashrc
file to source both workspaces
- Set up AprilTag config files to specify your tag properties.
- Make a new verison of
usb_cam-test.launch
to use your camera settings - Calibrate your camera
- Set up item directory in the
config/items
directory. To create this directory from item geometry:- Create a spreadsheet listing the item's tag id, length, width, height and object shape
- Import a trained classification model as a pmml file
- Run the
create_dir.py
script which will output a yaml file
- Start running the camera (publishes data to the
usb_cam/image_raw
topic)roslaunch usb_cam usb_cam-test.launch
- Rectify the image using the calibration matrix (tutorial)
ROS_NAMESPACE=my_camera rosrun image_proc image_proc
- Begin detecting apriltags
- If using rectified camera image:
roslaunch apriltag_ros continuous_detection.launch camera_name:=usb_cam
- If you just want to test without calibrating:
roslaunch apriltag_ros continuous_detection.launch camera_name:=usb_cam image_topic:=image_raw
- If using rectified camera image:
- Start the pressure controller
roslaunch pressure_controller_ros bringup_HID.launch profile:=anthro8 hw_profile:=hid
- Start Dynamixel motor
roslaunch pressure_controller_configs bringup_dynamixel.launch profile:=dynamixel_single hw_profile:=dynamixel_default
- Start the robot arm with the teach pendant program
roslaunch ur_user_calibration bringup_armando.launch
- Start the controller
roslaunch tag2arrange run_controller.launch pctrl:=True arm:=True