Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #6

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,40 @@
# AST_assignments
# AST_assignments

This project demonstrates a multi-robot Gazebo simulation setup using ROS 2. It spawns multiple robots in a Gazebo environment and optionally performs laser scanning for one of the robots.

Prerequisites

ROS 2
Gazebo installed
Python 3


Installation

1. Clone this repository to your ROS 2 workspace:

git clone <repository_url>

2. Build your ROS 2 workspace:

colcon build


Running the Simulation

1. Open a terminal and source your ROS 2 workspace:
source /path/to/your/ros2_ws/install/setup.bash

2. Launch the Gazebo simulation:
ros2 launch <package_name> <launch_file>.py
eg: ros2 launch robile safety robile safety.py

Customization

Adjust the number of robots in the generate_launch_description() function in your launch file as needed.
Eg: Change the variable number_of_robots = 2, for spawning two robots


Notes

Ensure that your URDF files and Gazebo world files are correctly configured and located in the appropriate directories.
Loading