roboto.domain.topics.topic_data_service
Module Contents
TopicDataService
Internal service for retrieving topic data.
This service handles the low-level operations for accessing topic data that has been ingested by the Roboto platform. It manages downloads, filtering, and processing various data formats to provide efficient access to time-series robotics data.
Parameters
roboto_client roboto.cache_dir Union[str, pathlib.Attributes
TopicDataService.DEFAULT_CACHE_DIR
TopicDataService.get_data()
Retrieve data for a specific topic with optional filtering.
Parameters
topic_id strUnique identifier of the topic to retrieve data for.
message_paths_include Optional[collections.Dot notation paths to include in the results. If None, all paths are included.
message_paths_exclude Optional[collections.Dot notation paths to exclude from the results. If None, no paths are excluded.
start_time Optional[roboto.Start time (inclusive) for temporal filtering.
end_time Optional[roboto.End time (exclusive) for temporal filtering.
cache_dir_override Union[str, pathlib.Override the default cache directory for downloads.
representation_selector roboto.Criteria for selecting among multiple representations. Defaults to RepresentationSelector.raw().
Yields
Tuple of (timestamp, record) where timestamp is in nanoseconds since Unix epoch.
Return type
TopicDataService.get_data_as_df()
Retrieve data for a specific topic as a pandas DataFrame with optional filtering.
Parameters
topic_id strUnique identifier of the topic to retrieve data for.
message_paths_include Optional[collections.Dot notation paths to include in the results. If None, all paths are included.
message_paths_exclude Optional[collections.Dot notation paths to exclude from the results. If None, no paths are excluded.
start_time Optional[roboto.Start time (inclusive) for temporal filtering.
end_time Optional[roboto.End time (exclusive) for temporal filtering.
cache_dir_override Union[str, pathlib.Override the default cache directory for downloads.
representation_selector roboto.Criteria for selecting among multiple representations. Defaults to RepresentationSelector.raw().
Returns
pandas.DataFrame The index of the DataFrame (df.index) is a pandas.DateTimeIndex, labeling the timestamp of each row.
iterable_to_set()
Parameters
arg collections.Return type