Fusion of Engineering, Control, Coding, Machine Learning, and Science

ROS2 Jazzy Tutorial: Position Control of Mobile Robot in Python and ROS2

In this Robot Operating System 2 (ROS2) Jazzy tutorial, we explain how to write a Python program and a ROS2 package from scratch that demonstrate how to implement all the components of a controller for controlling the position of a mobile robot in 2D space.

In particular, we explain how to implement a Python class that embeds:

As a proof of principle and as a model of a 2D mobile robot we use a Turtlesim simulation. The Turtlesim simulation simulates a 2D mobile robot. It enables us to quickly test and prototype control algorithms before proceeding with the next step and testing algorithms in a Gazebo simulation. The figure below shows a Turtlesim simulation and the trajectory that the robot describes. The turtle is located in the desired position (final position), and the trajectory starts from the initial position.

The YouTube tutorial is given below.

Exit mobile version