scene_service.map_binding¶
Which map scene is bound to.
Mapping’s latched lifecycle broadcast wins; the manifest’s map_id, then SCENE_MAP_ID, then “default” cover a mapping that is not up yet or does not broadcast. generation is mapping’s map-frame epoch; the watcher in service.py flushes derived objects when it changes.
Functions
|
broadcast > config.map_id > SCENE_MAP_ID > "default". |
|
One read of the latched MapLifecycle sample, on a private rclpy context so the hub's later rclpy.init() does not clash. |
|
A map id safe as a directory name and URL segment; all-dot names become "default" because "." and ".." name existing directories. |
Classes
|
The resolved binding and where it came from. |
- class scene_service.map_binding.MapBinding(map_id: str, source: str, mode: str = '', generation: int | None = None)[source]¶
Bases:
objectThe resolved binding and where it came from.
- generation: int | None = None¶
- map_id: str¶
- mode: str = ''¶
- source: str¶
- scene_service.map_binding.choose_map_binding(broadcast: dict | None, config_map_id: object, env_map_id: str | None) MapBinding[source]¶
broadcast > config.map_id > SCENE_MAP_ID > “default”. A broadcast with an empty map_id (mapping runs without a named map) counts as none.