Scene API¶
- class py123d.api.SceneAPI[source]¶
Base class for all scene APIs. The scene API provides access to all data modalities at in a scene.
Public Data Attributes:
log_metadataThe
LogMetadataof the scene.scene_metadataThe
SceneMetadataof the scene.map_metadataThe
MapMetadataof the scene, if available.map_apiThe
MapAPIof the scene, if available.datasetThe dataset name from the log metadata.
splitThe data split name from the log metadata.
locationThe location from the log metadata.
log_nameThe log name from the log metadata.
versionThe version of the py123d library used to create this log metadata.
scene_uuidThe UUID of the scene.
number_of_iterationsThe number of iterations in the scene.
number_of_history_iterationsThe number of history iterations in the scene.
vehicle_parametersThe
VehicleParametersof the ego vehicle, if available.available_pinhole_camera_typesList of available
PinholeCameraTypein the log metadata.available_fisheye_mei_camera_typesList of available
FisheyeMEICameraTypein the log metadata.available_lidar_typesList of available
LiDARTypein the log metadata.Public Methods:
get_log_metadata()Returns the
LogMetadataof the scene.get_scene_metadata()Returns the
SceneMetadataof the scene.get_map_api()Returns the
MapAPIof the scene, if available.get_timepoint_at_iteration(iteration)Returns the
TimePointat a given iteration.get_ego_state_at_iteration(iteration)Returns the
EgoStateSE3at a given iteration, if available.get_box_detections_at_iteration(iteration)Returns the
BoxDetectionWrapperat a given iteration, if available.get_traffic_light_detections_at_iteration(...)Returns the
TrafficLightDetectionWrapperat a given iteration,get_route_lane_group_ids(iteration)Returns the list of route lane group IDs at a given iteration, if available.
get_pinhole_camera_at_iteration(iteration, ...)Returns the
PinholeCameraof a givenPinholeCameraTypeat a given iteration, if available.get_fisheye_mei_camera_at_iteration(...)Returns the
FisheyeMEICameraof a givenFisheyeMEICameraTypeat a given iteration, if available.get_lidar_at_iteration(iteration, lidar_type)Returns the
LiDARof a givenLiDARTypeat a given iteration, if available.
- abstractmethod get_log_metadata()[source]¶
Returns the
LogMetadataof the scene.- Return type:
- Returns:
The log metadata.
- abstractmethod get_scene_metadata()[source]¶
Returns the
SceneMetadataof the scene.- Return type:
SceneMetadata- Returns:
The scene metadata.
- abstractmethod get_timepoint_at_iteration(iteration)[source]¶
Returns the
TimePointat a given iteration.
- abstractmethod get_ego_state_at_iteration(iteration)[source]¶
Returns the
EgoStateSE3at a given iteration, if available.- Parameters:
iteration (
int) – The iteration to get the ego state for.- Return type:
- Returns:
The ego state at the given iteration, or None if not available.
- abstractmethod get_box_detections_at_iteration(iteration)[source]¶
Returns the
BoxDetectionWrapperat a given iteration, if available.- Parameters:
iteration (
int) – The iteration to get the box detections for.- Return type:
- Returns:
The box detections at the given iteration, or None if not available.
- abstractmethod get_traffic_light_detections_at_iteration(iteration)[source]¶
- Returns the
TrafficLightDetectionWrapperat a given iteration, if available.
- Parameters:
iteration (
int) – The iteration to get the traffic light detections for.- Return type:
- Returns:
The traffic light detections at the given iteration, or None if not available.
- Returns the
- abstractmethod get_route_lane_group_ids(iteration)[source]¶
Returns the list of route lane group IDs at a given iteration, if available.
- abstractmethod get_pinhole_camera_at_iteration(iteration, camera_type)[source]¶
Returns the
PinholeCameraof a givenPinholeCameraTypeat a given iteration, if available.- Parameters:
iteration (
int) – The iteration to get the pinhole camera for.camera_type (
PinholeCameraType) – ThePinholeCameraTypeof the pinhole camera.
- Return type:
- Returns:
The pinhole camera, or None if not available.
- abstractmethod get_fisheye_mei_camera_at_iteration(iteration, camera_type)[source]¶
Returns the
FisheyeMEICameraof a givenFisheyeMEICameraTypeat a given iteration, if available.- Parameters:
iteration (
int) – The iteration to get the fisheye MEI camera for.camera_type (
FisheyeMEICameraType) – TheFisheyeMEICameraTypeof the fisheye MEI camera.
- Return type:
- Returns:
The fisheye MEI camera, or None if not available.
- abstractmethod get_lidar_at_iteration(iteration, lidar_type)[source]¶
Returns the
LiDARof a givenLiDARTypeat a given iteration, if available.
- property log_metadata: LogMetadata¶
The
LogMetadataof the scene.
- property scene_metadata: SceneMetadata¶
The
SceneMetadataof the scene.
- property map_metadata: MapMetadata | None¶
The
MapMetadataof the scene, if available.
- property vehicle_parameters: VehicleParameters | None¶
The
VehicleParametersof the ego vehicle, if available.
- property available_pinhole_camera_types: List[PinholeCameraType]¶
List of available
PinholeCameraTypein the log metadata.
- property available_fisheye_mei_camera_types: List[FisheyeMEICameraType]¶
List of available
FisheyeMEICameraTypein the log metadata.