helper
RenderingHelper
Help Tier4 class with rendering tasks.
Construct a new object.
Parameters:
-
(t4Tier4) –Tier4instance.
render_scene
render_scene(
*,
max_time_seconds: float = np.inf,
future_seconds: float = 0.0,
save_dir: str | None = None,
) -> None
Render specified scene.
Parameters:
render_instance
render_pointcloud
render_pointcloud(
*,
max_time_seconds: float = np.inf,
ignore_distortion: bool = True,
save_dir: str | None = None,
) -> None
Render pointcloud on 3D and 2D view.
Parameters:
-
(max_time_secondsfloat, default:inf) –Max time length to be rendered [s].
-
(ignore_distortionbool, default:True) –Whether to ignore distortion parameters.
-
(save_dirstr | None, default:None) –Directory path to save the recording. Viewer will be spawned if it is None, otherwise not.
TODO
Add an option of rendering radar channels.
TimeseriesHelper
Help Tier4 class with timeseries relevant operations.
Construct a new object.
Parameters:
-
(t4Tier4) –Tier4instance.
get_sample_annotations_until
get_sample_annotations_until(
instance_token: str, sample_token: str, seconds: float
) -> tuple[list[int], list[SampleAnnotation]]
Return a list of sample annotations until the specified seconds.
If seconds>=0 explores future, otherwise past.
Parameters:
-
(instance_tokenstr) –Instance token of any sample annotations.
-
(sample_tokenstr) –Start sample token.
-
(secondsfloat) –Time seconds until. If
>=0explore future, otherwise past.
Returns:
-
tuple[list[int], list[SampleAnnotation]]–List of timestamps and associated sample annotation records of the specified instance.
get_object_anns_until
get_object_anns_until(
instance_token: str,
sample_data_token: str,
seconds: float,
) -> tuple[list[int], list[ObjectAnn]]
Return a list of object anns until the specified seconds.
If seconds>=0 explores future, otherwise past.
Parameters:
-
(instance_tokenstr) –Instance token of any object anns.
-
(sample_data_tokenstr) –Start sample data token.
-
(secondsfloat) –Time seconds until. If
>=0explore future, otherwise past.
Returns: