:py:mod:`viam.gen.app.cloudslam.v1.cloud_slam_pb2` ================================================== .. py:module:: viam.gen.app.cloudslam.v1.cloud_slam_pb2 .. autoapi-nested-parse:: @generated by mypy-protobuf. Do not edit manually! isort:skip_file Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: viam.gen.app.cloudslam.v1.cloud_slam_pb2.EndStatus viam.gen.app.cloudslam.v1.cloud_slam_pb2.StartMappingSessionRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.Module viam.gen.app.cloudslam.v1.cloud_slam_pb2.SensorInfo viam.gen.app.cloudslam.v1.cloud_slam_pb2.CaptureInterval viam.gen.app.cloudslam.v1.cloud_slam_pb2.StartMappingSessionResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.GetActiveMappingSessionsForRobotRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.GetActiveMappingSessionsForRobotResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.GetMappingSessionPointCloudRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.GetMappingSessionPointCloudResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.ListMappingSessionsRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.ListMappingSessionsResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.StopMappingSessionRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.StopMappingSessionResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.GetMappingSessionMetadataByIDRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.GetMappingSessionMetadataByIDResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.MappingMetadata Attributes ~~~~~~~~~~ .. autoapisummary:: viam.gen.app.cloudslam.v1.cloud_slam_pb2.DESCRIPTOR viam.gen.app.cloudslam.v1.cloud_slam_pb2.END_STATUS_UNSPECIFIED viam.gen.app.cloudslam.v1.cloud_slam_pb2.END_STATUS_SUCCESS viam.gen.app.cloudslam.v1.cloud_slam_pb2.END_STATUS_TIMEOUT viam.gen.app.cloudslam.v1.cloud_slam_pb2.END_STATUS_FAIL viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___EndStatus viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___StartMappingSessionRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___Module viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___SensorInfo viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___CaptureInterval viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___StartMappingSessionResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___GetActiveMappingSessionsForRobotRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___GetActiveMappingSessionsForRobotResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___GetMappingSessionPointCloudRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___GetMappingSessionPointCloudResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___ListMappingSessionsRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___ListMappingSessionsResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___StopMappingSessionRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___StopMappingSessionResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___GetMappingSessionMetadataByIDRequest viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___GetMappingSessionMetadataByIDResponse viam.gen.app.cloudslam.v1.cloud_slam_pb2.global___MappingMetadata .. py:data:: DESCRIPTOR :type: google.protobuf.descriptor.FileDescriptor .. py:class:: EndStatus Bases: :py:obj:`_EndStatus` .. py:data:: END_STATUS_UNSPECIFIED :type: EndStatus .. py:data:: END_STATUS_SUCCESS :type: EndStatus .. py:data:: END_STATUS_TIMEOUT :type: EndStatus .. py:data:: END_STATUS_FAIL :type: EndStatus .. py:data:: global___EndStatus .. py:class:: StartMappingSessionRequest(*, slam_version: str = ..., viam_server_version: str = ..., map_name: str = ..., organization_id: str = ..., location_id: str = ..., robot_id: str = ..., capture_interval: global___CaptureInterval | None = ..., sensors: collections.abc.Iterable[global___SensorInfo] | None = ..., slam_config: google.protobuf.struct_pb2.Struct | None = ..., existing_map_version: str = ..., module: global___Module | None = ...) Bases: :py:obj:`google.protobuf.message.Message` StartMappingSession .. py:property:: capture_interval :type: global___CaptureInterval .. py:property:: sensors :type: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SensorInfo] .. py:property:: slam_config :type: google.protobuf.struct_pb2.Struct .. py:property:: module :type: global___Module .. py:attribute:: slam_version :type: str Version to use for slam, defaults stable .. py:attribute:: viam_server_version :type: str Version to use for viam, defaults stable .. py:attribute:: map_name :type: str .. py:attribute:: organization_id :type: str .. py:attribute:: location_id :type: str .. py:attribute:: robot_id :type: str .. py:attribute:: existing_map_version :type: str .. py:method:: HasField(field_name: Literal[capture_interval, b'capture_interval', module, b'module', slam_config, b'slam_config']) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:data:: global___StartMappingSessionRequest .. py:class:: Module(*, name: str = ..., module_id: str = ..., version: str = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:attribute:: name :type: str .. py:attribute:: module_id :type: str .. py:attribute:: version :type: str .. py:data:: global___Module .. py:class:: SensorInfo(*, source_component_name: str = ..., type: str = ..., data_frequency_hz: str = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:attribute:: source_component_name :type: str .. py:attribute:: type :type: str type is the RDK component type .. py:attribute:: data_frequency_hz :type: str .. py:data:: global___SensorInfo .. py:class:: CaptureInterval(*, start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., end_time: google.protobuf.timestamp_pb2.Timestamp | None = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:property:: start_time :type: google.protobuf.timestamp_pb2.Timestamp .. py:property:: end_time :type: google.protobuf.timestamp_pb2.Timestamp if no end_time specified cloud slam will be run using live sensors .. py:method:: HasField(field_name: Literal[end_time, b'end_time', start_time, b'start_time']) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:data:: global___CaptureInterval .. py:class:: StartMappingSessionResponse(*, session_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:attribute:: session_id :type: str .. py:data:: global___StartMappingSessionResponse .. py:class:: GetActiveMappingSessionsForRobotRequest(*, robot_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` GetActiveMappingSessionsForRobot .. py:attribute:: robot_id :type: str assumes only one active mapping session on a robot .. py:data:: global___GetActiveMappingSessionsForRobotRequest .. py:class:: GetActiveMappingSessionsForRobotResponse(*, session_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:attribute:: session_id :type: str .. py:data:: global___GetActiveMappingSessionsForRobotResponse .. py:class:: GetMappingSessionPointCloudRequest(*, session_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` GetMappingSessionPointCloud .. py:attribute:: session_id :type: str .. py:data:: global___GetMappingSessionPointCloudRequest .. py:class:: GetMappingSessionPointCloudResponse(*, map_url: str = ..., pose: viam.gen.common.v1.common_pb2.Pose | None = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:property:: pose :type: viam.gen.common.v1.common_pb2.Pose Current position within the SLAM Map .. py:attribute:: map_url :type: str url to the pointcloud map .. py:method:: HasField(field_name: Literal[pose, b'pose']) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:data:: global___GetMappingSessionPointCloudResponse .. py:class:: ListMappingSessionsRequest(*, organization_id: str = ..., location_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` ListMappingSessions .. py:attribute:: organization_id :type: str .. py:attribute:: location_id :type: str .. py:data:: global___ListMappingSessionsRequest .. py:class:: ListMappingSessionsResponse(*, session: collections.abc.Iterable[global___MappingMetadata] | None = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:property:: session :type: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MappingMetadata] .. py:data:: global___ListMappingSessionsResponse .. py:class:: StopMappingSessionRequest(*, session_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` StopMappingSession .. py:attribute:: session_id :type: str .. py:data:: global___StopMappingSessionRequest .. py:class:: StopMappingSessionResponse(*, package_id: str = ..., version: str = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:attribute:: package_id :type: str .. py:attribute:: version :type: str .. py:data:: global___StopMappingSessionResponse .. py:class:: GetMappingSessionMetadataByIDRequest(*, session_id: str = ...) Bases: :py:obj:`google.protobuf.message.Message` GetMappingSessionMetadataByID .. py:attribute:: session_id :type: str .. py:data:: global___GetMappingSessionMetadataByIDRequest .. py:class:: GetMappingSessionMetadataByIDResponse(*, session_metadata: global___MappingMetadata | None = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:property:: session_metadata :type: global___MappingMetadata .. py:method:: HasField(field_name: Literal[session_metadata, b'session_metadata']) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:data:: global___GetMappingSessionMetadataByIDResponse .. py:class:: MappingMetadata(*, org_id: str = ..., location_id: str = ..., robot_id: str = ..., time_start_submitted: google.protobuf.timestamp_pb2.Timestamp | None = ..., time_cloud_run_job_started: google.protobuf.timestamp_pb2.Timestamp | None = ..., time_end_submitted: google.protobuf.timestamp_pb2.Timestamp | None = ..., time_cloud_run_job_ended: google.protobuf.timestamp_pb2.Timestamp | None = ..., end_status: global___EndStatus = ..., cloud_run_job_id: str = ..., viam_server_version: str = ..., map_name: str = ..., slam_version: str = ..., config: str = ..., error_msg: str = ...) Bases: :py:obj:`google.protobuf.message.Message` Abstract base class for protocol messages. Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below. .. py:property:: time_start_submitted :type: google.protobuf.timestamp_pb2.Timestamp time this document was created .. py:property:: time_cloud_run_job_started :type: google.protobuf.timestamp_pb2.Timestamp time the cloud run job started .. py:property:: time_end_submitted :type: google.protobuf.timestamp_pb2.Timestamp time StopSlamSession was called .. py:property:: time_cloud_run_job_ended :type: google.protobuf.timestamp_pb2.Timestamp time the cloud run job ended .. py:attribute:: org_id :type: str org associated with the slam session .. py:attribute:: location_id :type: str location associated with the slam session .. py:attribute:: robot_id :type: str robot associated with slam session .. py:attribute:: end_status :type: global___EndStatus enums that represent “success”, “failed”, etc .. py:attribute:: cloud_run_job_id :type: str initially unset .. py:attribute:: viam_server_version :type: str version tag from request, defaults to stable .. py:attribute:: map_name :type: str name of the map package .. py:attribute:: slam_version :type: str version tag from request, defaults to stable .. py:attribute:: config :type: str a robot config for a slam session .. py:attribute:: error_msg :type: str additional details on the end status if needed, such as errors .. py:method:: HasField(field_name: Literal[time_cloud_run_job_ended, b'time_cloud_run_job_ended', time_cloud_run_job_started, b'time_cloud_run_job_started', time_end_submitted, b'time_end_submitted', time_start_submitted, b'time_start_submitted']) -> bool Checks if a certain field is set for the message. For a oneof group, checks if any field inside is set. Note that if the field_name is not defined in the message descriptor, :exc:`ValueError` will be raised. :param field_name: The name of the field to check for presence. :type field_name: str :returns: Whether a value has been set for the named field. :rtype: bool :raises ValueError: if the `field_name` is not a member of this message. .. py:data:: global___MappingMetadata