-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1ad83a
commit ba0c84c
Showing
1 changed file
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,49 @@ | ||
# RL_Obstalce_Avoidance | ||
In this project, i aim to use reinforcement learning to make the robot reach obstacle avoidance function | ||
Welcome to the TurtleBot3 Reinforcement Learning project! This guide will help you set up your environment, train a model, and test the trained model using the provided scripts. Follow the steps below to get started. | ||
|
||
## System Requirements | ||
Operating System: Ubuntu 20.04 (Recommended) | ||
|
||
ROS2 Distribution: ROS2 Foxy | ||
|
||
Python Version: Python 3.8+ | ||
|
||
## ROS2 and Gazebo & Python dependencies | ||
``` | ||
# Install ROS2 Foxy | ||
sudo apt update && sudo apt install ros-foxy-desktop | ||
# Install ROS2 dependencies for TurtleBot3 and Gazebo | ||
sudo apt install ros-foxy-geometry-msgs ros-foxy-sensor-msgs ros-foxy-gazebo-ros-pkgs ros-foxy-gazebo-ros | ||
# Source ROS2 Foxy | ||
source /opt/ros/foxy/setup.bash | ||
# Install Python libraries | ||
pip install gymnasium stable-baselines3[extra] numpy pandas numexpr | ||
``` | ||
## Setup TurtleBot3 Environment | ||
### TurtleBot3 Packages | ||
``` | ||
sudo apt install ros-foxy-turtlebot3* | ||
``` | ||
### Clone and Build the Workspace | ||
``` | ||
# Navigate to your workspace | ||
cd ~ | ||
mkdir rl_ws | ||
cd rl_ws | ||
mkdir src | ||
cd src | ||
# Clone your repository (assuming your repository is named turtlebot3_rl) | ||
git clone <your-repository-url>.git | ||
# Build the workspace | ||
cd ~/rl_ws | ||
colcon build | ||
# Source the workspace | ||
source install/setup.bash | ||
``` | ||
## |