Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 964 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 964 Bytes

Ball Chasing Robot

screenshot

Description

This project is a virtual robot that finds and moves toward a white ball.

Dependencies

  • ROS Melodic
  • Gazebo
  • C++

Launching The Project

First, create a catkin workspace and a src folder to house the project.

$ mkdir -p catkin_ws/src
$ cd catkin_ws/src
$ catkin_init_workspace

Next, put the my_robot and ball_chaser directories into the src folder. After this, go to the catkin_ws directory and build the project.

$ catkin_make

To launch the project, first launch the Gazebo world.

$ source devel/setup.bash
$ roslaunch my_robot world.launch

In a new terminal, launch the ball chaser node.

$ source devel/setup.bash
$ roslaunch ball_chaser ball_chaser.launch

Finally, go to Gazebo, move the white ball around, and watch the robot move toward it.