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 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
- get_pointclouds_between_timestamps(start_time: datetime, end_time: datetime) DatasetCore ¶
Select pointclouds between start_time and end_time.
- Parameters
start_time (datetime.datetime) – Timestamp of first pointcloud.
end_time (datetime.datetime) – Timestamp of last pointcloud.
- Returns
Dataset with PointClouds between two timestamps.
- Return type
- Raises
ValueError – If start_time is bigger than end_time.