pointcloudset.dataset_core module

class pointcloudset.dataset_core.DatasetCore(data: list[dask.delayed.DelayedLeaf] = [], timestamps: list[datetime.datetime] = [], meta: dict = {'orig_file': '', 'topic': ''})

Bases: object

DatasetCore Class with all the main methods and properties of the Dataset Class.

property start_time: datetime

Returns: datetime.datetime: Time of first pointcloud in Dataset.

property end_time: datetime

Returns: datetime.datetime: Time of last pointcloud in Dataset.

property duration: timedelta

Returns: datetime.timedelta: Duration between first and last pointcloud in Dataset.

property daskdataframe: DataFrame

Returns: dask.dataframe.DataFrame: Dask DataFrame with data of Dataset.

property bounding_box: DataFrame

The axis aligned boundary box of the whole dataset as a pandas.DataFrame.

has_pointclouds() bool

Check if Dataset has PointCloud.

Returns

True if the Dataset does contain PointClouds, False if Dataset does not contain any PointClouds.

Return type

bool

get_pointclouds_between_timestamps(start_time: datetime, end_time: datetime) DatasetCore

Select pointclouds between start_time and end_time.

Parameters
Returns

Dataset with PointClouds between two timestamps.

Return type

Dataset

Raises

ValueError – If start_time is bigger than end_time.