This project is developed as part of the Robotics Lab course assignment and aims to control a mobile robot to follow a specific trajectory in ROS. The project involves creating a Gazebo world, spawning a robot, setting up various goals, and performing autonomous navigation, environmental mapping, and vision-based tasks, .
The primary objectives of this project are:
- Gazebo Simulation Setup: Construct a simulated world in Gazebo, spawn a mobile robot, and configure its starting position.
- Goal Management: Define multiple goal positions in the environment and enable the robot to autonomously navigate through these goals.
- Path Planning and Navigation: Implement navigation using the
move_basepackage and tune various parameters for optimal robot performance. - Mapping and Localization: Modify the environment and navigate the robot to achieve a complete map of the surroundings.
- Data Recording and Analysis: Record the robot's trajectory data, analyze the path taken, and adjust parameters for improved performance.
- Vision-Based Navigation: Integrate a camera with the robot and utilize ArUco markers for navigation tasks.
The primary components include:
- Gazebo World Construction:
- A custom Gazebo world (
rl_racefield) is created, with specific obstacles and markers placed at predefined positions. - The robot is spawned in this environment with an initial pose set to
(x = -3, y = 5, yaw = -90 degrees).
- A custom Gazebo world (
- Goal Definition and Management:
- Static transform frames (TF) are defined as goals within the environment. The robot navigates to these goals in a predefined sequence: Goal_3 → Goal_4 → Goal_2 → Goal_1.
- Multiple listeners and goal-sending functions are implemented to manage the robot's movement from one goal to another.
-
Path Planning and Navigation:
- Using the
move_basepackage, the robot navigates between goals. Themove_baseaction client protocol is used to track the robot's progress and ensure it reaches each goal. - Various configurations of the planner and costmap parameters are tested to optimize the robot's trajectory and obstacle avoidance capabilities.
- Using the
-
Mapping and Environment Exploration:
- The robot explores the environment by following a sequence of goals, which are modified or added to create a complete map.
- Multiple navigation and mapping strategies are tested by adjusting the robot's speed, acceleration, and costmap configurations.
- Vision-Based Navigation:
- The robot is equipped with a camera and configured to detect an ArUco marker placed on an obstacle in the environment.
- Upon detecting the marker, the robot calculates its position relative to the marker and sets a new navigation goal accordingly.
To set up the project and run the simulation, follow these steps:
-
Install ROS Noetic: Ensure that ROS Noetic is installed on your system.
-
Clone the Repository:
cd .../catkin_ws/src git clone https://github.com/EmanueleCuzzocrea/Homework4.git -
Build the Package: Compile the ROS workspace:
cd .../catkin_ws catkin_make source devel/setup.bash
- Trajectory Control: The robot successfully navigated through the predefined goals in the correct order, demonstrating effective use of the
move_basepackage. - Mapping: The robot successfully mapped the environment by exploring all areas defined by the goals. The final map provided a complete representation of the simulated world.
- Parameter Tuning: Multiple configurations were tested to optimize the robot's navigation. The final configuration provided a balance between speed and obstacle avoidance.
- Vision-Based Navigation: The integration of the ArUco marker allowed the robot to autonomously detect and adjust its path based on visual input, showcasing the effectiveness of vision-based navigation strategies.
Thank you!




