This repository is a solution for the assignment given in the course ROS2 For Beginners | Section: 10
Assignment name: Turtlesim “Catch Them All”
- Multiple turtles should
spawnat random position. - A
control-turtlewill try to reach(catch) nearest-turtle, once it reaches the nearest-turtle's present location, nearest-turtle shall beremoved.
Following are the requirements for the project:
- ROS
Foxyshould be installed in the system. Turtlesimpackage should be installed.
to install Turtlesim, execute the following command:
sudo apt-get install ros-foxy-turtlesim - The solution shall be implemented in cpp and python.
- Create a
ROS 2cpp package. - There will be two nodes.
- Node 1:
- It shall spawn multiple turtles at random location.
- Node 2:
- It shall send(publish) appropriate velocity commands for the
control-turtleand will try to reach the nearest-turtle. - Once the control-turtle reaches the nearest-turtle's position, nearest-turtle should be removed.
- It shall send(publish) appropriate velocity commands for the






