https://github.com/aliy98/ros-turtlebot3-pid-controller
This ROS package is a simple practice for controlling the TurtleBot3 to move in an elliptic path
https://github.com/aliy98/ros-turtlebot3-pid-controller
pid-controller ros turtlebot3
Last synced: 12 months ago
JSON representation
This ROS package is a simple practice for controlling the TurtleBot3 to move in an elliptic path
- Host: GitHub
- URL: https://github.com/aliy98/ros-turtlebot3-pid-controller
- Owner: aliy98
- Created: 2021-09-29T13:36:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-29T16:39:23.000Z (over 4 years ago)
- Last Synced: 2025-04-15T06:05:27.005Z (12 months ago)
- Topics: pid-controller, ros, turtlebot3
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TurtleBot3 PID Controller
This ROS package is a simple practice for controlling the TurtleBot3 to move in an elliptic path
## How to Use the Package
The first step is to make a workspace directory
> mkdir -p catkin_ws/src
>
> cd catkin_ws/src
>
> source /opt/ros/noetic/setup.bash
>
> catkin_init_workspace
>
then clone the repository into the src directory
> git clone https://github.com/aliy98/ROS_TurtleBot3_PID_Controller.git
>
now make the ros package using caktkin_make command
> cd ..
>
> catkin_make
>
the package would be up and and running using the command below
> source devel/setup.bash
>
## Simulation
open another terminal to choose the turtlebot type
> echo 'export TURTLEBOT3_MODEL=waffle' >> ~/.bashrc
>
now the simulation process can be done in gazebo
> roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch
>
you can also use rviz to gain a better understanding of the path planning and robot footprint so open another terminal and run this command
> roslaunch turtlebot3_gazebo turtlebot3_gazebo_rviz.launch
>
in the first terminal run the source files for visualising the robot footprint
> rosrun pi_controller foot_print.py
>
make sure you have added the path topic in rviz envoirenment

open another terminal to run controller.py which is for the whole control and path planning process.
but before running the package make sure that you have simple pid module installed on your os
> pip install simple_pid
>
> source catkin_ws/devel/setup.bash
>
> rosrun pi_contoller controller.py
>

the package also plots the path planning error during the simulation time

