Navigation of Mobile Robot With Nav2 and SLAM Using LiDAR
Navigation of Mobile Robot With Nav2 and SLAM Using LiDAR
Abstract—This paper dives into the world of autonomous mo- Cartographer and Navigation2 (Nav2), represents a significant
bile robot navigation that achieves seamless integration between step forward in tackling these fundamental challenges [2],
Robot Operating System (ROS2) and microcontroller-based sys- [3], [4]. ROS2, along with frameworks like Cartographer and
tems without relying on standard ROS control packages. Unlike
conventional methods that depend on dedicated ROS hardware Navigation2 (Nav2), marks a significant impact in addressing
integration packages, the system implements a traditional serial the core challenges of mobile robotics. Although many papers
communication that enables direct interfacing with Arduino [5], [6] rely on Visual Simultaneous Localization and Mapping
microcontrollers. Upon successful demonstration, real-time data (vSLAM) for precise navigation, this approach often demands
handling and efficient buffer management on Arduino Mega excessive computational resources, making it less practical
was achieved by overcoming the memory limitations encountered
with Arduino Uno. The implementation includes a custom joint for real-world scenarios. Alternatively, using Lidar with the
state publisher that ensures precise synchronization between Nav2 framework can be a great way to dynamically map
the physical robot and its simulated counterpart along with the environment and enable autonomous navigation. This
the deployment of the Robot Operating System (ROS2) and paper seeks to improve the combined capabilities of ROS2,
the Navigation Stack (Nav2) with Cartographer ROS, using Cartographer, and Nav2 to enhance the performance of a
their capabilities for precise environment mapping, navigation,
and complex path planning in mobile robotics. Our system Four-Wheeled Differential Drive Mobile Robot (4WDDMR)
achieves accurate robot movement through careful calibration in executing intricate tasks related to localization, mapping,
and real-world parameter measurements, incorporating detailed and navigation.
inertial calculations for improved motion control. This approach
improves the precision of autonomous navigation and broadens 2D Light Detection and Ranging (LIDAR) Slam is consid-
the applicability of the robot in various scenarios, ranging ered one of the techniques for real-time mapping of environ-
from disaster management and indoor navigation to warehouse ments with unparalleled accuracy [4]. Precise self-localization
logistics. is of great importance in robotics, especially in autonomous
Index Terms—Autonomous Navigation, ROS2, SLAM, Nav2, navigation systems such as those made using the ROS2 Nav-
LIDAR, Mobile Robotics, Mapping, Localization
igation Framework (Nav2). These robots find great utility in
various industries. Initially, the Unified Robotics Description
I. I NTRODUCTION
Format (URDF) is implemented, serving as the foundational
In the landscape of mobile robotics, achieving precise map- file for the robot, furnishing crucial information on robot joints
ping and localization is necessary to enable autonomous navi- and movements. This facilitates the robot’s comprehension
gation. The Robot Operating System (ROS) stands as the open- of its structure effortlessly and enables effective control for
source robotics community, which was conceived in 2007 precise movement within an environment. Using the differ-
through the efforts of the Willow Garage robotics incubator ential drive equation and the 2D LIDAR Slam, the robot
[1]. The emergence of ROS2, along with frameworks such as can be efficiently localized, enabling seamless navigation.
The ability of ROS2 to perform multiprocessing for real-time a relatively modular yet flexible framework for developing
performance, coupled with its robust security features [2], robotic systems, consisting of libraries and tools for help in
improves the functionality of the system. perception, planning, control, and many other domains. Of
all the capabilities of ROS2, it definitely adds a lot more
functionality to the existing ROS features. It improves real-
time performance, security, and scalability.
That is why ROS2 would be the right platform for the
project at hand, offering the full support of multi-robot sys-
tems and conforming to the modern hardware and software
ecosystems used in the development of automatic navigation
systems.
C. Robot Description
TABLE II
ROBOT D ESCRIPTION PARAMETERS ALONG WITH THE VALUES
Parameters Values
Mass of Robot (m) 4.55 kg
Effective Height of Robot (h) 25.6 cm
The effective width of the robot (w 24.5 cm
Wheel Radius (r) 3.5 cm
Wheel Separation (b) 29.5 cm
Acceleration due to gravity (g) 9.8 m/s2
Resistance of Motor (r) 1.2 ohm
Operating Voltage of Robot (Vopt ) 12 V
LIDAR Range 0.15 m - 12 m