---
sidebar:
  label: roboto.domain.topics
  order: 14
title: roboto.domain.topics
---
Topics: sequences of structured time-series data, called messages, linked to a source file.

Use [`Topic`](/docs/reference/python-sdk/roboto/domain/topics#roboto.domain.topics.Topic) to find a file's or dataset's topics and read their messages, [`MessagePath`](/docs/reference/python-sdk/roboto/domain/topics#roboto.domain.topics.MessagePath) to read the data of one field within those messages, and `TopicSchema` to look up the fields that make up a topic's messages.

## Submodules

- [roboto.domain.topics.mcap_topic_reader](/docs/reference/python-sdk/roboto/domain/topics/mcap_topic_reader)
- [roboto.domain.topics.message_path](/docs/reference/python-sdk/roboto/domain/topics/message_path)
- [roboto.domain.topics.operations](/docs/reference/python-sdk/roboto/domain/topics/operations)
- [roboto.domain.topics.parquet](/docs/reference/python-sdk/roboto/domain/topics/parquet)
- [roboto.domain.topics.record](/docs/reference/python-sdk/roboto/domain/topics/record)
- [roboto.domain.topics.topic](/docs/reference/python-sdk/roboto/domain/topics/topic)
- [roboto.domain.topics.topic_data_service](/docs/reference/python-sdk/roboto/domain/topics/topic_data_service)
- [roboto.domain.topics.topic_reader](/docs/reference/python-sdk/roboto/domain/topics/topic_reader)
- [roboto.domain.topics.topic_schema](/docs/reference/python-sdk/roboto/domain/topics/topic_schema)

## Package Contents

- [AddMessagePathRepresentationRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.AddMessagePathRepresentationRequest) (class): Request body for [`add_message_path_representation()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.add_message_path_representation).

- [AddMessagePathRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.AddMessagePathRequest) (class): Request body for [`add_message_path()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.add_message_path).

- [CanonicalDataType](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.CanonicalDataType) (class): Framework-independent data type of a message path, which Roboto uses to choose how to display its data.

- [CreateTopicRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.CreateTopicRequest) (class): Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.create), which registers a topic found in a file.

- [DeleteMessagePathRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.DeleteMessagePathRequest) (class): One message path to delete from a topic.

- [MessagePath](/docs/reference/python-sdk/roboto/domain/topics/message_path#roboto.domain.topics.message_path.MessagePath) (class): A message path: one field or signal of a topic's messages, such as `"pose.position.x"`.

- [MessagePathChangeset](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.MessagePathChangeset) (class): Message paths to add, update, and delete on a topic, passed to [`update()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.update).

- [MessagePathMetadataWellKnown](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.MessagePathMetadataWellKnown) (class): Metadata key that Roboto gives a meaning to in `MessagePathRecord.metadata`.

- [MessagePathRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.MessagePathRecord) (class): Data record of a message path, as the Roboto API returns it.

- [MessagePathRepresentationMapping](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.MessagePathRepresentationMapping) (class): Item of the response body of `GET /v1/topics/id/{topic_id}/message-path/representations`.

- [MessagePathStatistic](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.MessagePathStatistic) (class): Statistic that Roboto's ingestion actions compute for a message path, keyed by this value in its metadata.

- [RepresentationRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.RepresentationRecord) (class): Data record of a representation, as the Roboto API returns it.

- [RepresentationSelector](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.RepresentationSelector) (class): Criteria for choosing which of a message path's representations to read.

- [RepresentationStorageFormat](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.RepresentationStorageFormat) (class): File format that a representation's data is stored in.

- [SchemaFieldRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.SchemaFieldRecord) (class): Field of a topic schema.

- [SetDefaultRepresentationRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.SetDefaultRepresentationRequest) (class): Request body for [`set_default_representation()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.set_default_representation).

- [SetTimelineOffsetsRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.SetTimelineOffsetsRequest) (class): Request body for `File.set_timeline_offsets`.

- [TimelineExtentRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TimelineExtentRecord) (class): Smallest and largest timestamps of one topic partition, as one timeline source measures them.

- [TimelineOffsetEntry](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.TimelineOffsetEntry) (class): One offset to apply to a file's timelines.

- [TimelineSourceKind](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TimelineSourceKind) (type alias): `type TimelineSourceKind = typing.Literal['schema_field', 'message_log_time', 'message_publish_time']`. Where a `TimelineSourceRecord` takes its timestamps from.

- [TimelineSourceRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TimelineSourceRecord) (class): Source of timestamps registered for a schema.

- [TimelineSourceUpdate](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.TimelineSourceUpdate) (class): Request body for `PUT /v2/topics/schema/id/{schema_id}/timeline-sources/{timeline_source_id}`.

- [Timestamp](/docs/reference/python-sdk/roboto/domain/topics/topic_reader#roboto.domain.topics.topic_reader.Timestamp) (type alias): `type Timestamp = typing.Union[int, float]`. Time of a topic message, in nanoseconds since the Unix epoch.

- [Topic](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic) (class): A topic: a sequence of structured time-series data, called messages, linked to a source file.

- [TopicDataService](/docs/reference/python-sdk/roboto/domain/topics/topic_data_service#roboto.domain.topics.topic_data_service.TopicDataService) (class): Reader of topic data for the `get_data` and `get_data_as_df` methods of topics, message paths and events.

- [TopicIdentityRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TopicIdentityRecord) (class): Identity of a topic across files.

- [TopicPartitionRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TopicPartitionRecord) (class): One file's data for a topic.

- [TopicRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TopicRecord) (class): Data record of a topic, as the Roboto API returns it.

- [TopicSchema](/docs/reference/python-sdk/roboto/domain/topics/topic_schema#roboto.domain.topics.topic_schema.TopicSchema) (class): A topic schema: the fields that make up a topic's messages, each with its path and data type.

- [TopicSchemaRecord](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TopicSchemaRecord) (class): Topic schema, identified by its fields.

- [TopicTimeBounds](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TopicTimeBounds) (class): Response body of [`get_topic_time_bounds()`](/docs/reference/python-sdk/roboto/domain/datasets/dataset#roboto.domain.datasets.dataset.Dataset.get_topic_time_bounds).

- [TransformationKind](/docs/reference/python-sdk/roboto/domain/topics/record#roboto.domain.topics.record.TransformationKind) (class): Kind of transformation applied to a topic's data to produce a representation of it.

- [UpdateMessagePathRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.UpdateMessagePathRequest) (class): Request body for [`update_message_path()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.update_message_path).

- [UpdateTopicRequest](/docs/reference/python-sdk/roboto/domain/topics/operations#roboto.domain.topics.operations.UpdateTopicRequest) (class): Request body for [`update()`](/docs/reference/python-sdk/roboto/domain/topics/topic#roboto.domain.topics.topic.Topic.update).
