How anybotics/elevation_mapping works
This ROS product builds a robot-centric elevation map from distance measurements and robot pose/covariance, then exposes raw and fused maps and map services. Its runtime path is input-source subscription, sensor-specific processing, map updates and fusion. The README documents the user-visible topics and services; the SOURCE INDEX supports several internal module relationships. Postprocessing is a separate configured filter subsystem, but the excerpts do not show how it is invoked by the mapping node.
Main entry points: ElevationMapping.cpp Mapping coordinator · Input.cpp Input subscriber · ElevationMap.cpp Elevation map · SensorProcessorBase.cpp Sensor processor base
Components 23
Input Sources
- Source manager
elevation_mapping/src/input_sources/InputSourceManager.cpp - Input subscriber
elevation_mapping/src/input_sources/Input.cpp
Sensor Processing
- Sensor processor base
elevation_mapping/src/sensor_processors/SensorProcessorBase.cpp - Laser processor
elevation_mapping/src/sensor_processors/LaserSensorProcessor.cpp - Perfect processor
elevation_mapping/src/sensor_processors/PerfectSensorProcessor.cpp - Stereo processor
elevation_mapping/src/sensor_processors/StereoSensorProcessor.cpp - Structured-light processor
elevation_mapping/src/sensor_processors/StructuredLightSensorProcessor.cpp - Confidence point type
elevation_mapping/src/PointXYZRGBConfidenceRatio.cpp
Mapping Runtime
- ROS node entry
elevation_mapping/src/elevation_mapping_node.cpp - Mapping coordinator
elevation_mapping/src/ElevationMapping.cpp - Elevation map
elevation_mapping/src/ElevationMap.cpp - Motion map updater
elevation_mapping/src/RobotMotionMapUpdater.cpp - Weighted distribution
elevation_mapping/include/elevation_mapping/WeightedEmpiricalCumulativeDistributionFunction.hpp - Thread-safe data
elevation_mapping/include/elevation_mapping/ThreadSafeDataWrapper.hpp
Map Output
- Filter pipeline
elevation_mapping/src/postprocessing/PostprocessingPipelineFunctor.cpp - Postprocessing worker
elevation_mapping/src/postprocessing/PostprocessingWorker.cpp - Postprocessor pool
elevation_mapping/src/postprocessing/PostprocessorPool.cpp - Raw elevation map
- Fused elevation map
Other components
- Robot pose
- Distance sensor
- ROS client
- Map visualizer
Connections 30
- ROS node entry → Mapping coordinator: starts
- Robot pose → Mapping coordinator: provides pose
README.md - Distance sensor → Source manager: provides measurements
README.md - Mapping coordinator → Source manager: configures sources
elevation_mapping/src/ElevationMapping.cpp - Source manager → Input subscriber: configures
- Input subscriber → Mapping coordinator: registers callbacks
- Input subscriber → Sensor processor base: owns processor
- Input subscriber → Laser processor: selects processor
elevation_mapping/src/input_sources/Input.cpp - Input subscriber → Perfect processor: selects processor
elevation_mapping/src/input_sources/Input.cpp - Input subscriber → Stereo processor: selects processor
elevation_mapping/src/input_sources/Input.cpp - Input subscriber → Structured-light processor: selects processor
elevation_mapping/src/input_sources/Input.cpp - Laser processor → Sensor processor base: specializes
- Perfect processor → Sensor processor base: specializes
- Stereo processor → Sensor processor base: specializes
- Structured-light processor → Sensor processor base: specializes
- Sensor processor base → Confidence point type: uses point type
- Mapping coordinator → Elevation map: updates and fuses
elevation_mapping/src/ElevationMapping.cpp - Mapping coordinator → Motion map updater: updates motion
- Motion map updater → Elevation map: updates map
- Elevation map → Confidence point type: uses point type
elevation_mapping/src/ElevationMap.cpp - Elevation map → Weighted distribution: uses distribution
elevation_mapping/src/ElevationMap.cpp - Mapping coordinator → Thread-safe data: guards parameters
- Elevation map → Raw elevation map: publishes raw
README.md - Elevation map → Fused elevation map: publishes fused
README.md - ROS client → Mapping coordinator: triggers fusion
README.md - ROS client → Fused elevation map: requests submap
README.md - Raw elevation map → Map visualizer: visualizes
README.md - Postprocessing worker → Filter pipeline: processes buffer
- Postprocessor pool → Postprocessing worker: manages workers
- Filter pipeline → Thread-safe data: guards parameters