helper
RenderingHelper
Help Tier4
class with rendering tasks.
Construct a new object.
Parameters:
-
t4
Tier4
) –Tier4
instance.
async_render_scene
async
async_render_scene(
scene_token: str,
*,
max_time_seconds: float = np.inf,
future_seconds: float = 0.0,
save_dir: str | None = None,
show: bool = True,
) -> Future
Render specified scene.
Parameters:
-
scene_token
str
) –Unique identifier of scene.
-
max_time_seconds
float
, default:inf
) –Max time length to be rendered [s].
-
future_seconds
float
, default:0.0
) –Future time in [s].
-
save_dir
str | None
, default:None
) –Directory path to save the recording.
-
show
bool
, default:True
) –Whether to spawn rendering viewer.
Returns:
-
Future
–Future aggregating results.
async_render_instance
async
async_render_instance(
instance_token: str | Sequence[str],
*,
future_seconds: float = 0.0,
save_dir: str | None = None,
show: bool = True,
) -> Future
Render particular instance.
Parameters:
-
instance_token
str | Sequence[str]
) –Instance token(s).
-
future_seconds
float
, default:0.0
) –Future time in [s].
-
save_dir
str | None
, default:None
) –Directory path to save the recording.
-
show
bool
, default:True
) –Whether to spawn rendering viewer.
Returns:
-
Future
–Future aggregating results.
async_render_pointcloud
async
async_render_pointcloud(
scene_token: str,
*,
max_time_seconds: float = np.inf,
ignore_distortion: bool = True,
save_dir: str | None = None,
show: bool = True,
) -> Future
Render pointcloud on 3D and 2D view.
Parameters:
-
scene_token
str
) –Scene token.
-
max_time_seconds
float
, default:inf
) –Max time length to be rendered [s].
-
save_dir
str | None
, default:None
) –Directory path to save the recording.
-
ignore_distortion
bool
, default:True
) –Whether to ignore distortion parameters.
-
show
bool
, default:True
) –Whether to spawn rendering viewer.
Returns:
-
Future
–Future aggregating results.
TODO
Add an option of rendering radar channels.
TimeseriesHelper
Help Tier4
class with timeseries relevant operations.
Construct a new object.
Parameters:
-
t4
Tier4
) –Tier4
instance.
get_sample_annotations_util
get_sample_annotations_util(
instance_token: str, sample_token: str, seconds: float
) -> list[SampleAnnotation]
Return a list of sample annotations until the specified seconds.
If seconds>=0
explores future, otherwise past.
Parameters:
-
instance_token
str
) –Instance token of any sample annotations.
-
sample_token
str
) –Start sample token.
-
seconds
float
) –Time seconds until. If
>=0
explore future, otherwise past.
Returns:
-
list[SampleAnnotation]
–List of sample annotation records of the specified instance.
get_object_anns_until
get_object_anns_until(
instance_token: str,
sample_data_token: str,
seconds: float,
) -> list[ObjectAnn]
Return a list of object anns until the specified seconds.
If seconds>=0
explores future, otherwise past.
Parameters:
-
instance_token
str
) –Instance token of any object anns.
-
sample_data_token
str
) –Start sample data token.
-
seconds
float
) –Time seconds until. If
>=0
explore future, otherwise past.
Returns: