This objective of this project is to use CV to find the joint angles of the robot and identify target and then use concepts of robotics to follow the target.
- Ubuntu 18.04
- Python 2.7
- ROS Melodic
- Create a folder in your home directory, here we named the folder catkin ws, enter the folder and create another folder named src. You can do it via the terminal:
$ mkdir catkin ws
$ cd catkin ws
$ mkdir src
- Download or clone the repo to src folder using the instruction provided in Github.
- Navigate back to catkin_ws in your terminal and enter
catkin_makeandsource devel/setup.bash - After that enter
nano ~/.bashrcand add the following two lines:
source /opt/ros/melodic/setup.bash
source ∼/catkin ws/devel/setup.bash
- Navigate to src folder within downloaded folder and convert the python scripts into executable files by entering the following code:
chmod +x image1.py image2.py target move.py
- Run the robot simulator using
roslaunch [folder-name] spawn.launch
- The description of each links are provided below:
- To move the robot, you can use the command
rostopic pub -1 /robot/joint1 position controller/command std msgs/Float64 “data: 1.0”or bash files calledsingle_joint.shorarm_move.shin folder tools. - You are required to specify the joint number and the angles in rads in order to move.
- To view the robot from both camera, run the file
two_cam_open.pyin tools.
Following are the objectives and the corresponding files:
- Find joint angles - 2_1_joint_estimation.py
- Find the target location - 2_2_target_detection.py
- Print the EE position - 3_1_FK.py
- EE follow the target - 3_2_closed_control_loop.py
- Find joint angles for the black robot (figure below) - 4_3_joint_estimation_black_robot.py
- Moshen Khadem - created the ROS environment
- Boniface Yogendran
- Sahar Atif
This project is licensed under the MIT License - see the LICENSE.md file for details


