5. Perception: the sector scans
lidar_sector_node (navigation host, on Deep Robotics’ own LiDAR driver there) turns every LiDAR cloud into two sector scans: the range of the nearest obstacle in each angular sector around the robot.
| Scan | Sectors | Read by |
|---|---|---|
perception/safety_scan | 72 over 360°, 0.1 m–4 m | the protective field and the follower’s guard |
perception/sector_scan | 32 over 180° ahead, 0.1 m–8 m | reactive avoidance |
5.1 Which points are obstacles
Each cloud goes through four filters before it is binned:
Noise: Livox tags every point with its confidence. Adhesion points (bits 0–1, the glue of two surfaces) and particle points (bits 2–3: rain, dust) at the confidence of
noise_levelare dropped.Self: points inside the footprint grown by
self_marginare the robot.Levelling: the cloud is rotated by the base’s roll and pitch (from odom, TF), so heights count from the floor even while the body pitches in its gait. Without a recent roll and pitch (
tilt_max_age) every sector is BLOCKED: an unlevelled cloud could put the floor in the band.Height band: only points between
height_min(0.10 m) andheight_max(1.60 m) above the floor are obstacles. Withground_segmentationthe floor height is estimated perground_cellfirst, for ramps and uneven yards.
5.1.1 Binning
A sector’s range is its k = 2): one stray return never blocks a sector, and a sector needs range_max a sector is free; a non-finite or blocked range is treated by every consumer as an obstacle at the robot.
5.2 A blind LiDAR
A covered window, a failed sensor or heavy rain empties the cloud. Fewer than min_points (100) valid points in a cloud, or with regions and min_region_points fewer than the minimum in any azimuth region, make the cloud blind: every sector BLOCKED, the field in its BLIND state (Section 4.3). No cloud for timeout_sec does the same.
A partly covered sensor
min_region_points catches what the total count misses: a bag on one side of the robot leaves enough points overall. To find the normal count, set min_region_points very high for a moment at the site: the warning scans BLOCKED ... N points in region k names the weakest region’s count. Then set the minimum at a third of it (a start-only parameter: restart).
5.3 The near-field blind zone
A LiDAR sees nothing below its lowest beam. With the sensor at height
The robot walking toward a low obstacle sees it from afar, then loses it right where it matters. The obstacle memory keeps every obstacle cell in the odom frame for memory_sec (10 s) and adds it back to the scans while it is below the view, within radius. The model takes base_height and the LiDAR’s mount (lidar_pose), and lower_fov_deg and the mount’s tilt.
| blind radius | |||
| Lowest beam | 0.10 m | 0.20 m | 0.30 m |
| 7° (Mid-360, level) | 3.1 m | 2.3 m | 1.5 m |
| 30° | 0.66 m | 0.48 m | 0.31 m |
(lower_fov_deg to the steepest beam of the cloud the node reads, and check with a box of the height of height_min that the scan keeps it while the robot walks up to it.
The memory forgets on a jump
An odometry jump larger than the motion (max_jump) clears the memory: remembered cells would land in the wrong place. A restarted odometry does the same.
5.4 Motion smear
The Livox accumulates a cloud over
for a point at range margin and the guard’s lateral_margin must cover it. To remove it instead, read FAST-LIO’s undistorted cloud (input.type: pointcloud2, input.pointcloud_topic: /cloud_registered_body) with its frame in TF; it arrives one LIO step later.
5.5 Tuning the band
height_minabove the floor’s unevenness and the gravel, below the lowest thing that can trip the robot. Points of a slope rise into the band: enableground_segmentationon ramps rather than raise the bottom.height_maxabove the highest part of the robot with its payload (the PTZ camera on its mast): anything lower that hangs over the route must be seen.range_max(safety) at least the field’s distance at full speed plus the footprint: 1.62 m + 0.50 m for the X30; 4 m leaves room.num_sectors72 gives 5° sectors: at 2 m a sector is 17 cm wide. More sectors resolve a narrow gap better and need more points each.