scene_service.scene_graph.builder

Low-frequency rebuild of the semantic edges from the ObjectRegistry.

Functions

scene_graph_loop(builder, stop)

Rebuild the scene graph every interval_sec until stop is set.

Classes

SceneGraphBuilder(registry, ...[, config, ...])

Reads the registry, infers semantic edges, publishes them to the store.

SceneGraphConfig()

Scene-graph settings from SCENE_GRAPH_* environment variables.

class scene_service.scene_graph.builder.SceneGraphBuilder(registry: ObjectRegistry, relation_inferer: RelationInferer, store: SceneGraphStore, config: SceneGraphConfig | None = None, object_store: Any = None, perception: Any = None)[source]

Bases: object

Reads the registry, infers semantic edges, publishes them to the store.

async rebuild_once() → SceneGraphSnapshot[source]
class scene_service.scene_graph.builder.SceneGraphConfig[source]

Bases: object

Scene-graph settings from SCENE_GRAPH_* environment variables.

async scene_service.scene_graph.builder.scene_graph_loop(builder: SceneGraphBuilder, stop: Event) → None[source]

Rebuild the scene graph every interval_sec until stop is set.