This project is a virtual robot that finds and moves toward a white ball.
- ROS Melodic
- Gazebo
- C++
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.