![]() |
CloudTwin
ROS2 Humble
Digital twin for path and trajectory optimisation
|
Classes | |
| class | CrowdMonitor |
Functions | |
| def | main (args=None) |
crowd_monitor.py — Dynamic map overlay for Nav2 crowd-aware replanning.
Reads the static map from map_server (/map), tracks moving humans via
/people_positions (PoseArray from obstacle_spawner), computes a Gaussian
density field around each person, and publishes two grids:
/map_dynamic — static map + crowd zones stamped as walls (OccupancyGrid 100)
→ Nav2 global_costmap static_layer subscribes here
/crowd_density — density-only overlay for Foxglove visualisation
| def digital_twin.crowd_monitor.main | ( | args = None | ) |