viam-sdk 0.41.1__py3-none-linux_armv6l.whl → 0.66.0__py3-none-linux_armv6l.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of viam-sdk might be problematic. Click here for more details.
- viam/app/app_client.py +225 -51
- viam/app/billing_client.py +47 -5
- viam/app/data_client.py +771 -234
- viam/app/ml_training_client.py +3 -5
- viam/app/provisioning_client.py +3 -5
- viam/app/viam_client.py +58 -11
- viam/components/arm/arm.py +1 -1
- viam/components/arm/service.py +1 -1
- viam/components/audio_in/__init__.py +24 -0
- viam/components/audio_in/audio_in.py +74 -0
- viam/components/audio_in/client.py +76 -0
- viam/components/audio_in/service.py +83 -0
- viam/components/audio_out/__init__.py +21 -0
- viam/components/audio_out/audio_out.py +72 -0
- viam/components/audio_out/client.py +67 -0
- viam/components/audio_out/service.py +63 -0
- viam/components/base/base.py +1 -1
- viam/components/board/board.py +8 -2
- viam/components/board/client.py +2 -1
- viam/components/board/service.py +1 -0
- viam/components/button/__init__.py +10 -0
- viam/components/button/button.py +41 -0
- viam/components/button/client.py +52 -0
- viam/components/button/service.py +46 -0
- viam/components/camera/camera.py +15 -30
- viam/components/camera/client.py +10 -21
- viam/components/camera/service.py +15 -28
- viam/components/component_base.py +2 -2
- viam/components/gantry/client.py +17 -2
- viam/components/gantry/gantry.py +32 -1
- viam/components/gantry/service.py +21 -5
- viam/components/gripper/__init__.py +2 -0
- viam/components/gripper/client.py +25 -2
- viam/components/gripper/gripper.py +76 -1
- viam/components/gripper/service.py +32 -3
- viam/components/input/input.py +1 -1
- viam/components/motor/motor.py +1 -1
- viam/components/power_sensor/power_sensor.py +1 -1
- viam/components/switch/__init__.py +10 -0
- viam/components/switch/client.py +83 -0
- viam/components/switch/service.py +72 -0
- viam/components/switch/switch.py +98 -0
- viam/gen/app/agent/v1/agent_pb2.py +1 -1
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +1 -1
- viam/gen/app/data/v1/data_grpc.py +74 -2
- viam/gen/app/data/v1/data_pb2.py +198 -104
- viam/gen/app/data/v1/data_pb2.pyi +563 -31
- viam/gen/app/datapipelines/__init__.py +0 -0
- viam/gen/app/datapipelines/v1/__init__.py +0 -0
- viam/gen/app/datapipelines/v1/data_pipelines_grpc.py +84 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.py +57 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +387 -0
- viam/gen/app/dataset/v1/dataset_grpc.py +10 -2
- viam/gen/app/dataset/v1/dataset_pb2.py +8 -4
- viam/gen/app/dataset/v1/dataset_pb2.pyi +36 -1
- viam/gen/app/datasync/v1/data_sync_pb2.py +39 -35
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +21 -8
- viam/gen/app/mlinference/v1/ml_inference_pb2.py +7 -7
- viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +4 -2
- viam/gen/app/mltraining/v1/ml_training_grpc.py +10 -2
- viam/gen/app/mltraining/v1/ml_training_pb2.py +63 -43
- viam/gen/app/mltraining/v1/ml_training_pb2.pyi +112 -7
- viam/gen/app/packages/v1/packages_pb2.py +1 -1
- viam/gen/app/v1/app_grpc.py +74 -3
- viam/gen/app/v1/app_pb2.py +600 -545
- viam/gen/app/v1/app_pb2.pyi +1108 -258
- viam/gen/app/v1/billing_grpc.py +26 -2
- viam/gen/app/v1/billing_pb2.py +52 -36
- viam/gen/app/v1/billing_pb2.pyi +158 -4
- viam/gen/app/v1/end_user_pb2.py +1 -1
- viam/gen/app/v1/robot_pb2.py +95 -89
- viam/gen/app/v1/robot_pb2.pyi +121 -9
- viam/gen/common/v1/common_pb2.py +76 -58
- viam/gen/common/v1/common_pb2.pyi +186 -17
- viam/gen/component/arm/v1/arm_grpc.py +10 -2
- viam/gen/component/arm/v1/arm_pb2.py +5 -3
- viam/gen/component/audioin/__init__.py +0 -0
- viam/gen/component/audioin/v1/__init__.py +0 -0
- viam/gen/component/audioin/v1/audioin_grpc.py +54 -0
- viam/gen/component/audioin/v1/audioin_pb2.py +34 -0
- viam/gen/component/audioin/v1/audioin_pb2.pyi +94 -0
- viam/gen/component/audioinput/v1/audioinput_pb2.py +1 -1
- viam/gen/component/audioout/__init__.py +0 -0
- viam/gen/component/audioout/v1/__init__.py +0 -0
- viam/gen/component/audioout/v1/audioout_grpc.py +54 -0
- viam/gen/component/audioout/v1/audioout_pb2.py +32 -0
- viam/gen/component/audioout/v1/audioout_pb2.pyi +47 -0
- viam/gen/component/base/v1/base_pb2.py +1 -1
- viam/gen/component/board/v1/board_pb2.py +1 -1
- viam/gen/component/button/v1/button_pb2.py +1 -1
- viam/gen/component/camera/v1/camera_grpc.py +1 -0
- viam/gen/component/camera/v1/camera_pb2.py +37 -36
- viam/gen/component/camera/v1/camera_pb2.pyi +31 -4
- viam/gen/component/encoder/v1/encoder_pb2.py +1 -1
- viam/gen/component/gantry/v1/gantry_grpc.py +9 -1
- viam/gen/component/gantry/v1/gantry_pb2.py +5 -3
- viam/gen/component/generic/v1/generic_pb2.py +1 -1
- viam/gen/component/gripper/v1/gripper_grpc.py +18 -2
- viam/gen/component/gripper/v1/gripper_pb2.py +12 -4
- viam/gen/component/gripper/v1/gripper_pb2.pyi +43 -1
- viam/gen/component/inputcontroller/v1/input_controller_pb2.py +1 -1
- viam/gen/component/motor/v1/motor_pb2.py +1 -1
- viam/gen/component/movementsensor/v1/movementsensor_pb2.py +1 -1
- viam/gen/component/posetracker/v1/pose_tracker_pb2.py +1 -1
- viam/gen/component/powersensor/v1/powersensor_pb2.py +1 -1
- viam/gen/component/sensor/v1/sensor_pb2.py +1 -1
- viam/gen/component/servo/v1/servo_pb2.py +1 -1
- viam/gen/component/switch/v1/switch_pb2.py +5 -5
- viam/gen/component/switch/v1/switch_pb2.pyi +9 -2
- viam/gen/component/testecho/v1/testecho_pb2.py +1 -1
- viam/gen/module/v1/module_pb2.py +5 -5
- viam/gen/module/v1/module_pb2.pyi +7 -2
- viam/gen/opentelemetry/__init__.py +0 -0
- viam/gen/opentelemetry/proto/__init__.py +0 -0
- viam/gen/opentelemetry/proto/common/__init__.py +0 -0
- viam/gen/opentelemetry/proto/common/v1/__init__.py +0 -0
- viam/gen/opentelemetry/proto/common/v1/common_grpc.py +0 -0
- viam/gen/opentelemetry/proto/common/v1/common_pb2.py +27 -0
- viam/gen/opentelemetry/proto/common/v1/common_pb2.pyi +208 -0
- viam/gen/opentelemetry/proto/resource/__init__.py +0 -0
- viam/gen/opentelemetry/proto/resource/v1/__init__.py +0 -0
- viam/gen/opentelemetry/proto/resource/v1/resource_grpc.py +0 -0
- viam/gen/opentelemetry/proto/resource/v1/resource_pb2.py +18 -0
- viam/gen/opentelemetry/proto/resource/v1/resource_pb2.pyi +59 -0
- viam/gen/opentelemetry/proto/trace/__init__.py +0 -0
- viam/gen/opentelemetry/proto/trace/v1/__init__.py +0 -0
- viam/gen/opentelemetry/proto/trace/v1/trace_grpc.py +0 -0
- viam/gen/opentelemetry/proto/trace/v1/trace_pb2.py +37 -0
- viam/gen/opentelemetry/proto/trace/v1/trace_pb2.pyi +402 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +1 -1
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +1 -1
- viam/gen/proto/rpc/v1/auth_pb2.py +1 -1
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +1 -1
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +1 -1
- viam/gen/provisioning/v1/provisioning_grpc.py +10 -2
- viam/gen/provisioning/v1/provisioning_pb2.py +32 -26
- viam/gen/provisioning/v1/provisioning_pb2.pyi +46 -5
- viam/gen/robot/v1/robot_grpc.py +51 -34
- viam/gen/robot/v1/robot_pb2.py +147 -142
- viam/gen/robot/v1/robot_pb2.pyi +153 -86
- viam/gen/service/datamanager/v1/data_manager_grpc.py +11 -2
- viam/gen/service/datamanager/v1/data_manager_pb2.py +15 -8
- viam/gen/service/datamanager/v1/data_manager_pb2.pyi +47 -1
- viam/gen/service/discovery/v1/discovery_pb2.py +1 -1
- viam/gen/service/generic/v1/generic_pb2.py +1 -1
- viam/gen/service/mlmodel/v1/mlmodel_pb2.py +1 -1
- viam/gen/service/motion/v1/motion_pb2.py +92 -62
- viam/gen/service/motion/v1/motion_pb2.pyi +130 -68
- viam/gen/service/navigation/v1/navigation_pb2.py +1 -1
- viam/gen/service/sensors/v1/sensors_pb2.py +1 -1
- viam/gen/service/shell/v1/shell_pb2.py +1 -1
- viam/gen/service/slam/v1/slam_pb2.py +1 -1
- viam/gen/service/slam/v1/slam_pb2.pyi +1 -1
- viam/gen/service/video/__init__.py +0 -0
- viam/gen/service/video/v1/__init__.py +0 -0
- viam/gen/service/video/v1/video_grpc.py +39 -0
- viam/gen/service/video/v1/video_pb2.py +29 -0
- viam/gen/service/video/v1/video_pb2.pyi +72 -0
- viam/gen/service/vision/v1/vision_pb2.py +27 -27
- viam/gen/service/vision/v1/vision_pb2.pyi +28 -3
- viam/gen/service/worldstatestore/__init__.py +0 -0
- viam/gen/service/worldstatestore/v1/__init__.py +0 -0
- viam/gen/service/worldstatestore/v1/world_state_store_grpc.py +55 -0
- viam/gen/service/worldstatestore/v1/world_state_store_pb2.py +39 -0
- viam/gen/service/worldstatestore/v1/world_state_store_pb2.pyi +171 -0
- viam/gen/stream/v1/stream_pb2.py +1 -1
- viam/gen/tagger/v1/tagger_pb2.py +1 -1
- viam/logging.py +9 -8
- viam/media/audio.py +22 -10
- viam/media/utils/pil/__init__.py +5 -1
- viam/media/video.py +54 -40
- viam/module/module.py +85 -16
- viam/module/resource_data_consumer.py +41 -0
- viam/module/service.py +9 -1
- viam/proto/app/__init__.py +68 -0
- viam/proto/app/billing.py +16 -0
- viam/proto/app/data/__init__.py +48 -0
- viam/proto/app/datapipelines/__init__.py +56 -0
- viam/proto/app/dataset/__init__.py +4 -0
- viam/proto/app/mltraining/__init__.py +6 -0
- viam/proto/app/robot.py +6 -0
- viam/proto/common/__init__.py +14 -0
- viam/proto/component/audioin/__init__.py +16 -0
- viam/proto/component/audioout/__init__.py +15 -0
- viam/proto/component/camera/__init__.py +0 -2
- viam/proto/component/gripper/__init__.py +4 -0
- viam/proto/opentelemetry/__init__.py +0 -0
- viam/proto/opentelemetry/proto/__init__.py +0 -0
- viam/proto/opentelemetry/proto/common/__init__.py +15 -0
- viam/proto/opentelemetry/proto/resource/__init__.py +10 -0
- viam/proto/opentelemetry/proto/trace/__init__.py +15 -0
- viam/proto/provisioning/__init__.py +6 -0
- viam/proto/robot/__init__.py +16 -8
- viam/proto/service/datamanager/__init__.py +8 -1
- viam/proto/service/motion/__init__.py +2 -0
- viam/proto/service/video/__init__.py +15 -0
- viam/proto/service/worldstatestore/__init__.py +32 -0
- viam/resource/easy_resource.py +5 -9
- viam/resource/manager.py +4 -3
- viam/resource/registry.py +2 -2
- viam/resource/types.py +2 -2
- viam/robot/client.py +38 -59
- viam/rpc/dial.py +48 -5
- viam/rpc/libviam_rust_utils.so +0 -0
- viam/rpc/server.py +24 -10
- viam/services/motion/client.py +8 -9
- viam/services/motion/motion.py +48 -46
- viam/services/navigation/navigation.py +2 -2
- viam/services/vision/client.py +1 -1
- viam/services/vision/service.py +5 -8
- viam/services/vision/vision.py +5 -3
- viam/services/worldstatestore/__init__.py +18 -0
- viam/services/worldstatestore/client.py +94 -0
- viam/services/worldstatestore/service.py +55 -0
- viam/services/worldstatestore/worldstatestore.py +90 -0
- viam/sessions_client.py +115 -46
- viam/version_metadata.py +2 -2
- {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/METADATA +10 -6
- {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/RECORD +221 -152
- {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/WHEEL +1 -1
- viam/components/audio_input/__init__.py +0 -18
- viam/components/audio_input/audio_input.py +0 -81
- viam/components/audio_input/client.py +0 -70
- viam/components/audio_input/service.py +0 -114
- {viam_sdk-0.41.1.dist-info → viam_sdk-0.66.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Generated protocol buffer code."""
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/audioin/v1/audioin.proto')
|
|
8
|
+
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n"component/audioin/v1/audioin.proto\x12\x19viam.component.audioin.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"\xfa\x01\n\x0fGetAudioRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x10duration_seconds\x18\x02 \x01(\x02R\x0fdurationSeconds\x12\x14\n\x05codec\x18\x03 \x01(\tR\x05codec\x12\x1d\n\nrequest_id\x18\x04 \x01(\tR\trequestId\x12D\n\x1eprevious_timestamp_nanoseconds\x18\x05 \x01(\x03R\x1cpreviousTimestampNanoseconds\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"n\n\x10GetAudioResponse\x12;\n\x05audio\x18\x01 \x01(\x0b2%.viam.component.audioin.v1.AudioChunkR\x05audio\x12\x1d\n\nrequest_id\x18\x02 \x01(\tR\trequestId"\xfd\x01\n\nAudioChunk\x12\x1d\n\naudio_data\x18\x01 \x01(\x0cR\taudioData\x128\n\naudio_info\x18\x02 \x01(\x0b2\x19.viam.common.v1.AudioInfoR\taudioInfo\x12>\n\x1bstart_timestamp_nanoseconds\x18\x03 \x01(\x03R\x19startTimestampNanoseconds\x12:\n\x19end_timestamp_nanoseconds\x18\x04 \x01(\x03R\x17endTimestampNanoseconds\x12\x1a\n\x08sequence\x18\x05 \x01(\x05R\x08sequence2\xee\x04\n\x0eAudioInService\x12\x9e\x01\n\x08GetAudio\x12*.viam.component.audioin.v1.GetAudioRequest\x1a+.viam.component.audioin.v1.GetAudioResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/audioin/{name}/get_audio0\x01\x12\x96\x01\n\rGetProperties\x12$.viam.common.v1.GetPropertiesRequest\x1a%.viam.common.v1.GetPropertiesResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/audioin/{name}/properties\x12\x88\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"6\x82\xd3\xe4\x93\x020"./viam/api/v1/service/audioin/{name}/do_command\x12\x96\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/audioin/{name}/geometriesBE\n\x1dcom.viam.component.audioin.v1Z$go.viam.com/api/component/audioin/v1b\x06proto3')
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.audioin.v1.audioin_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1dcom.viam.component.audioin.v1Z$go.viam.com/api/component/audioin/v1'
|
|
19
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['GetAudio']._loaded_options = None
|
|
20
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['GetAudio']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/audioin/{name}/get_audio'
|
|
21
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['GetProperties']._loaded_options = None
|
|
22
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['GetProperties']._serialized_options = b'\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/audioin/{name}/properties'
|
|
23
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
24
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x020"./viam/api/v1/service/audioin/{name}/do_command'
|
|
25
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
26
|
+
_globals['_AUDIOINSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/audioin/{name}/geometries'
|
|
27
|
+
_globals['_GETAUDIOREQUEST']._serialized_start = 150
|
|
28
|
+
_globals['_GETAUDIOREQUEST']._serialized_end = 400
|
|
29
|
+
_globals['_GETAUDIORESPONSE']._serialized_start = 402
|
|
30
|
+
_globals['_GETAUDIORESPONSE']._serialized_end = 512
|
|
31
|
+
_globals['_AUDIOCHUNK']._serialized_start = 515
|
|
32
|
+
_globals['_AUDIOCHUNK']._serialized_end = 768
|
|
33
|
+
_globals['_AUDIOINSERVICE']._serialized_start = 771
|
|
34
|
+
_globals['_AUDIOINSERVICE']._serialized_end = 1393
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import builtins
|
|
6
|
+
from .... import common
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import google.protobuf.struct_pb2
|
|
10
|
+
import typing
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class GetAudioRequest(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
17
|
+
DURATION_SECONDS_FIELD_NUMBER: builtins.int
|
|
18
|
+
CODEC_FIELD_NUMBER: builtins.int
|
|
19
|
+
REQUEST_ID_FIELD_NUMBER: builtins.int
|
|
20
|
+
PREVIOUS_TIMESTAMP_NANOSECONDS_FIELD_NUMBER: builtins.int
|
|
21
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
22
|
+
name: builtins.str
|
|
23
|
+
duration_seconds: builtins.float
|
|
24
|
+
'Desired duration of audio stream\n If not set or set to 0, the stream is infinite\n '
|
|
25
|
+
codec: builtins.str
|
|
26
|
+
'Requested audio codec for the response (e.g., "mp3", "pcm16")'
|
|
27
|
+
request_id: builtins.str
|
|
28
|
+
"To match a request to it's responses"
|
|
29
|
+
previous_timestamp_nanoseconds: builtins.int
|
|
30
|
+
'Timestamp of the previous audio chunk, in nanoseconds, used for resuming and continuity.'
|
|
31
|
+
|
|
32
|
+
@property
|
|
33
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
34
|
+
...
|
|
35
|
+
|
|
36
|
+
def __init__(self, *, name: builtins.str=..., duration_seconds: builtins.float=..., codec: builtins.str=..., request_id: builtins.str=..., previous_timestamp_nanoseconds: builtins.int=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
37
|
+
...
|
|
38
|
+
|
|
39
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
40
|
+
...
|
|
41
|
+
|
|
42
|
+
def ClearField(self, field_name: typing.Literal['codec', b'codec', 'duration_seconds', b'duration_seconds', 'extra', b'extra', 'name', b'name', 'previous_timestamp_nanoseconds', b'previous_timestamp_nanoseconds', 'request_id', b'request_id']) -> None:
|
|
43
|
+
...
|
|
44
|
+
global___GetAudioRequest = GetAudioRequest
|
|
45
|
+
|
|
46
|
+
@typing.final
|
|
47
|
+
class GetAudioResponse(google.protobuf.message.Message):
|
|
48
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
49
|
+
AUDIO_FIELD_NUMBER: builtins.int
|
|
50
|
+
REQUEST_ID_FIELD_NUMBER: builtins.int
|
|
51
|
+
request_id: builtins.str
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def audio(self) -> global___AudioChunk:
|
|
55
|
+
...
|
|
56
|
+
|
|
57
|
+
def __init__(self, *, audio: global___AudioChunk | None=..., request_id: builtins.str=...) -> None:
|
|
58
|
+
...
|
|
59
|
+
|
|
60
|
+
def HasField(self, field_name: typing.Literal['audio', b'audio']) -> builtins.bool:
|
|
61
|
+
...
|
|
62
|
+
|
|
63
|
+
def ClearField(self, field_name: typing.Literal['audio', b'audio', 'request_id', b'request_id']) -> None:
|
|
64
|
+
...
|
|
65
|
+
global___GetAudioResponse = GetAudioResponse
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class AudioChunk(google.protobuf.message.Message):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
|
+
AUDIO_DATA_FIELD_NUMBER: builtins.int
|
|
71
|
+
AUDIO_INFO_FIELD_NUMBER: builtins.int
|
|
72
|
+
START_TIMESTAMP_NANOSECONDS_FIELD_NUMBER: builtins.int
|
|
73
|
+
END_TIMESTAMP_NANOSECONDS_FIELD_NUMBER: builtins.int
|
|
74
|
+
SEQUENCE_FIELD_NUMBER: builtins.int
|
|
75
|
+
audio_data: builtins.bytes
|
|
76
|
+
'Audio data for this chunk, encoded according to the requested codec.'
|
|
77
|
+
start_timestamp_nanoseconds: builtins.int
|
|
78
|
+
end_timestamp_nanoseconds: builtins.int
|
|
79
|
+
sequence: builtins.int
|
|
80
|
+
'Sequential chunk number'
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def audio_info(self) -> common.v1.common_pb2.AudioInfo:
|
|
84
|
+
"""Info about the audio stream for this chunk"""
|
|
85
|
+
|
|
86
|
+
def __init__(self, *, audio_data: builtins.bytes=..., audio_info: common.v1.common_pb2.AudioInfo | None=..., start_timestamp_nanoseconds: builtins.int=..., end_timestamp_nanoseconds: builtins.int=..., sequence: builtins.int=...) -> None:
|
|
87
|
+
...
|
|
88
|
+
|
|
89
|
+
def HasField(self, field_name: typing.Literal['audio_info', b'audio_info']) -> builtins.bool:
|
|
90
|
+
...
|
|
91
|
+
|
|
92
|
+
def ClearField(self, field_name: typing.Literal['audio_data', b'audio_data', 'audio_info', b'audio_info', 'end_timestamp_nanoseconds', b'end_timestamp_nanoseconds', 'sequence', b'sequence', 'start_timestamp_nanoseconds', b'start_timestamp_nanoseconds']) -> None:
|
|
93
|
+
...
|
|
94
|
+
global___AudioChunk = AudioChunk
|
|
@@ -4,7 +4,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/audioinput/v1/audioinput.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import typing
|
|
3
|
+
import grpclib.const
|
|
4
|
+
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
import grpclib.server
|
|
8
|
+
from .... import common
|
|
9
|
+
import google.api.annotations_pb2
|
|
10
|
+
import google.protobuf.struct_pb2
|
|
11
|
+
from .... import component
|
|
12
|
+
|
|
13
|
+
class AudioOutServiceBase(abc.ABC):
|
|
14
|
+
|
|
15
|
+
@abc.abstractmethod
|
|
16
|
+
async def Play(self, stream: 'grpclib.server.Stream[component.audioout.v1.audioout_pb2.PlayRequest, component.audioout.v1.audioout_pb2.PlayResponse]') -> None:
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
@abc.abstractmethod
|
|
20
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetPropertiesRequest, common.v1.common_pb2.GetPropertiesResponse]') -> None:
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
@abc.abstractmethod
|
|
24
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
32
|
+
return {'/viam.component.audioout.v1.AudioOutService/Play': grpclib.const.Handler(self.Play, grpclib.const.Cardinality.UNARY_UNARY, component.audioout.v1.audioout_pb2.PlayRequest, component.audioout.v1.audioout_pb2.PlayResponse), '/viam.component.audioout.v1.AudioOutService/GetProperties': grpclib.const.Handler(self.GetProperties, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetPropertiesRequest, common.v1.common_pb2.GetPropertiesResponse), '/viam.component.audioout.v1.AudioOutService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.audioout.v1.AudioOutService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
33
|
+
|
|
34
|
+
class UnimplementedAudioOutServiceBase(AudioOutServiceBase):
|
|
35
|
+
|
|
36
|
+
async def Play(self, stream: 'grpclib.server.Stream[component.audioout.v1.audioout_pb2.PlayRequest, component.audioout.v1.audioout_pb2.PlayResponse]') -> None:
|
|
37
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
38
|
+
|
|
39
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetPropertiesRequest, common.v1.common_pb2.GetPropertiesResponse]') -> None:
|
|
40
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
41
|
+
|
|
42
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
43
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
44
|
+
|
|
45
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
46
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
47
|
+
|
|
48
|
+
class AudioOutServiceStub:
|
|
49
|
+
|
|
50
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
51
|
+
self.Play = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioout.v1.AudioOutService/Play', component.audioout.v1.audioout_pb2.PlayRequest, component.audioout.v1.audioout_pb2.PlayResponse)
|
|
52
|
+
self.GetProperties = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioout.v1.AudioOutService/GetProperties', common.v1.common_pb2.GetPropertiesRequest, common.v1.common_pb2.GetPropertiesResponse)
|
|
53
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioout.v1.AudioOutService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
54
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioout.v1.AudioOutService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Generated protocol buffer code."""
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/audioout/v1/audioout.proto')
|
|
8
|
+
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$component/audioout/v1/audioout.proto\x12\x1aviam.component.audioout.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"\xa9\x01\n\x0bPlayRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1d\n\naudio_data\x18\x02 \x01(\x0cR\taudioData\x128\n\naudio_info\x18\x03 \x01(\x0b2\x19.viam.common.v1.AudioInfoR\taudioInfo\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x0e\n\x0cPlayResponse2\xe2\x04\n\x0fAudioOutService\x12\x8e\x01\n\x04Play\x12\'.viam.component.audioout.v1.PlayRequest\x1a(.viam.component.audioout.v1.PlayResponse"3\x82\xd3\xe4\x93\x02-"+/viam/api/v1/component/audioout/{name}/play\x12\x97\x01\n\rGetProperties\x12$.viam.common.v1.GetPropertiesRequest\x1a%.viam.common.v1.GetPropertiesResponse"9\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/audioout/{name}/properties\x12\x89\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/service/audioout/{name}/do_command\x12\x97\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"9\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/audioout/{name}/geometriesBG\n\x1ecom.viam.component.audioout.v1Z%go.viam.com/api/component/audioout/v1b\x06proto3')
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.audioout.v1.audioout_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1ecom.viam.component.audioout.v1Z%go.viam.com/api/component/audioout/v1'
|
|
19
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['Play']._loaded_options = None
|
|
20
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['Play']._serialized_options = b'\x82\xd3\xe4\x93\x02-"+/viam/api/v1/component/audioout/{name}/play'
|
|
21
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['GetProperties']._loaded_options = None
|
|
22
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['GetProperties']._serialized_options = b'\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/audioout/{name}/properties'
|
|
23
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
24
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/service/audioout/{name}/do_command'
|
|
25
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
26
|
+
_globals['_AUDIOOUTSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/audioout/{name}/geometries'
|
|
27
|
+
_globals['_PLAYREQUEST']._serialized_start = 153
|
|
28
|
+
_globals['_PLAYREQUEST']._serialized_end = 322
|
|
29
|
+
_globals['_PLAYRESPONSE']._serialized_start = 324
|
|
30
|
+
_globals['_PLAYRESPONSE']._serialized_end = 338
|
|
31
|
+
_globals['_AUDIOOUTSERVICE']._serialized_start = 341
|
|
32
|
+
_globals['_AUDIOOUTSERVICE']._serialized_end = 951
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import builtins
|
|
6
|
+
from .... import common
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import google.protobuf.struct_pb2
|
|
10
|
+
import typing
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class PlayRequest(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
17
|
+
AUDIO_DATA_FIELD_NUMBER: builtins.int
|
|
18
|
+
AUDIO_INFO_FIELD_NUMBER: builtins.int
|
|
19
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
20
|
+
name: builtins.str
|
|
21
|
+
audio_data: builtins.bytes
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def audio_info(self) -> common.v1.common_pb2.AudioInfo:
|
|
25
|
+
"""Info describing the audio_data"""
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
29
|
+
...
|
|
30
|
+
|
|
31
|
+
def __init__(self, *, name: builtins.str=..., audio_data: builtins.bytes=..., audio_info: common.v1.common_pb2.AudioInfo | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
32
|
+
...
|
|
33
|
+
|
|
34
|
+
def HasField(self, field_name: typing.Literal['audio_info', b'audio_info', 'extra', b'extra']) -> builtins.bool:
|
|
35
|
+
...
|
|
36
|
+
|
|
37
|
+
def ClearField(self, field_name: typing.Literal['audio_data', b'audio_data', 'audio_info', b'audio_info', 'extra', b'extra', 'name', b'name']) -> None:
|
|
38
|
+
...
|
|
39
|
+
global___PlayRequest = PlayRequest
|
|
40
|
+
|
|
41
|
+
@typing.final
|
|
42
|
+
class PlayResponse(google.protobuf.message.Message):
|
|
43
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
44
|
+
|
|
45
|
+
def __init__(self) -> None:
|
|
46
|
+
...
|
|
47
|
+
global___PlayResponse = PlayResponse
|
|
@@ -4,7 +4,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/base/v1/base.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
@@ -4,7 +4,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/board/v1/board.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
@@ -4,7 +4,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/button/v1/button.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
@@ -4,13 +4,14 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/camera/v1/camera.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....app.data.v1 import data_pb2 as app_dot_data_dot_v1_dot_data__pb2
|
|
9
10
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
11
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
12
|
from google.api import httpbody_pb2 as google_dot_api_dot_httpbody__pb2
|
|
12
13
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
13
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/camera/v1/camera.proto\x12\x18viam.component.camera.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/httpbody.proto\x1a\x1cgoogle/protobuf/struct.proto"q\n\x0fGetImageRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"E\n\x10GetImageResponse\x12\x1b\n\tmime_type\x18\x01 \x01(\tR\x08mimeType\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image"
|
|
14
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/camera/v1/camera.proto\x12\x18viam.component.camera.v1\x1a\x16app/data/v1/data.proto\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/httpbody.proto\x1a\x1cgoogle/protobuf/struct.proto"q\n\x0fGetImageRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"E\n\x10GetImageResponse\x12\x1b\n\tmime_type\x18\x01 \x01(\tR\x08mimeType\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image"\x85\x01\n\x10GetImagesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12.\n\x13filter_source_names\x18\x02 \x03(\tR\x11filterSourceNames\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x9d\x01\n\x11GetImagesResponse\x127\n\x06images\x18\x01 \x03(\x0b2\x1f.viam.component.camera.v1.ImageR\x06images\x12O\n\x11response_metadata\x18\xa4\x92\x05 \x01(\x0b2 .viam.common.v1.ResponseMetadataR\x10responseMetadata"\xd6\x01\n\x05Image\x12\x1f\n\x0bsource_name\x18\x01 \x01(\tR\nsourceName\x128\n\x06format\x18\x02 \x01(\x0e2 .viam.component.camera.v1.FormatR\x06format\x12\x14\n\x05image\x18\x03 \x01(\x0cR\x05image\x12\x1b\n\tmime_type\x18\x04 \x01(\tR\x08mimeType\x12?\n\x0bannotations\x18\x05 \x01(\x0b2\x1d.viam.app.data.v1.AnnotationsR\x0bannotations"t\n\x12RenderFrameRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"v\n\x14GetPointCloudRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"U\n\x15GetPointCloudResponse\x12\x1b\n\tmime_type\x18\x01 \x01(\tR\x08mimeType\x12\x1f\n\x0bpoint_cloud\x18\x02 \x01(\x0cR\npointCloud"*\n\x14GetPropertiesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"\xd3\x02\n\x15GetPropertiesResponse\x12!\n\x0csupports_pcd\x18\x01 \x01(\x08R\x0bsupportsPcd\x12`\n\x14intrinsic_parameters\x18\x02 \x01(\x0b2-.viam.component.camera.v1.IntrinsicParametersR\x13intrinsicParameters\x12c\n\x15distortion_parameters\x18\x03 \x01(\x0b2..viam.component.camera.v1.DistortionParametersR\x14distortionParameters\x12\x1d\n\nmime_types\x18\x04 \x03(\tR\tmimeTypes\x12"\n\nframe_rate\x18\x05 \x01(\x02H\x00R\tframeRate\x88\x01\x01B\r\n\x0b_frame_rate"E\n\x07Webcams\x12:\n\x07webcams\x18\x01 \x03(\x0b2 .viam.component.camera.v1.WebcamR\x07webcams"\x9e\x01\n\x06Webcam\x12\x14\n\x05label\x18\x01 \x01(\tR\x05label\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\x12B\n\nproperties\x18\x03 \x03(\x0b2".viam.component.camera.v1.PropertyR\nproperties\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x0e\n\x02id\x18\x05 \x01(\tR\x02id"\x84\x01\n\x08Property\x12\x19\n\x08width_px\x18\x01 \x01(\x05R\x07widthPx\x12\x1b\n\theight_px\x18\x02 \x01(\x05R\x08heightPx\x12!\n\x0cframe_format\x18\x03 \x01(\tR\x0bframeFormat\x12\x1d\n\nframe_rate\x18\x04 \x01(\x02R\tframeRate"\xc9\x01\n\x13IntrinsicParameters\x12\x19\n\x08width_px\x18\x01 \x01(\rR\x07widthPx\x12\x1b\n\theight_px\x18\x02 \x01(\rR\x08heightPx\x12\x1c\n\nfocal_x_px\x18\x03 \x01(\x01R\x08focalXPx\x12\x1c\n\nfocal_y_px\x18\x04 \x01(\x01R\x08focalYPx\x12\x1e\n\x0bcenter_x_px\x18\x05 \x01(\x01R\tcenterXPx\x12\x1e\n\x0bcenter_y_px\x18\x06 \x01(\x01R\tcenterYPx"L\n\x14DistortionParameters\x12\x14\n\x05model\x18\x01 \x01(\tR\x05model\x12\x1e\n\nparameters\x18\x02 \x03(\x01R\nparameters*l\n\x06Format\x12\x16\n\x12FORMAT_UNSPECIFIED\x10\x00\x12\x13\n\x0fFORMAT_RAW_RGBA\x10\x01\x12\x14\n\x10FORMAT_RAW_DEPTH\x10\x02\x12\x0f\n\x0bFORMAT_JPEG\x10\x03\x12\x0e\n\nFORMAT_PNG\x10\x042\xcf\x08\n\rCameraService\x12\x95\x01\n\x08GetImage\x12).viam.component.camera.v1.GetImageRequest\x1a*.viam.component.camera.v1.GetImageResponse"2\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/camera/{name}/image\x12\x99\x01\n\tGetImages\x12*.viam.component.camera.v1.GetImagesRequest\x1a+.viam.component.camera.v1.GetImagesResponse"3\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/camera/{name}/images\x12\x8c\x01\n\x0bRenderFrame\x12,.viam.component.camera.v1.RenderFrameRequest\x1a\x14.google.api.HttpBody"9\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/camera/{name}/render_frame\x12\xaa\x01\n\rGetPointCloud\x12..viam.component.camera.v1.GetPointCloudRequest\x1a/.viam.component.camera.v1.GetPointCloudResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/camera/{name}/point_cloud\x12\xa9\x01\n\rGetProperties\x12..viam.component.camera.v1.GetPropertiesRequest\x1a/.viam.component.camera.v1.GetPropertiesResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/properties\x12\x89\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/component/camera/{name}/do_command\x12\x95\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/geometriesBC\n\x1ccom.viam.component.camera.v1Z#go.viam.com/api/component/camera/v1b\x06proto3')
|
|
14
15
|
_globals = globals()
|
|
15
16
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
16
17
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.camera.v1.camera_pb2', _globals)
|
|
@@ -31,37 +32,37 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
31
32
|
_globals['_CAMERASERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/component/camera/{name}/do_command'
|
|
32
33
|
_globals['_CAMERASERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
33
34
|
_globals['_CAMERASERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/geometries'
|
|
34
|
-
_globals['_FORMAT']._serialized_start =
|
|
35
|
-
_globals['_FORMAT']._serialized_end =
|
|
36
|
-
_globals['_GETIMAGEREQUEST']._serialized_start =
|
|
37
|
-
_globals['_GETIMAGEREQUEST']._serialized_end =
|
|
38
|
-
_globals['_GETIMAGERESPONSE']._serialized_start =
|
|
39
|
-
_globals['_GETIMAGERESPONSE']._serialized_end =
|
|
40
|
-
_globals['_GETIMAGESREQUEST']._serialized_start =
|
|
41
|
-
_globals['_GETIMAGESREQUEST']._serialized_end =
|
|
42
|
-
_globals['_GETIMAGESRESPONSE']._serialized_start =
|
|
43
|
-
_globals['_GETIMAGESRESPONSE']._serialized_end =
|
|
44
|
-
_globals['_IMAGE']._serialized_start =
|
|
45
|
-
_globals['_IMAGE']._serialized_end =
|
|
46
|
-
_globals['_RENDERFRAMEREQUEST']._serialized_start =
|
|
47
|
-
_globals['_RENDERFRAMEREQUEST']._serialized_end =
|
|
48
|
-
_globals['_GETPOINTCLOUDREQUEST']._serialized_start =
|
|
49
|
-
_globals['_GETPOINTCLOUDREQUEST']._serialized_end =
|
|
50
|
-
_globals['_GETPOINTCLOUDRESPONSE']._serialized_start =
|
|
51
|
-
_globals['_GETPOINTCLOUDRESPONSE']._serialized_end =
|
|
52
|
-
_globals['_GETPROPERTIESREQUEST']._serialized_start =
|
|
53
|
-
_globals['_GETPROPERTIESREQUEST']._serialized_end =
|
|
54
|
-
_globals['_GETPROPERTIESRESPONSE']._serialized_start =
|
|
55
|
-
_globals['_GETPROPERTIESRESPONSE']._serialized_end =
|
|
56
|
-
_globals['_WEBCAMS']._serialized_start =
|
|
57
|
-
_globals['_WEBCAMS']._serialized_end =
|
|
58
|
-
_globals['_WEBCAM']._serialized_start =
|
|
59
|
-
_globals['_WEBCAM']._serialized_end =
|
|
60
|
-
_globals['_PROPERTY']._serialized_start =
|
|
61
|
-
_globals['_PROPERTY']._serialized_end =
|
|
62
|
-
_globals['_INTRINSICPARAMETERS']._serialized_start =
|
|
63
|
-
_globals['_INTRINSICPARAMETERS']._serialized_end =
|
|
64
|
-
_globals['_DISTORTIONPARAMETERS']._serialized_start =
|
|
65
|
-
_globals['_DISTORTIONPARAMETERS']._serialized_end =
|
|
66
|
-
_globals['_CAMERASERVICE']._serialized_start =
|
|
67
|
-
_globals['_CAMERASERVICE']._serialized_end =
|
|
35
|
+
_globals['_FORMAT']._serialized_start = 2256
|
|
36
|
+
_globals['_FORMAT']._serialized_end = 2364
|
|
37
|
+
_globals['_GETIMAGEREQUEST']._serialized_start = 197
|
|
38
|
+
_globals['_GETIMAGEREQUEST']._serialized_end = 310
|
|
39
|
+
_globals['_GETIMAGERESPONSE']._serialized_start = 312
|
|
40
|
+
_globals['_GETIMAGERESPONSE']._serialized_end = 381
|
|
41
|
+
_globals['_GETIMAGESREQUEST']._serialized_start = 384
|
|
42
|
+
_globals['_GETIMAGESREQUEST']._serialized_end = 517
|
|
43
|
+
_globals['_GETIMAGESRESPONSE']._serialized_start = 520
|
|
44
|
+
_globals['_GETIMAGESRESPONSE']._serialized_end = 677
|
|
45
|
+
_globals['_IMAGE']._serialized_start = 680
|
|
46
|
+
_globals['_IMAGE']._serialized_end = 894
|
|
47
|
+
_globals['_RENDERFRAMEREQUEST']._serialized_start = 896
|
|
48
|
+
_globals['_RENDERFRAMEREQUEST']._serialized_end = 1012
|
|
49
|
+
_globals['_GETPOINTCLOUDREQUEST']._serialized_start = 1014
|
|
50
|
+
_globals['_GETPOINTCLOUDREQUEST']._serialized_end = 1132
|
|
51
|
+
_globals['_GETPOINTCLOUDRESPONSE']._serialized_start = 1134
|
|
52
|
+
_globals['_GETPOINTCLOUDRESPONSE']._serialized_end = 1219
|
|
53
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_start = 1221
|
|
54
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_end = 1263
|
|
55
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_start = 1266
|
|
56
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_end = 1605
|
|
57
|
+
_globals['_WEBCAMS']._serialized_start = 1607
|
|
58
|
+
_globals['_WEBCAMS']._serialized_end = 1676
|
|
59
|
+
_globals['_WEBCAM']._serialized_start = 1679
|
|
60
|
+
_globals['_WEBCAM']._serialized_end = 1837
|
|
61
|
+
_globals['_PROPERTY']._serialized_start = 1840
|
|
62
|
+
_globals['_PROPERTY']._serialized_end = 1972
|
|
63
|
+
_globals['_INTRINSICPARAMETERS']._serialized_start = 1975
|
|
64
|
+
_globals['_INTRINSICPARAMETERS']._serialized_end = 2176
|
|
65
|
+
_globals['_DISTORTIONPARAMETERS']._serialized_start = 2178
|
|
66
|
+
_globals['_DISTORTIONPARAMETERS']._serialized_end = 2254
|
|
67
|
+
_globals['_CAMERASERVICE']._serialized_start = 2367
|
|
68
|
+
_globals['_CAMERASERVICE']._serialized_end = 3470
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
@generated by mypy-protobuf. Do not edit manually!
|
|
3
3
|
isort:skip_file
|
|
4
4
|
"""
|
|
5
|
+
from .... import app
|
|
5
6
|
import builtins
|
|
6
7
|
import collections.abc
|
|
7
8
|
from .... import common
|
|
@@ -85,13 +86,28 @@ global___GetImageResponse = GetImageResponse
|
|
|
85
86
|
class GetImagesRequest(google.protobuf.message.Message):
|
|
86
87
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
87
88
|
NAME_FIELD_NUMBER: builtins.int
|
|
89
|
+
FILTER_SOURCE_NAMES_FIELD_NUMBER: builtins.int
|
|
90
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
88
91
|
name: builtins.str
|
|
89
92
|
'Name of a camera'
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
@property
|
|
95
|
+
def filter_source_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
96
|
+
"""The names of the sensors to retrieve images from. If this is not provided,
|
|
97
|
+
all images from all sensors will be returned.
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
102
|
+
"""Additional arguments to the method"""
|
|
103
|
+
|
|
104
|
+
def __init__(self, *, name: builtins.str=..., filter_source_names: collections.abc.Iterable[builtins.str] | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
92
105
|
...
|
|
93
106
|
|
|
94
|
-
def
|
|
107
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
108
|
+
...
|
|
109
|
+
|
|
110
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'filter_source_names', b'filter_source_names', 'name', b'name']) -> None:
|
|
95
111
|
...
|
|
96
112
|
global___GetImagesRequest = GetImagesRequest
|
|
97
113
|
|
|
@@ -125,17 +141,28 @@ class Image(google.protobuf.message.Message):
|
|
|
125
141
|
SOURCE_NAME_FIELD_NUMBER: builtins.int
|
|
126
142
|
FORMAT_FIELD_NUMBER: builtins.int
|
|
127
143
|
IMAGE_FIELD_NUMBER: builtins.int
|
|
144
|
+
MIME_TYPE_FIELD_NUMBER: builtins.int
|
|
145
|
+
ANNOTATIONS_FIELD_NUMBER: builtins.int
|
|
128
146
|
source_name: builtins.str
|
|
129
147
|
'the name of the sensor where the image came from'
|
|
130
148
|
format: global___Format.ValueType
|
|
131
149
|
'format of the response image bytes'
|
|
132
150
|
image: builtins.bytes
|
|
133
151
|
'image in bytes'
|
|
152
|
+
mime_type: builtins.str
|
|
153
|
+
'The mime type of the image'
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def annotations(self) -> app.data.v1.data_pb2.Annotations:
|
|
157
|
+
"""annotations can be used to store additional information about the image"""
|
|
158
|
+
|
|
159
|
+
def __init__(self, *, source_name: builtins.str=..., format: global___Format.ValueType=..., image: builtins.bytes=..., mime_type: builtins.str=..., annotations: app.data.v1.data_pb2.Annotations | None=...) -> None:
|
|
160
|
+
...
|
|
134
161
|
|
|
135
|
-
def
|
|
162
|
+
def HasField(self, field_name: typing.Literal['annotations', b'annotations']) -> builtins.bool:
|
|
136
163
|
...
|
|
137
164
|
|
|
138
|
-
def ClearField(self, field_name: typing.Literal['format', b'format', 'image', b'image', 'source_name', b'source_name']) -> None:
|
|
165
|
+
def ClearField(self, field_name: typing.Literal['annotations', b'annotations', 'format', b'format', 'image', b'image', 'mime_type', b'mime_type', 'source_name', b'source_name']) -> None:
|
|
139
166
|
...
|
|
140
167
|
global___Image = Image
|
|
141
168
|
|
|
@@ -4,7 +4,7 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/encoder/v1/encoder.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
@@ -40,12 +40,16 @@ class GantryServiceBase(abc.ABC):
|
|
|
40
40
|
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
41
41
|
pass
|
|
42
42
|
|
|
43
|
+
@abc.abstractmethod
|
|
44
|
+
async def GetKinematics(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse]') -> None:
|
|
45
|
+
pass
|
|
46
|
+
|
|
43
47
|
@abc.abstractmethod
|
|
44
48
|
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
45
49
|
pass
|
|
46
50
|
|
|
47
51
|
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
48
|
-
return {'/viam.component.gantry.v1.GantryService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.GetPositionRequest, component.gantry.v1.gantry_pb2.GetPositionResponse), '/viam.component.gantry.v1.GantryService/MoveToPosition': grpclib.const.Handler(self.MoveToPosition, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.MoveToPositionRequest, component.gantry.v1.gantry_pb2.MoveToPositionResponse), '/viam.component.gantry.v1.GantryService/Home': grpclib.const.Handler(self.Home, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.HomeRequest, component.gantry.v1.gantry_pb2.HomeResponse), '/viam.component.gantry.v1.GantryService/GetLengths': grpclib.const.Handler(self.GetLengths, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.GetLengthsRequest, component.gantry.v1.gantry_pb2.GetLengthsResponse), '/viam.component.gantry.v1.GantryService/Stop': grpclib.const.Handler(self.Stop, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.StopRequest, component.gantry.v1.gantry_pb2.StopResponse), '/viam.component.gantry.v1.GantryService/IsMoving': grpclib.const.Handler(self.IsMoving, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.IsMovingRequest, component.gantry.v1.gantry_pb2.IsMovingResponse), '/viam.component.gantry.v1.GantryService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.gantry.v1.GantryService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
52
|
+
return {'/viam.component.gantry.v1.GantryService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.GetPositionRequest, component.gantry.v1.gantry_pb2.GetPositionResponse), '/viam.component.gantry.v1.GantryService/MoveToPosition': grpclib.const.Handler(self.MoveToPosition, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.MoveToPositionRequest, component.gantry.v1.gantry_pb2.MoveToPositionResponse), '/viam.component.gantry.v1.GantryService/Home': grpclib.const.Handler(self.Home, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.HomeRequest, component.gantry.v1.gantry_pb2.HomeResponse), '/viam.component.gantry.v1.GantryService/GetLengths': grpclib.const.Handler(self.GetLengths, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.GetLengthsRequest, component.gantry.v1.gantry_pb2.GetLengthsResponse), '/viam.component.gantry.v1.GantryService/Stop': grpclib.const.Handler(self.Stop, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.StopRequest, component.gantry.v1.gantry_pb2.StopResponse), '/viam.component.gantry.v1.GantryService/IsMoving': grpclib.const.Handler(self.IsMoving, grpclib.const.Cardinality.UNARY_UNARY, component.gantry.v1.gantry_pb2.IsMovingRequest, component.gantry.v1.gantry_pb2.IsMovingResponse), '/viam.component.gantry.v1.GantryService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.gantry.v1.GantryService/GetKinematics': grpclib.const.Handler(self.GetKinematics, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse), '/viam.component.gantry.v1.GantryService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
49
53
|
|
|
50
54
|
class UnimplementedGantryServiceBase(GantryServiceBase):
|
|
51
55
|
|
|
@@ -70,6 +74,9 @@ class UnimplementedGantryServiceBase(GantryServiceBase):
|
|
|
70
74
|
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
71
75
|
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
72
76
|
|
|
77
|
+
async def GetKinematics(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse]') -> None:
|
|
78
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
79
|
+
|
|
73
80
|
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
74
81
|
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
75
82
|
|
|
@@ -83,4 +90,5 @@ class GantryServiceStub:
|
|
|
83
90
|
self.Stop = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.gantry.v1.GantryService/Stop', component.gantry.v1.gantry_pb2.StopRequest, component.gantry.v1.gantry_pb2.StopResponse)
|
|
84
91
|
self.IsMoving = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.gantry.v1.GantryService/IsMoving', component.gantry.v1.gantry_pb2.IsMovingRequest, component.gantry.v1.gantry_pb2.IsMovingResponse)
|
|
85
92
|
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.gantry.v1.GantryService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
93
|
+
self.GetKinematics = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.gantry.v1.GantryService/GetKinematics', common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse)
|
|
86
94
|
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.gantry.v1.GantryService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|
|
@@ -4,12 +4,12 @@ from google.protobuf import descriptor_pool as _descriptor_pool
|
|
|
4
4
|
from google.protobuf import runtime_version as _runtime_version
|
|
5
5
|
from google.protobuf import symbol_database as _symbol_database
|
|
6
6
|
from google.protobuf.internal import builder as _builder
|
|
7
|
-
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29,
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/gantry/v1/gantry.proto')
|
|
8
8
|
_sym_db = _symbol_database.Default()
|
|
9
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
11
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
12
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/gantry/v1/gantry.proto\x12\x18viam.component.gantry.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"W\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"8\n\x13GetPositionResponse\x12!\n\x0cpositions_mm\x18\x01 \x03(\x01R\x0bpositionsMm"\xa8\x01\n\x15MoveToPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12!\n\x0cpositions_mm\x18\x02 \x03(\x01R\x0bpositionsMm\x12)\n\x11speeds_mm_per_sec\x18\x03 \x03(\x01R\x0espeedsMmPerSec\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x18\n\x16MoveToPositionResponse"P\n\x0bHomeRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"$\n\x0cHomeResponse\x12\x14\n\x05homed\x18\x01 \x01(\x08R\x05homed"V\n\x11GetLengthsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"3\n\x12GetLengthsResponse\x12\x1d\n\nlengths_mm\x18\x01 \x03(\x01R\tlengthsMm"P\n\x0bStopRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x0e\n\x0cStopResponse"g\n\x06Status\x12!\n\x0cpositions_mm\x18\x01 \x03(\x01R\x0bpositionsMm\x12\x1d\n\nlengths_mm\x18\x02 \x03(\x01R\tlengthsMm\x12\x1b\n\tis_moving\x18\x03 \x01(\x08R\x08isMoving"%\n\x0fIsMovingRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"/\n\x10IsMovingResponse\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving2\
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/gantry/v1/gantry.proto\x12\x18viam.component.gantry.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"W\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"8\n\x13GetPositionResponse\x12!\n\x0cpositions_mm\x18\x01 \x03(\x01R\x0bpositionsMm"\xa8\x01\n\x15MoveToPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12!\n\x0cpositions_mm\x18\x02 \x03(\x01R\x0bpositionsMm\x12)\n\x11speeds_mm_per_sec\x18\x03 \x03(\x01R\x0espeedsMmPerSec\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x18\n\x16MoveToPositionResponse"P\n\x0bHomeRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"$\n\x0cHomeResponse\x12\x14\n\x05homed\x18\x01 \x01(\x08R\x05homed"V\n\x11GetLengthsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"3\n\x12GetLengthsResponse\x12\x1d\n\nlengths_mm\x18\x01 \x03(\x01R\tlengthsMm"P\n\x0bStopRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x0e\n\x0cStopResponse"g\n\x06Status\x12!\n\x0cpositions_mm\x18\x01 \x03(\x01R\x0bpositionsMm\x12\x1d\n\nlengths_mm\x18\x02 \x03(\x01R\tlengthsMm\x12\x1b\n\tis_moving\x18\x03 \x01(\x08R\x08isMoving"%\n\x0fIsMovingRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"/\n\x10IsMovingResponse\x12\x1b\n\tis_moving\x18\x01 \x01(\x08R\x08isMoving2\xf2\n\n\rGantryService\x12\xa1\x01\n\x0bGetPosition\x12,.viam.component.gantry.v1.GetPositionRequest\x1a-.viam.component.gantry.v1.GetPositionResponse"5\x82\xd3\xe4\x93\x02/\x12-/viam/api/v1/component/gantry/{name}/position\x12\xae\x01\n\x0eMoveToPosition\x12/.viam.component.gantry.v1.MoveToPositionRequest\x1a0.viam.component.gantry.v1.MoveToPositionResponse"9\xa0\x92)\x01\x82\xd3\xe4\x93\x02/\x1a-/viam/api/v1/component/gantry/{name}/position\x12\x88\x01\n\x04Home\x12%.viam.component.gantry.v1.HomeRequest\x1a&.viam.component.gantry.v1.HomeResponse"1\x82\xd3\xe4\x93\x02+\x1a)/viam/api/v1/component/gantry/{name}/home\x12\x9d\x01\n\nGetLengths\x12+.viam.component.gantry.v1.GetLengthsRequest\x1a,.viam.component.gantry.v1.GetLengthsResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/gantry/{name}/lengths\x12\x88\x01\n\x04Stop\x12%.viam.component.gantry.v1.StopRequest\x1a&.viam.component.gantry.v1.StopResponse"1\x82\xd3\xe4\x93\x02+")/viam/api/v1/component/gantry/{name}/stop\x12\x99\x01\n\x08IsMoving\x12).viam.component.gantry.v1.IsMovingRequest\x1a*.viam.component.gantry.v1.IsMovingResponse"6\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/gantry/{name}/is_moving\x12\x89\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/component/gantry/{name}/do_command\x12\x95\x01\n\rGetKinematics\x12$.viam.common.v1.GetKinematicsRequest\x1a%.viam.common.v1.GetKinematicsResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/gantry/{name}/kinematics\x12\x95\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/gantry/{name}/geometriesBC\n\x1ccom.viam.component.gantry.v1Z#go.viam.com/api/component/gantry/v1b\x06proto3')
|
|
13
13
|
_globals = globals()
|
|
14
14
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
15
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.gantry.v1.gantry_pb2', _globals)
|
|
@@ -30,6 +30,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
30
30
|
_globals['_GANTRYSERVICE'].methods_by_name['IsMoving']._serialized_options = b'\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/gantry/{name}/is_moving'
|
|
31
31
|
_globals['_GANTRYSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
32
32
|
_globals['_GANTRYSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/component/gantry/{name}/do_command'
|
|
33
|
+
_globals['_GANTRYSERVICE'].methods_by_name['GetKinematics']._loaded_options = None
|
|
34
|
+
_globals['_GANTRYSERVICE'].methods_by_name['GetKinematics']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/gantry/{name}/kinematics'
|
|
33
35
|
_globals['_GANTRYSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
34
36
|
_globals['_GANTRYSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/gantry/{name}/geometries'
|
|
35
37
|
_globals['_GETPOSITIONREQUEST']._serialized_start = 146
|
|
@@ -59,4 +61,4 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
59
61
|
_globals['_ISMOVINGRESPONSE']._serialized_start = 993
|
|
60
62
|
_globals['_ISMOVINGRESPONSE']._serialized_end = 1040
|
|
61
63
|
_globals['_GANTRYSERVICE']._serialized_start = 1043
|
|
62
|
-
_globals['_GANTRYSERVICE']._serialized_end =
|
|
64
|
+
_globals['_GANTRYSERVICE']._serialized_end = 2437
|