NavRover is a ROS-based autonomous rover project aimed at advanced navigation and mapping, developed as part of Buildspace's Nights & Weekends program S5. This project integrates a 4-wheeled rocker mechanism for stable navigation and includes various ROS packages for simulation, teleoperation, and autonomous navigation. This project is based on my final year engineering project.
- Introduction
- Features
- Future Scope
- Getting Started
- Usage
- Architecture
- Contributing
- License
- Acknowledgements
NavRover is a versatile rover designed to perform autonomous navigation and mapping. It leverages ROS Noetic to provide robust simulation and teleoperation capabilities, making it an ideal platform for robotics students and enthusiasts. This project is an extension of my final year engineering project, further developed through Buildspace's Nights & Weekends program S5.
- 4-Wheeled Rocker Mechanism: Ensures stability on uneven terrains.
- ROS Noetic Compatibility: Utilizes the latest ROS features.
- Autonomous Navigation: Implements the DWA planner/Trajectory planner for efficient path planning.
- 2D Mapping and Navigation: Generates and navigates detailed 2D maps using sensor data.
- Teleoperation: Allows remote control via teleop_twist_keyboard node.
- Simulation: Complete simulation capabilities using Gazebo.
- 3D Mapping (OctoMap and Real-Time Appearance Based Mapping RTAB-Map): Generates and navigates detailed 3D maps using Kinect Sensor data.
- Autonomous Navigation Based on 3D Maps: 3D Maps are converted to detailed 2D Maps on which autonomous navigation will be performed.
NOTE: Would be implemented in any order, in the near future
- Implementation of Gaussian Splatting.
- Implementation of custom depth/stereo-camera sensor.
- Conversion to ROS2 Jazzy.
Ensure you have the following installed:
- ROS Noetic
- Ubuntu 20.04
- Python 3.8+
- Git
Please refer to this YouTube video on installing Ubuntu 20.04 and Virtual Box.
Please refer to this YouTube video on installing ROS Noetic.
Please refer to this YouTube video on installing the necessary packages and setting up this project.
Note: Videos on setting up OctoMap and RTAB-Map will be added soon
-
Clone the repository:
git clone https://github.com/jj7258/NavRover.git cd NavRover
-
Install dependencies:
rosdep install --from-paths src --ignore-src -r -y
-
Build the workspace:
catkin_make source devel/setup.bash
-
Launch the simulation environment:
roslaunch navrover_gazebo nights_and_weekends_world.launch
-
Launch the teleoperation node:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
-
Use the keyboard to control the rover.
-
Launch the simulation environment and GMapping node together (By default it opens to gazebo.launch, the argument is world:=):
roslaunch navrover_simulation 2d_mapping.launch
-
Launch the teleoperation node:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
-
Use the keyboard to control the rover.
-
Run the following command in the next terminal to save the map in the HOME directory:
rosrun map_server map_saver -f <map_name>
-
Launch the simulation environment:
roslaunch navrover_gazebo nights_and_weekends_world.launch
-
Launch the navigation stack (Launches the move_base.launch and amcl_plus_map_loader.launch file):
roslaunch navrover_navigation navigation.launch
Note: To change the map, modify the map_loader.launch file, and ensure the .yaml file is present in the correct directory
-
Launch the teleoperation node:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
-
Set the initial pose using 2D Initial Pose in Rviz.
-
Drive the rover around until it gets localized ( the AMCL arrows become concentrated).
-
Set the navigation goal using 2D Nav Goal in Rviz.
-
Launch the simulation environment and OctoMapping node:
roslaunch navrover_simulation octomap.launch
-
Launch the teleoperation node:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
-
Use the keyboard to control the rover.
-
Run the following command in the next terminal to save the map in the HOME directory:
rosrun octomap_server octomap_saver -f <map_name>.ot
OR
rosrun octomap_server octomap_saver <map_name>.bt
NOTE: The first command saves the full probability octomap, whereas, the second one saves the compressed binary octomap
-
Launch the simulation environment:
roslaunch navrover_gazebo nights_and_weekends_world.launch
-
Launch the RTAB-Map Mapping node with Rviz (To delete the database, add the following argument at the end delete:=--delete_db_on_start):
roslaunch navrover_rtab_package rtabmap_mapping.launch
OR
Launch the RTAB-Map Mapping node with Rtabmap_viz(To delete the database, add the following argument at the end delete:=--delete_db_on_start):
roslaunch navrover_rtab_package rtabmap.launch
-
Launch the teleoperation node:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
-
Use the keyboard to control the rover.
-
Browse the data using the database viewer, to access it run the following command:
rtabmap-databaseViewer ~/.ros/<database_name>.db
NOTE: By default it's rtabmap.db, but here in both rtabmap launch files it is gazebo.db, but you can change it accordingly.
NOTE: RTAB-Map creates the .yaml and .png corresponding to the 3D map created when exported, these files are then used for performing normal autonomous navigation.
-
Launch the simulation environment:
roslaunch navrover_gazebo gazebo.launch
-
Launch the RTAB-Map-based 2D Nav launch file:
roslaunch navrover_rtab_package rtabmap_2d_nav.launch
-
Launch the teleoperation node:
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
-
Set the initial pose using 2D Initial Pose in Rviz.
-
Drive the rover around until it gets localized (the AMCL arrows become concentrated).
-
Set the navigation goal using 2D Nav Goal in Rviz.
NavRover consists of several packages, each with a specific role:
- navrover_control: Control parameters for the rover's rocker arms.
- navrover_description: URDF and Xacro files for the rover.
- navrover_gazebo: Consists of different simulation worlds, models, and gazebo launch files.
- navrover_navigation: Navigation stack and configurations.
- navrover_rtab_package: RTAB-Map Launch files based on the rover's current configuration.
- navrover_simulation: Contains the single execution launch files for 2D Mapping, Octomapping. Furthermore, it also had the GMapping and display launch files, with the corresponding Rviz parameter files.
- octomap_mapping_navrover: Includes the octomap_mapping and octomap_server, necessary for mapping and saving the environment in octomap format.
Contributions are welcome! Follow these steps:
-
Fork the repository.
-
Create a new branch:
git checkout -b feature/your-feature
-
Make your changes and commit them:
git commit -m "Add your feature"
-
Push to the branch:
git push origin feature/your-feature
-
Open a pull request.
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.
- Jerin Peter
- Leo Rover
- Turtlebot
- Buildspace's Nights & Weekends program
- ROS community
- Open-source contributors