Performance: LiDAR-based SLAM (gmapping, cartographer)
This concept affects the real-time mapping and localization speed in robotic systems, impacting how quickly and smoothly the robot can build and update maps while moving.
roslaunch gmapping slam_gmapping.launch scan:=/scan particles:=30 update_interval:=1.0 # Tuned parameters for balanced CPU load and update speed
roslaunch gmapping slam_gmapping.launch scan:=/scan
# Using default parameters with high particle count and slow update rates| Pattern | CPU Usage | Memory Usage | Latency | Verdict |
|---|---|---|---|---|
| High particle count with default gmapping | High (80-100%) | Moderate (200MB+) | High (200-300ms) | [X] Bad |
| Tuned gmapping with lower particles | Moderate (40-60%) | Moderate (150MB) | Low (50ms) | [OK] Good |
| Cartographer default high-res grid | Very High (90-100%) | High (500MB+) | Very High (500ms+) | [X] Bad |
| Cartographer with filtering and optimized grid | Moderate (50-70%) | Moderate (300MB) | Low (100ms) | [OK] Good |
roslaunch to start nodes with launch files, specifying package and launch file name.slam_gmapping.launch to start the SLAM node.<launch> <include file="$(find cartographer_ros)/launch/demo_backpack_2d.launch" /> </launch>What will happen when you run this launch file?
<include> tag loads another launch file from the cartographer_ros package.demo_backpack_2d.launch is a Cartographer demo for 2D SLAM using a backpack LiDAR sensor.roslaunch gmapping slam_gmapping.launchBut get an error: "Could not find node of type slam_gmapping in package gmapping". What is the likely cause?
Pass the test and this pattern moves unknown