OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
map_renderer.map_camera_runtime.MapCameraRuntime Class Reference

Feed navigation position and motion into a renderer-backed map camera. More...

Public Member Functions

MapRendererClient renderer_client (self)
 Return the long-lived renderer client shared by map features.
MapRequestHandlerIf request_handler (self)
 Return the semantic camera request interface.
GeoPoint|None current_position (self)
 Return the latest live or cached navigation position.
None refresh_renderer_position (self)
 Replay the real live/cached vehicle marker after renderer replacement.
None request_replay_map_presentation (self)
 Replay the last observed Navigation camera without changing its zoom.
None start (self)
 Start receiving navigation position and motion updates.
None close (self)
 Release subscriber and renderer-command resources.
 observe_position (self, observer)
 Subscribe to live SI positions; None indicates unavailable/cached data.
 observe_location (self, observer)
 Supply timestamped location metadata for freshness and sharing policy.

Protected Member Functions

None _on_manual_camera_interaction (self, _payload)
 Suspend follow when the user directly manipulates the native map.
None _on_motion_message (self, MotionStateMessage message)
 Keep a followed map course-up while the vehicle is moving.
float|None _filter_bearing (self, float bearing_rad)
 Suppress small course jitter and smooth real turns across north.

Static Protected Member Functions

GeoPoint|None _load_cached_center (Path cache_directory, *, clock=datetime.now, float max_age_seconds=_MAX_CACHED_POSITION_AGE_SECONDS)
 Load the last valid position from the persistent position cache.
float _angular_delta (float start_rad, float end_rad)
 Return the shortest signed angular difference from start to end.

Detailed Description

Feed navigation position and motion into a renderer-backed map camera.

Member Function Documentation

◆ observe_position()

map_renderer.map_camera_runtime.MapCameraRuntime.observe_position ( self,
observer )

Subscribe to live SI positions; None indicates unavailable/cached data.

Consumers receive future fixes only, not a cached startup position.


The documentation for this class was generated from the following file:
  • controllers/map_renderer/map_camera_runtime.py