Here is a brief and non-exhaustive overview of some important nav2 packages.
- Nav2 Website has comprehensive documentation and tutorials.
- slam_toolbox the most up-to-date 2D SLAM method for ROS.
- AMCL A particle filter based approach to finding the robot location given a previously
created map. Generally SLAM Toolbox in localization mode is preferred.
- Map Server - Provides maps to the rest of the navigation stack and allows saving them.
- Costmap 2D An occupancy grid implementation. Multiple layers contain information about various types of obstacles and are rated with a cost to travel through the cell ranging from 0 (free) to 254 (fully blocked).
- "static" layer (e.g., static obstacles from a pre-existing map produced by SLAM),
- "inflation" layer (e.g., increasing cost near obstacles to keep the robot even farther away and make navigation more conservative)
- "obstacle" layer (e.g., for obstacles recently viewed by 2-Dimensional LaserScan and PointCloud2 data).
- "voxel" layer (like the obstacle layer but capable of incorporating data from 3D sensors)
- "range" layer (used for data from sonar or infrared sensors)
- Custom layers are also possible because each layer is implemented as a plugin.
- There are typically two costmaps setup: a "global costmap" setup for long-term planning and a "local costmap" for collision avoidance and short-term planning
- nav2_planner (global_planner in ROS 1) - Contains basic global planning algorithms such as
A*. Publishes a nav_msgs/Path message.
- nav2_controller - the local planner (called local planner in ROS 1). Handles navigation around obstacles that pop up from sensor data
- MPPI Controller (Model Predictive Path Integral) - the default local planner
- Robot Localization fuses various sources to deliver a smooth odometry message
- Loopback simulator A kinematic simulator for a mobile robot