How ssk450/hector_slam works
This repository is a ROS SLAM and mapping package collection. Its principal workflow accepts laser scans in the mapping ROS node, estimates pose and updates occupancy maps through Hector SLAM’s scan-matching and map-representation layers, then publishes mapping results. The tree also shows map serving, compressed-map image transport, GeoTIFF export and trajectory overlays, IMU conversions, and trajectory publishing. Edges are limited to relationships visible in excerpts or SOURCE INDEX references; where runtime wiring is not shown, links are omitted rather than inferred.
Main entry points: MapRepMultiMap.h Multi-map representation · HectorSlamProcessor.h SLAM processor · MapProcContainer.h Map processing · geotiff_node.cpp GeoTIFF node
Components 21
SLAM Mapping
- Mapping ROS
hector_mapping/src/HectorMappingRos.cpp - SLAM processor
hector_mapping/include/hector_slam_lib/slam_main/HectorSlamProcessor.h - Multi-map representation
hector_mapping/include/hector_slam_lib/slam_main/MapRepMultiMap.h - Map processing
hector_mapping/include/hector_slam_lib/slam_main/MapProcContainer.h - Scan matcher
hector_mapping/include/hector_slam_lib/matcher/ScanMatcher.h - Occupancy grid
hector_mapping/include/hector_slam_lib/map/OccGridMapBase.h - Scan points
hector_mapping/include/hector_slam_lib/scan/DataPointContainer.h
Map I/O
- Map server
hector_map_server/src/hector_map_server.cpp - Map tools
hector_map_tools/include/hector_map_tools/HectorMapTools.h - Map image transport
hector_compressed_map_transport/src/map_to_image_node.cpp - GeoTIFF node
hector_geotiff/src/geotiff_node.cpp - GeoTIFF writer
hector_geotiff/src/geotiff_writer/geotiff_writer.cpp - Writer plugin interface
hector_geotiff/include/hector_geotiff/map_writer_plugin_interface.h - Trajectory GeoTIFF plugin
hector_geotiff_plugins/src/trajectory_geotiff_plugin.cpp
Sensor and Trajectory Tools
- Pose to IMU
hector_imu_tools/src/pose_and_orientation_to_imu_node.cpp - IMU to TF
hector_imu_attitude_to_tf/src/imu_attitude_to_tf_node.cpp - Trajectory server
hector_trajectory_server/src/hector_trajectory_server.cpp
Visualization
- Marker drawings
hector_marker_drawing/include/hector_marker_drawing/HectorDrawings.h - Drawing interface
hector_mapping/include/hector_slam_lib/util/DrawInterface.h - Debug provider
hector_mapping/src/HectorDebugInfoProvider.h
Other components
- Laser scans
Connections 18
- Laser scans → Mapping ROS: supplies scans
- Mapping ROS → SLAM processor: uses processor
- SLAM processor → Multi-map representation: delegates mapping
hector_mapping/include/hector_slam_lib/slam_main/HectorSlamProcessor.h - Multi-map representation → Map processing: constructs and matches
hector_mapping/include/hector_slam_lib/slam_main/MapRepMultiMap.h - Multi-map representation → Scan matcher: uses matcher
hector_mapping/include/hector_slam_lib/slam_main/MapRepMultiMap.h - Multi-map representation → Occupancy grid: creates grids
hector_mapping/include/hector_slam_lib/slam_main/MapRepMultiMap.h - Map processing → Scan matcher: uses matcher
hector_mapping/include/hector_slam_lib/slam_main/MapProcContainer.h - Map processing → Occupancy grid: uses grid
hector_mapping/include/hector_slam_lib/slam_main/MapProcContainer.h - Multi-map representation → Scan points: matches scan data
hector_mapping/include/hector_slam_lib/slam_main/MapRepMultiMap.h - Map server → Map tools: uses map utilities
hector_map_server/src/hector_map_server.cpp - GeoTIFF node → GeoTIFF writer: uses writer
hector_geotiff/src/geotiff_node.cpp - GeoTIFF node → Writer plugin interface: loads plugin interface
hector_geotiff/src/geotiff_node.cpp - GeoTIFF writer → Map tools: uses coordinate tools
- SLAM processor → Drawing interface: uses drawing interface
hector_mapping/include/hector_slam_lib/slam_main/HectorSlamProcessor.h - SLAM processor → Debug provider: uses debug interface
hector_mapping/include/hector_slam_lib/slam_main/HectorSlamProcessor.h - Marker drawings → Drawing interface: implements
hector_marker_drawing/include/hector_marker_drawing/HectorDrawings.h - Map image transport → Map server: consumes map
- Trajectory GeoTIFF plugin → Writer plugin interface: plugin implementation