Atlas Robotics
Lesson 6/6 · about 60 min

Exercise: scanning, localization and navigation in the warehouse

Repeat the four steps with world warehouse: scan, save, relocalize, then let the robot walk into the path between the two rows of shelves.

What to submit

  • RViz image after scanning: 3D map and PGO trajectory
  • Output of map folder ls -lh and stream keyframe nằm trên ô đi được
  • RViz photo when the robot reaches its goal between two rows of shelves, with the measurement table below

World warehouse

Warehouse 30 × 20 m, 4 m high4 rows of 3-tier shelves, rows of columns.
Starting place(−12.5, −8) in Gazebo, southwest corner, robot nose facing north.

Lesson 1 — Scan and save

ros2 launch atlas3d_bringup bringup.launch.py world:=warehouse.sdf wheel_odom_tf:=false rviz:=false

Run SLAM like lesson 1, drive around each row of shelves, go through all the paths between the two rows, return to the starting place. Save it to src/atlas3d_mapPCDs/warehouse/run_01 (if it already exists, use the next number, service will overwrite).

Lesson 2 — relocalization and going on your own

Run navigation.launch.py with the folder you just saved. Set three destinations: one in the middle of the aisle, one at the other end of the warehouse, one back to the starting point. Fill in the table:

Your value
Scanning distance (estimated) / number of lines poses.txt
map.pcd: point count (line POINTS)
traversability map: % traversability / obstacles / unknown
Keyframe is on the traversable cell
Next time ICP alignment accepted
Goal 1: time, recovery number
Goal 2: time, recovery number
Goal 3: time, recovery number

For comparison: on a hand-scanned warehouse map, the goal is 17 m across the shelves in 39 s, 0 recovery.

Answer

  1. unknown % of warehouse map compared to ramp (6.3 %) larger or smaller? Where in the LiDAR warehouse does not scan, why?
  2. Place a target on the top of the shelf (black area) or in the gray area. How does RViz/Nav2 react?
  3. While the robot is walking on its own, use 2D Pose Estimate to misplace the robot by 0.5 m. What happens to the green line and to the robots?

Questions with answers (click to see)

Why must we call the service to save the map before turning off SLAM?

PGO keeps the map in memory, if turned off it is lost. Service /pgo/save_maps writes to disk.

What are two files in the map folder, what is each file?

map.pcd is a point cloud map; poses.txt is the robot positions when scanning (keyframe).

Why do you have to bringup with wheel_odom_tf:=false to run SLAM?

Bringup by default plays odom → base_footprint from the wheel, SLAM plays odom → body → base_footprint. Without turning off the head, base_footprint has two parents, but each frame can only have one parent.

When to use 2D Pose Estimate?

When the robot is not near the starting point of the map. Localizer only searches around the predicted location, within ±1 m and ±30°; Outside that range, you must show it the approximate location.

Nav2 finds its way on a 3D map or what?

On the 2D map, mark accessible places, automatically generated from the 3D map. Localizer 3D shows where the robot is on that map.

Self-check before you submit

  • Map folder is under warehouse/, do not overwrite ramp map
  • The relocalization step runs with world:=warehouse.sdf
  • Keyframes in traversable cells ≥ 95 %
  • Each sensor topic detects exactly 1 publisher before scanning

Next, M02: open each block of the chain just run to see: which node, which topic, TF tree map → odom → body → base_footprint was issued by whom.

Next module

Module 2: The big picture

Start →
Exercise: scan, localize and navigate in the warehouse · Module 1: One full loop: scan → save → localize → drive — Atlas Robotics