ROS project where a TurtleBot follows a red ball while maintaining a distance of 1 meter. I used OpenCV to detect a sphere and the most red pixel in the camera's viewport to pinpoint the ball's exact location. After finding the distance of the ball using the depth camera, linear and angular velocity commands were sent to the Turtlebot, allowing it to follow the red ball while maintaining the distance.
Click here to watch the full demo.