What?

A ROS 2 path-planning and control demo for turtlesim that builds a Probabilistic Roadmap, finds a shortest path with Dijkstra’s algorithm, and follows it using a Pure Pursuit controller. Obstacles are axis-aligned boxes, while collisions are checked with a simple line-segment test. Runs fully in rclpy with turtles penning the obstacle boxes and flags. ROS Documentation

How?

$$ \space d(a,b)=\sqrt{(ax−bx)^2+(ay−by)^2} $$

Result?

Watch the demo video and look at the code below for the results of the project!

https://youtu.be/wqUnMZntp1A