viam-sdk 0.3.0__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/__init__.py +29 -2
- viam/app/_logs.py +34 -0
- viam/app/app_client.py +2696 -0
- viam/app/billing_client.py +185 -0
- viam/app/data_client.py +2231 -0
- viam/app/ml_training_client.py +249 -0
- viam/app/provisioning_client.py +93 -0
- viam/app/viam_client.py +275 -0
- viam/components/arm/__init__.py +3 -26
- viam/components/arm/arm.py +123 -8
- viam/components/arm/client.py +37 -24
- viam/components/arm/service.py +35 -32
- 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/__init__.py +6 -11
- viam/components/base/base.py +134 -8
- viam/components/base/client.py +51 -23
- viam/components/base/service.py +33 -30
- viam/components/board/__init__.py +3 -12
- viam/components/board/board.py +247 -91
- viam/components/board/client.py +149 -83
- viam/components/board/service.py +63 -33
- 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/__init__.py +3 -3
- viam/components/camera/camera.py +62 -27
- viam/components/camera/client.py +59 -27
- viam/components/camera/service.py +42 -65
- viam/components/component_base.py +28 -5
- viam/components/encoder/__init__.py +1 -1
- viam/components/encoder/client.py +25 -14
- viam/components/encoder/encoder.py +48 -10
- viam/components/encoder/service.py +14 -18
- viam/components/gantry/__init__.py +1 -13
- viam/components/gantry/client.py +80 -25
- viam/components/gantry/gantry.py +123 -9
- viam/components/gantry/service.py +51 -29
- viam/components/generic/__init__.py +1 -1
- viam/components/generic/client.py +21 -8
- viam/components/generic/generic.py +10 -2
- viam/components/generic/service.py +12 -7
- viam/components/gripper/__init__.py +3 -13
- viam/components/gripper/client.py +69 -21
- viam/components/gripper/gripper.py +123 -3
- viam/components/gripper/service.py +44 -22
- viam/components/input/__init__.py +1 -14
- viam/components/input/client.py +55 -23
- viam/components/input/input.py +106 -3
- viam/components/input/service.py +16 -21
- viam/components/motor/__init__.py +1 -21
- viam/components/motor/client.py +56 -33
- viam/components/motor/motor.py +127 -4
- viam/components/motor/service.py +33 -44
- viam/components/movement_sensor/__init__.py +1 -1
- viam/components/movement_sensor/client.py +102 -45
- viam/components/movement_sensor/movement_sensor.py +130 -61
- viam/components/movement_sensor/service.py +38 -41
- viam/components/pose_tracker/__init__.py +1 -1
- viam/components/pose_tracker/client.py +18 -7
- viam/components/pose_tracker/pose_tracker.py +4 -2
- viam/components/pose_tracker/service.py +12 -10
- viam/components/power_sensor/__init__.py +17 -0
- viam/components/power_sensor/client.py +86 -0
- viam/components/power_sensor/power_sensor.py +104 -0
- viam/components/power_sensor/service.py +72 -0
- viam/components/sensor/__init__.py +2 -1
- viam/components/sensor/client.py +26 -10
- viam/components/sensor/sensor.py +22 -4
- viam/components/sensor/service.py +20 -11
- viam/components/servo/__init__.py +1 -13
- viam/components/servo/client.py +47 -21
- viam/components/servo/service.py +15 -22
- viam/components/servo/servo.py +61 -2
- 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/errors.py +10 -0
- viam/gen/app/agent/v1/agent_grpc.py +29 -0
- viam/gen/app/agent/v1/agent_pb2.py +47 -0
- viam/gen/app/agent/v1/agent_pb2.pyi +280 -0
- viam/gen/app/cloudslam/v1/__init__.py +0 -0
- viam/gen/app/cloudslam/v1/cloud_slam_grpc.py +70 -0
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.py +54 -0
- viam/gen/app/cloudslam/v1/cloud_slam_pb2.pyi +384 -0
- viam/gen/app/data/v1/data_grpc.py +197 -8
- viam/gen/app/data/v1/data_pb2.py +238 -99
- viam/gen/app/data/v1/data_pb2.pyi +1222 -259
- 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/__init__.py +0 -0
- viam/gen/app/dataset/v1/__init__.py +0 -0
- viam/gen/app/dataset/v1/dataset_grpc.py +68 -0
- viam/gen/app/dataset/v1/dataset_pb2.py +44 -0
- viam/gen/app/dataset/v1/dataset_pb2.pyi +214 -0
- viam/gen/app/datasync/v1/data_sync_grpc.py +21 -4
- viam/gen/app/datasync/v1/data_sync_pb2.py +62 -128
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +156 -199
- viam/gen/app/mlinference/__init__.py +0 -0
- viam/gen/app/mlinference/v1/__init__.py +0 -0
- viam/gen/app/mlinference/v1/ml_inference_grpc.py +28 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.py +23 -0
- viam/gen/app/mlinference/v1/ml_inference_pb2.pyi +63 -0
- viam/gen/app/mltraining/v1/ml_training_grpc.py +51 -3
- viam/gen/app/mltraining/v1/ml_training_pb2.py +135 -58
- viam/gen/app/mltraining/v1/ml_training_pb2.pyi +328 -39
- viam/gen/app/packages/v1/packages_grpc.py +15 -1
- viam/gen/app/packages/v1/packages_pb2.py +44 -64
- viam/gen/app/packages/v1/packages_pb2.pyi +75 -85
- viam/gen/app/v1/app_grpc.py +644 -3
- viam/gen/app/v1/app_pb2.py +695 -295
- viam/gen/app/v1/app_pb2.pyi +4488 -635
- viam/gen/app/v1/billing_grpc.py +53 -11
- viam/gen/app/v1/billing_pb2.py +94 -39
- viam/gen/app/v1/billing_pb2.pyi +391 -191
- viam/gen/app/v1/end_user_grpc.py +59 -0
- viam/gen/app/v1/end_user_pb2.py +55 -0
- viam/gen/app/v1/end_user_pb2.pyi +181 -0
- viam/gen/app/v1/robot_grpc.py +16 -1
- viam/gen/app/v1/robot_pb2.py +122 -94
- viam/gen/app/v1/robot_pb2.pyi +463 -123
- viam/gen/common/v1/common_pb2.py +87 -58
- viam/gen/common/v1/common_pb2.pyi +456 -149
- viam/gen/component/arm/v1/arm_grpc.py +58 -2
- viam/gen/component/arm/v1/arm_pb2.py +68 -51
- viam/gen/component/arm/v1/arm_pb2.pyi +108 -42
- 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_grpc.py +25 -2
- viam/gen/component/audioinput/v1/audioinput_pb2.py +36 -31
- viam/gen/component/audioinput/v1/audioinput_pb2.pyi +22 -22
- 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_grpc.py +42 -2
- viam/gen/component/base/v1/base_pb2.py +58 -47
- viam/gen/component/base/v1/base_pb2.pyi +65 -30
- viam/gen/component/board/v1/board_grpc.py +59 -7
- viam/gen/component/board/v1/board_pb2.py +94 -73
- viam/gen/component/board/v1/board_pb2.pyi +165 -68
- viam/gen/component/button/__init__.py +0 -0
- viam/gen/component/button/v1/__init__.py +0 -0
- viam/gen/component/button/v1/button_grpc.py +38 -0
- viam/gen/component/button/v1/button_pb2.py +28 -0
- viam/gen/component/button/v1/button_pb2.pyi +39 -0
- viam/gen/component/camera/v1/camera_grpc.py +38 -2
- viam/gen/component/camera/v1/camera_pb2.py +60 -43
- viam/gen/component/camera/v1/camera_pb2.pyi +191 -37
- viam/gen/component/encoder/v1/encoder_grpc.py +25 -2
- viam/gen/component/encoder/v1/encoder_pb2.py +36 -31
- viam/gen/component/encoder/v1/encoder_pb2.pyi +15 -15
- viam/gen/component/gantry/v1/gantry_grpc.py +47 -2
- viam/gen/component/gantry/v1/gantry_pb2.py +56 -43
- viam/gen/component/gantry/v1/gantry_pb2.pyi +67 -31
- viam/gen/component/generic/v1/generic_grpc.py +16 -2
- viam/gen/component/generic/v1/generic_pb2.py +16 -11
- viam/gen/component/gripper/v1/gripper_grpc.py +44 -2
- viam/gen/component/gripper/v1/gripper_pb2.py +48 -35
- viam/gen/component/gripper/v1/gripper_pb2.pyi +62 -24
- viam/gen/component/inputcontroller/v1/input_controller_grpc.py +28 -2
- viam/gen/component/inputcontroller/v1/input_controller_pb2.py +46 -41
- viam/gen/component/inputcontroller/v1/input_controller_pb2.pyi +32 -36
- viam/gen/component/motor/v1/motor_grpc.py +51 -2
- viam/gen/component/motor/v1/motor_pb2.py +78 -67
- viam/gen/component/motor/v1/motor_pb2.pyi +75 -46
- viam/gen/component/movementsensor/v1/movementsensor_grpc.py +48 -2
- viam/gen/component/movementsensor/v1/movementsensor_pb2.py +70 -63
- viam/gen/component/movementsensor/v1/movementsensor_pb2.pyi +84 -57
- viam/gen/component/posetracker/v1/pose_tracker_grpc.py +19 -2
- viam/gen/component/posetracker/v1/pose_tracker_pb2.py +26 -21
- viam/gen/component/posetracker/v1/pose_tracker_pb2.pyi +9 -13
- viam/gen/component/powersensor/__init__.py +0 -0
- viam/gen/component/powersensor/v1/__init__.py +0 -0
- viam/gen/component/powersensor/v1/powersensor_grpc.py +62 -0
- viam/gen/component/powersensor/v1/powersensor_pb2.py +42 -0
- viam/gen/component/powersensor/v1/powersensor_pb2.pyi +124 -0
- viam/gen/component/sensor/v1/sensor_grpc.py +21 -5
- viam/gen/component/sensor/v1/sensor_pb2.py +18 -22
- viam/gen/component/sensor/v1/sensor_pb2.pyi +1 -69
- viam/gen/component/servo/v1/servo_grpc.py +28 -2
- viam/gen/component/servo/v1/servo_pb2.py +42 -37
- viam/gen/component/servo/v1/servo_pb2.pyi +22 -26
- viam/gen/component/switch/__init__.py +0 -0
- viam/gen/component/switch/v1/__init__.py +0 -0
- viam/gen/component/switch/v1/switch_grpc.py +54 -0
- viam/gen/component/switch/v1/switch_pb2.py +40 -0
- viam/gen/component/switch/v1/switch_pb2.pyi +116 -0
- viam/gen/component/testecho/v1/testecho_grpc.py +15 -0
- viam/gen/component/testecho/v1/testecho_pb2.py +29 -26
- viam/gen/component/testecho/v1/testecho_pb2.pyi +16 -20
- viam/gen/module/v1/module_grpc.py +18 -0
- viam/gen/module/v1/module_pb2.py +36 -33
- viam/gen/module/v1/module_pb2.pyi +39 -34
- 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_grpc.py +12 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +25 -22
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.pyi +13 -17
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_grpc.py +12 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +23 -20
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.pyi +13 -17
- viam/gen/proto/rpc/v1/auth_grpc.py +11 -0
- viam/gen/proto/rpc/v1/auth_pb2.py +27 -24
- viam/gen/proto/rpc/v1/auth_pb2.pyi +12 -16
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +35 -32
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.pyi +37 -41
- viam/gen/proto/rpc/webrtc/v1/signaling_grpc.py +15 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +62 -57
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.pyi +78 -69
- viam/gen/provisioning/__init__.py +0 -0
- viam/gen/provisioning/v1/__init__.py +0 -0
- viam/gen/provisioning/v1/provisioning_grpc.py +59 -0
- viam/gen/provisioning/v1/provisioning_pb2.py +45 -0
- viam/gen/provisioning/v1/provisioning_pb2.pyi +229 -0
- viam/gen/robot/v1/robot_grpc.py +144 -15
- viam/gen/robot/v1/robot_pb2.py +193 -119
- viam/gen/robot/v1/robot_pb2.pyi +565 -137
- viam/gen/service/datamanager/v1/data_manager_grpc.py +20 -2
- viam/gen/service/datamanager/v1/data_manager_pb2.py +27 -17
- viam/gen/service/datamanager/v1/data_manager_pb2.pyi +52 -10
- viam/gen/service/discovery/__init__.py +0 -0
- viam/gen/service/discovery/v1/__init__.py +0 -0
- viam/gen/service/discovery/v1/discovery_grpc.py +39 -0
- viam/gen/service/discovery/v1/discovery_pb2.py +29 -0
- viam/gen/service/discovery/v1/discovery_pb2.pyi +51 -0
- viam/gen/service/generic/__init__.py +0 -0
- viam/gen/service/generic/v1/__init__.py +0 -0
- viam/gen/service/generic/v1/generic_grpc.py +29 -0
- viam/gen/service/generic/v1/generic_pb2.py +21 -0
- viam/gen/service/generic/v1/generic_pb2.pyi +6 -0
- viam/gen/service/mlmodel/v1/mlmodel_grpc.py +9 -0
- viam/gen/service/mlmodel/v1/mlmodel_pb2.py +76 -29
- viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi +307 -28
- viam/gen/service/motion/v1/motion_grpc.py +42 -4
- viam/gen/service/motion/v1/motion_pb2.py +119 -51
- viam/gen/service/motion/v1/motion_pb2.pyi +595 -120
- viam/gen/service/navigation/v1/navigation_grpc.py +49 -1
- viam/gen/service/navigation/v1/navigation_pb2.py +76 -51
- viam/gen/service/navigation/v1/navigation_pb2.pyi +188 -33
- viam/gen/service/sensors/v1/sensors_grpc.py +12 -0
- viam/gen/service/sensors/v1/sensors_pb2.py +60 -29
- viam/gen/service/sensors/v1/sensors_pb2.pyi +18 -21
- viam/gen/service/shell/v1/shell_grpc.py +27 -1
- viam/gen/service/shell/v1/shell_pb2.py +37 -15
- viam/gen/service/shell/v1/shell_pb2.pyi +260 -7
- viam/gen/service/slam/v1/slam_grpc.py +24 -2
- viam/gen/service/slam/v1/slam_pb2.py +44 -30
- viam/gen/service/slam/v1/slam_pb2.pyi +128 -27
- 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_grpc.py +39 -1
- viam/gen/service/vision/v1/vision_pb2.py +61 -45
- viam/gen/service/vision/v1/vision_pb2.pyi +180 -41
- 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/__init__.py +0 -0
- viam/gen/stream/v1/__init__.py +0 -0
- viam/gen/stream/v1/stream_grpc.py +59 -0
- viam/gen/stream/v1/stream_pb2.py +39 -0
- viam/gen/stream/v1/stream_pb2.pyi +161 -0
- viam/gen/tagger/v1/tagger_pb2.py +9 -8
- viam/logging.py +160 -17
- viam/media/__init__.py +0 -9
- viam/media/audio.py +22 -10
- viam/media/utils/__init__.py +0 -0
- viam/media/utils/pil/__init__.py +55 -0
- viam/media/{viam_rgba_plugin.py → utils/pil/viam_rgba_plugin.py} +10 -16
- viam/media/viam_rgba.py +10 -0
- viam/media/video.py +197 -73
- viam/module/module.py +191 -44
- viam/module/resource_data_consumer.py +41 -0
- viam/module/service.py +9 -1
- viam/module/types.py +4 -5
- viam/operations.py +4 -3
- viam/proto/app/__init__.py +361 -5
- viam/proto/app/agent/__init__.py +28 -0
- viam/proto/app/billing.py +51 -27
- viam/proto/app/cloudslam/__init__.py +48 -0
- viam/proto/app/data/__init__.py +103 -17
- viam/proto/app/datapipelines/__init__.py +56 -0
- viam/proto/app/dataset/__init__.py +40 -0
- viam/proto/app/datasync/__init__.py +11 -5
- viam/proto/app/end_user.py +34 -0
- viam/proto/app/mlinference/__init__.py +15 -0
- viam/proto/app/mltraining/__init__.py +25 -1
- viam/proto/app/packages/__init__.py +3 -3
- viam/proto/app/robot.py +19 -1
- viam/proto/common/__init__.py +35 -8
- viam/proto/component/arm/__init__.py +9 -1
- viam/proto/component/audioin/__init__.py +16 -0
- viam/proto/component/audioinput/__init__.py +3 -1
- viam/proto/component/audioout/__init__.py +15 -0
- viam/proto/component/base/__init__.py +7 -1
- viam/proto/component/board/__init__.py +13 -5
- viam/proto/component/button/__init__.py +15 -0
- viam/proto/component/camera/__init__.py +9 -1
- viam/proto/component/encoder/__init__.py +3 -1
- viam/proto/component/gantry/__init__.py +7 -1
- viam/proto/component/generic/__init__.py +3 -1
- viam/proto/component/gripper/__init__.py +7 -1
- viam/proto/component/inputcontroller/__init__.py +7 -1
- viam/proto/component/motor/__init__.py +7 -1
- viam/proto/component/movementsensor/__init__.py +7 -1
- viam/proto/component/posetracker/__init__.py +7 -1
- viam/proto/component/powersensor/__init__.py +30 -0
- viam/proto/component/sensor/__init__.py +3 -4
- viam/proto/component/servo/__init__.py +3 -1
- viam/proto/component/switch/__init__.py +26 -0
- viam/proto/component/testecho/__init__.py +3 -1
- viam/proto/module/__init__.py +3 -1
- 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 +42 -0
- viam/proto/robot/__init__.py +57 -9
- viam/proto/rpc/auth.py +11 -1
- viam/proto/rpc/examples/echo/__init__.py +3 -1
- viam/proto/rpc/examples/echoresource/__init__.py +7 -1
- viam/proto/rpc/webrtc/grpc.py +3 -1
- viam/proto/rpc/webrtc/signaling.py +5 -1
- viam/proto/service/datamanager/__init__.py +15 -2
- viam/proto/service/discovery/__init__.py +15 -0
- viam/proto/service/generic/__init__.py +12 -0
- viam/proto/service/mlmodel/__init__.py +27 -1
- viam/proto/service/motion/__init__.py +35 -5
- viam/proto/service/navigation/__init__.py +19 -1
- viam/proto/service/sensors/__init__.py +3 -1
- viam/proto/service/shell/__init__.py +25 -2
- viam/proto/service/slam/__init__.py +13 -1
- viam/proto/service/video/__init__.py +15 -0
- viam/proto/service/vision/__init__.py +11 -1
- viam/proto/service/worldstatestore/__init__.py +32 -0
- viam/proto/stream/__init__.py +36 -0
- viam/py.typed +0 -0
- viam/resource/base.py +45 -8
- viam/resource/easy_resource.py +149 -0
- viam/resource/manager.py +35 -14
- viam/resource/registry.py +40 -52
- viam/resource/rpc_client_base.py +33 -1
- viam/resource/rpc_service_base.py +15 -8
- viam/resource/types.py +39 -26
- viam/robot/client.py +458 -91
- viam/robot/service.py +13 -107
- viam/rpc/dial.py +133 -15
- viam/rpc/libviam_rust_utils.so +0 -0
- viam/rpc/server.py +59 -15
- viam/rpc/types.py +2 -4
- viam/services/discovery/__init__.py +12 -0
- viam/services/discovery/client.py +55 -0
- viam/services/discovery/discovery.py +52 -0
- viam/services/discovery/service.py +43 -0
- viam/services/generic/__init__.py +18 -0
- viam/services/generic/client.py +58 -0
- viam/services/generic/generic.py +58 -0
- viam/services/generic/service.py +29 -0
- viam/services/mlmodel/__init__.py +15 -1
- viam/services/mlmodel/client.py +20 -15
- viam/services/mlmodel/mlmodel.py +44 -7
- viam/services/mlmodel/service.py +9 -13
- viam/services/mlmodel/utils.py +101 -0
- viam/services/motion/__init__.py +15 -3
- viam/services/motion/client.py +109 -150
- viam/services/motion/motion.py +380 -0
- viam/services/motion/service.py +132 -0
- viam/services/navigation/__init__.py +11 -0
- viam/services/navigation/client.py +99 -0
- viam/services/navigation/navigation.py +250 -0
- viam/services/navigation/service.py +137 -0
- viam/services/service_base.py +43 -4
- viam/services/service_client_base.py +4 -4
- viam/services/slam/__init__.py +4 -1
- viam/services/slam/client.py +21 -11
- viam/services/slam/service.py +16 -19
- viam/services/slam/slam.py +66 -5
- viam/services/vision/__init__.py +8 -0
- viam/services/vision/client.py +115 -111
- viam/services/vision/service.py +143 -0
- viam/services/vision/vision.py +317 -0
- 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 +254 -0
- viam/streams.py +44 -0
- viam/utils.py +143 -15
- viam/version_metadata.py +4 -0
- viam_sdk-0.66.0.dist-info/METADATA +157 -0
- viam_sdk-0.66.0.dist-info/RECORD +531 -0
- {viam_sdk-0.3.0.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 -79
- viam/components/audio_input/client.py +0 -60
- viam/components/audio_input/service.py +0 -118
- viam/components/types.py +0 -5
- viam/gen/app/model/v1/model_grpc.py +0 -39
- viam/gen/app/model/v1/model_pb2.py +0 -71
- viam/gen/app/model/v1/model_pb2.pyi +0 -285
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_grpc.py +0 -21
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_pb2.py +0 -18
- viam/gen/proto/rpc/examples/fileupload/v1/fileupload_pb2.pyi +0 -49
- viam/media/media.py +0 -53
- viam/proto/app/model/__init__.py +0 -40
- viam/proto/rpc/examples/fileupload/__init__.py +0 -13
- viam/services/sensors/__init__.py +0 -5
- viam/services/sensors/client.py +0 -63
- viam_sdk-0.3.0.dist-info/LICENSE +0 -202
- viam_sdk-0.3.0.dist-info/METADATA +0 -122
- viam_sdk-0.3.0.dist-info/RECORD +0 -372
- /viam/{gen/app/model → app}/__init__.py +0 -0
- /viam/gen/app/{model/v1 → agent}/__init__.py +0 -0
- /viam/gen/{proto/rpc/examples/fileupload → app/agent/v1}/__init__.py +0 -0
- /viam/gen/{proto/rpc/examples/fileupload/v1 → app/cloudslam}/__init__.py +0 -0
- /LICENSE → /viam_sdk-0.66.0.dist-info/licenses/LICENSE +0 -0
|
@@ -2,6 +2,7 @@ import abc
|
|
|
2
2
|
import typing
|
|
3
3
|
import grpclib.const
|
|
4
4
|
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
5
6
|
if typing.TYPE_CHECKING:
|
|
6
7
|
import grpclib.server
|
|
7
8
|
from .... import common
|
|
@@ -27,6 +28,10 @@ class ArmServiceBase(abc.ABC):
|
|
|
27
28
|
async def MoveToJointPositions(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.MoveToJointPositionsRequest, component.arm.v1.arm_pb2.MoveToJointPositionsResponse]') -> None:
|
|
28
29
|
pass
|
|
29
30
|
|
|
31
|
+
@abc.abstractmethod
|
|
32
|
+
async def MoveThroughJointPositions(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.MoveThroughJointPositionsRequest, component.arm.v1.arm_pb2.MoveThroughJointPositionsResponse]') -> None:
|
|
33
|
+
pass
|
|
34
|
+
|
|
30
35
|
@abc.abstractmethod
|
|
31
36
|
async def Stop(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.StopRequest, component.arm.v1.arm_pb2.StopResponse]') -> None:
|
|
32
37
|
pass
|
|
@@ -39,8 +44,55 @@ class ArmServiceBase(abc.ABC):
|
|
|
39
44
|
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
40
45
|
pass
|
|
41
46
|
|
|
47
|
+
@abc.abstractmethod
|
|
48
|
+
async def GetKinematics(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse]') -> None:
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
@abc.abstractmethod
|
|
52
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
53
|
+
pass
|
|
54
|
+
|
|
55
|
+
@abc.abstractmethod
|
|
56
|
+
async def Get3DModels(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.Get3DModelsRequest, common.v1.common_pb2.Get3DModelsResponse]') -> None:
|
|
57
|
+
pass
|
|
58
|
+
|
|
42
59
|
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
43
|
-
return {'/viam.component.arm.v1.ArmService/GetEndPosition': grpclib.const.Handler(self.GetEndPosition, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.GetEndPositionRequest, component.arm.v1.arm_pb2.GetEndPositionResponse), '/viam.component.arm.v1.ArmService/MoveToPosition': grpclib.const.Handler(self.MoveToPosition, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.MoveToPositionRequest, component.arm.v1.arm_pb2.MoveToPositionResponse), '/viam.component.arm.v1.ArmService/GetJointPositions': grpclib.const.Handler(self.GetJointPositions, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.GetJointPositionsRequest, component.arm.v1.arm_pb2.GetJointPositionsResponse), '/viam.component.arm.v1.ArmService/MoveToJointPositions': grpclib.const.Handler(self.MoveToJointPositions, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.MoveToJointPositionsRequest, component.arm.v1.arm_pb2.MoveToJointPositionsResponse), '/viam.component.arm.v1.ArmService/Stop': grpclib.const.Handler(self.Stop, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.StopRequest, component.arm.v1.arm_pb2.StopResponse), '/viam.component.arm.v1.ArmService/IsMoving': grpclib.const.Handler(self.IsMoving, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.IsMovingRequest, component.arm.v1.arm_pb2.IsMovingResponse), '/viam.component.arm.v1.ArmService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
|
|
60
|
+
return {'/viam.component.arm.v1.ArmService/GetEndPosition': grpclib.const.Handler(self.GetEndPosition, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.GetEndPositionRequest, component.arm.v1.arm_pb2.GetEndPositionResponse), '/viam.component.arm.v1.ArmService/MoveToPosition': grpclib.const.Handler(self.MoveToPosition, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.MoveToPositionRequest, component.arm.v1.arm_pb2.MoveToPositionResponse), '/viam.component.arm.v1.ArmService/GetJointPositions': grpclib.const.Handler(self.GetJointPositions, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.GetJointPositionsRequest, component.arm.v1.arm_pb2.GetJointPositionsResponse), '/viam.component.arm.v1.ArmService/MoveToJointPositions': grpclib.const.Handler(self.MoveToJointPositions, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.MoveToJointPositionsRequest, component.arm.v1.arm_pb2.MoveToJointPositionsResponse), '/viam.component.arm.v1.ArmService/MoveThroughJointPositions': grpclib.const.Handler(self.MoveThroughJointPositions, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.MoveThroughJointPositionsRequest, component.arm.v1.arm_pb2.MoveThroughJointPositionsResponse), '/viam.component.arm.v1.ArmService/Stop': grpclib.const.Handler(self.Stop, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.StopRequest, component.arm.v1.arm_pb2.StopResponse), '/viam.component.arm.v1.ArmService/IsMoving': grpclib.const.Handler(self.IsMoving, grpclib.const.Cardinality.UNARY_UNARY, component.arm.v1.arm_pb2.IsMovingRequest, component.arm.v1.arm_pb2.IsMovingResponse), '/viam.component.arm.v1.ArmService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.arm.v1.ArmService/GetKinematics': grpclib.const.Handler(self.GetKinematics, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse), '/viam.component.arm.v1.ArmService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse), '/viam.component.arm.v1.ArmService/Get3DModels': grpclib.const.Handler(self.Get3DModels, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.Get3DModelsRequest, common.v1.common_pb2.Get3DModelsResponse)}
|
|
61
|
+
|
|
62
|
+
class UnimplementedArmServiceBase(ArmServiceBase):
|
|
63
|
+
|
|
64
|
+
async def GetEndPosition(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.GetEndPositionRequest, component.arm.v1.arm_pb2.GetEndPositionResponse]') -> None:
|
|
65
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
66
|
+
|
|
67
|
+
async def MoveToPosition(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.MoveToPositionRequest, component.arm.v1.arm_pb2.MoveToPositionResponse]') -> None:
|
|
68
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
69
|
+
|
|
70
|
+
async def GetJointPositions(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.GetJointPositionsRequest, component.arm.v1.arm_pb2.GetJointPositionsResponse]') -> None:
|
|
71
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
72
|
+
|
|
73
|
+
async def MoveToJointPositions(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.MoveToJointPositionsRequest, component.arm.v1.arm_pb2.MoveToJointPositionsResponse]') -> None:
|
|
74
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
75
|
+
|
|
76
|
+
async def MoveThroughJointPositions(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.MoveThroughJointPositionsRequest, component.arm.v1.arm_pb2.MoveThroughJointPositionsResponse]') -> None:
|
|
77
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
78
|
+
|
|
79
|
+
async def Stop(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.StopRequest, component.arm.v1.arm_pb2.StopResponse]') -> None:
|
|
80
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
81
|
+
|
|
82
|
+
async def IsMoving(self, stream: 'grpclib.server.Stream[component.arm.v1.arm_pb2.IsMovingRequest, component.arm.v1.arm_pb2.IsMovingResponse]') -> None:
|
|
83
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
84
|
+
|
|
85
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
86
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
87
|
+
|
|
88
|
+
async def GetKinematics(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse]') -> None:
|
|
89
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
90
|
+
|
|
91
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
92
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
93
|
+
|
|
94
|
+
async def Get3DModels(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.Get3DModelsRequest, common.v1.common_pb2.Get3DModelsResponse]') -> None:
|
|
95
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
44
96
|
|
|
45
97
|
class ArmServiceStub:
|
|
46
98
|
|
|
@@ -49,6 +101,10 @@ class ArmServiceStub:
|
|
|
49
101
|
self.MoveToPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/MoveToPosition', component.arm.v1.arm_pb2.MoveToPositionRequest, component.arm.v1.arm_pb2.MoveToPositionResponse)
|
|
50
102
|
self.GetJointPositions = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/GetJointPositions', component.arm.v1.arm_pb2.GetJointPositionsRequest, component.arm.v1.arm_pb2.GetJointPositionsResponse)
|
|
51
103
|
self.MoveToJointPositions = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/MoveToJointPositions', component.arm.v1.arm_pb2.MoveToJointPositionsRequest, component.arm.v1.arm_pb2.MoveToJointPositionsResponse)
|
|
104
|
+
self.MoveThroughJointPositions = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/MoveThroughJointPositions', component.arm.v1.arm_pb2.MoveThroughJointPositionsRequest, component.arm.v1.arm_pb2.MoveThroughJointPositionsResponse)
|
|
52
105
|
self.Stop = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/Stop', component.arm.v1.arm_pb2.StopRequest, component.arm.v1.arm_pb2.StopResponse)
|
|
53
106
|
self.IsMoving = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/IsMoving', component.arm.v1.arm_pb2.IsMovingRequest, component.arm.v1.arm_pb2.IsMovingResponse)
|
|
54
|
-
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
107
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
108
|
+
self.GetKinematics = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/GetKinematics', common.v1.common_pb2.GetKinematicsRequest, common.v1.common_pb2.GetKinematicsResponse)
|
|
109
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|
|
110
|
+
self.Get3DModels = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.arm.v1.ArmService/Get3DModels', common.v1.common_pb2.Get3DModelsRequest, common.v1.common_pb2.Get3DModelsResponse)
|
|
@@ -1,59 +1,76 @@
|
|
|
1
1
|
"""Generated protocol buffer code."""
|
|
2
|
-
from google.protobuf.internal import builder as _builder
|
|
3
2
|
from google.protobuf import descriptor as _descriptor
|
|
4
3
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
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/arm/v1/arm.proto')
|
|
6
8
|
_sym_db = _symbol_database.Default()
|
|
7
9
|
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
8
10
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
9
11
|
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
10
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1acomponent/arm/v1/arm.proto\x12\x15viam.component.arm.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"Z\n\x15GetEndPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"B\n\x16GetEndPositionResponse\x12(\n\x04pose\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x04pose"(\n\x0eJointPositions\x12\x16\n\x06values\x18\x01 \x03(\x01R\x06values"]\n\x18GetJointPositionsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"`\n\x19GetJointPositionsResponse\x12C\n\tpositions\x18\x01 \x01(\x0b2%.viam.component.arm.v1.JointPositionsR\tpositions"\x80\x01\n\x15MoveToPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12$\n\x02to\x18\x02 \x01(\x0b2\x14.viam.common.v1.PoseR\x02to\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x18\n\x16MoveToPositionResponse"\xa5\x01\n\x1bMoveToJointPositionsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12C\n\tpositions\x18\x02 \x01(\x0b2%.viam.component.arm.v1.JointPositionsR\tpositions\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x1e\n\x1cMoveToJointPositionsResponse"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"\xae\x01\n\x06Status\x127\n\x0cend_position\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x0bendPosition\x12N\n\x0fjoint_positions\x18\x02 \x01(\x0b2%.viam.component.arm.v1.JointPositionsR\x0ejointPositions\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\
|
|
11
|
-
|
|
12
|
-
_builder.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
DESCRIPTOR.
|
|
16
|
-
|
|
17
|
-
_ARMSERVICE.methods_by_name['GetEndPosition'].
|
|
18
|
-
_ARMSERVICE.methods_by_name['
|
|
19
|
-
_ARMSERVICE.methods_by_name['MoveToPosition'].
|
|
20
|
-
_ARMSERVICE.methods_by_name['
|
|
21
|
-
_ARMSERVICE.methods_by_name['GetJointPositions'].
|
|
22
|
-
_ARMSERVICE.methods_by_name['
|
|
23
|
-
_ARMSERVICE.methods_by_name['MoveToJointPositions'].
|
|
24
|
-
_ARMSERVICE.methods_by_name['
|
|
25
|
-
_ARMSERVICE.methods_by_name['
|
|
26
|
-
_ARMSERVICE.methods_by_name['
|
|
27
|
-
_ARMSERVICE.methods_by_name['
|
|
28
|
-
_ARMSERVICE.methods_by_name['
|
|
29
|
-
_ARMSERVICE.methods_by_name['
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1acomponent/arm/v1/arm.proto\x12\x15viam.component.arm.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"Z\n\x15GetEndPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"B\n\x16GetEndPositionResponse\x12(\n\x04pose\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x04pose"(\n\x0eJointPositions\x12\x16\n\x06values\x18\x01 \x03(\x01R\x06values"]\n\x18GetJointPositionsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"`\n\x19GetJointPositionsResponse\x12C\n\tpositions\x18\x01 \x01(\x0b2%.viam.component.arm.v1.JointPositionsR\tpositions"\x80\x01\n\x15MoveToPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12$\n\x02to\x18\x02 \x01(\x0b2\x14.viam.common.v1.PoseR\x02to\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x18\n\x16MoveToPositionResponse"\xa5\x01\n\x1bMoveToJointPositionsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12C\n\tpositions\x18\x02 \x01(\x0b2%.viam.component.arm.v1.JointPositionsR\tpositions\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x1e\n\x1cMoveToJointPositionsResponse"\xf9\x01\n MoveThroughJointPositionsRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12C\n\tpositions\x18\x02 \x03(\x0b2%.viam.component.arm.v1.JointPositionsR\tpositions\x12A\n\x07options\x18\x03 \x01(\x0b2".viam.component.arm.v1.MoveOptionsH\x00R\x07options\x88\x01\x01\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extraB\n\n\x08_options"#\n!MoveThroughJointPositionsResponse"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"\xae\x01\n\x06Status\x127\n\x0cend_position\x18\x01 \x01(\x0b2\x14.viam.common.v1.PoseR\x0bendPosition\x12N\n\x0fjoint_positions\x18\x02 \x01(\x0b2%.viam.component.arm.v1.JointPositionsR\x0ejointPositions\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\x08isMoving"\xac\x01\n\x0bMoveOptions\x123\n\x14max_vel_degs_per_sec\x18\x01 \x01(\x01H\x00R\x10maxVelDegsPerSec\x88\x01\x01\x125\n\x15max_acc_degs_per_sec2\x18\x02 \x01(\x01H\x01R\x11maxAccDegsPerSec2\x88\x01\x01B\x17\n\x15_max_vel_degs_per_secB\x18\n\x16_max_acc_degs_per_sec22\xff\r\n\nArmService\x12\xa1\x01\n\x0eGetEndPosition\x12,.viam.component.arm.v1.GetEndPositionRequest\x1a-.viam.component.arm.v1.GetEndPositionResponse"2\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/arm/{name}/position\x12\xa5\x01\n\x0eMoveToPosition\x12,.viam.component.arm.v1.MoveToPositionRequest\x1a-.viam.component.arm.v1.MoveToPositionResponse"6\xa0\x92)\x01\x82\xd3\xe4\x93\x02,\x1a*/viam/api/v1/component/arm/{name}/position\x12\xb1\x01\n\x11GetJointPositions\x12/.viam.component.arm.v1.GetJointPositionsRequest\x1a0.viam.component.arm.v1.GetJointPositionsResponse"9\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/arm/{name}/joint_positions\x12\xbe\x01\n\x14MoveToJointPositions\x122.viam.component.arm.v1.MoveToJointPositionsRequest\x1a3.viam.component.arm.v1.MoveToJointPositionsResponse"=\xa0\x92)\x01\x82\xd3\xe4\x93\x023\x1a1/viam/api/v1/component/arm/{name}/joint_positions\x12\xda\x01\n\x19MoveThroughJointPositions\x127.viam.component.arm.v1.MoveThroughJointPositionsRequest\x1a8.viam.component.arm.v1.MoveThroughJointPositionsResponse"J\xa0\x92)\x01\x82\xd3\xe4\x93\x02@">/viam/api/v1/component/arm/{name}/move_through_joint_positions\x12\x7f\n\x04Stop\x12".viam.component.arm.v1.StopRequest\x1a#.viam.component.arm.v1.StopResponse".\x82\xd3\xe4\x93\x02("&/viam/api/v1/component/arm/{name}/stop\x12\x90\x01\n\x08IsMoving\x12&.viam.component.arm.v1.IsMovingRequest\x1a\'.viam.component.arm.v1.IsMovingResponse"3\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/arm/{name}/is_moving\x12\x86\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"4\x82\xd3\xe4\x93\x02.",/viam/api/v1/component/arm/{name}/do_command\x12\x92\x01\n\rGetKinematics\x12$.viam.common.v1.GetKinematicsRequest\x1a%.viam.common.v1.GetKinematicsResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/arm/{name}/kinematics\x12\x92\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/arm/{name}/geometries\x12\x8b\x01\n\x0bGet3DModels\x12".viam.common.v1.Get3DModelsRequest\x1a#.viam.common.v1.Get3DModelsResponse"3\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/arm/{name}/3d_modelsB=\n\x19com.viam.component.arm.v1Z go.viam.com/api/component/arm/v1b\x06proto3')
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.arm.v1.arm_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x19com.viam.component.arm.v1Z go.viam.com/api/component/arm/v1'
|
|
19
|
+
_globals['_ARMSERVICE'].methods_by_name['GetEndPosition']._loaded_options = None
|
|
20
|
+
_globals['_ARMSERVICE'].methods_by_name['GetEndPosition']._serialized_options = b'\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/arm/{name}/position'
|
|
21
|
+
_globals['_ARMSERVICE'].methods_by_name['MoveToPosition']._loaded_options = None
|
|
22
|
+
_globals['_ARMSERVICE'].methods_by_name['MoveToPosition']._serialized_options = b'\xa0\x92)\x01\x82\xd3\xe4\x93\x02,\x1a*/viam/api/v1/component/arm/{name}/position'
|
|
23
|
+
_globals['_ARMSERVICE'].methods_by_name['GetJointPositions']._loaded_options = None
|
|
24
|
+
_globals['_ARMSERVICE'].methods_by_name['GetJointPositions']._serialized_options = b'\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/arm/{name}/joint_positions'
|
|
25
|
+
_globals['_ARMSERVICE'].methods_by_name['MoveToJointPositions']._loaded_options = None
|
|
26
|
+
_globals['_ARMSERVICE'].methods_by_name['MoveToJointPositions']._serialized_options = b'\xa0\x92)\x01\x82\xd3\xe4\x93\x023\x1a1/viam/api/v1/component/arm/{name}/joint_positions'
|
|
27
|
+
_globals['_ARMSERVICE'].methods_by_name['MoveThroughJointPositions']._loaded_options = None
|
|
28
|
+
_globals['_ARMSERVICE'].methods_by_name['MoveThroughJointPositions']._serialized_options = b'\xa0\x92)\x01\x82\xd3\xe4\x93\x02@">/viam/api/v1/component/arm/{name}/move_through_joint_positions'
|
|
29
|
+
_globals['_ARMSERVICE'].methods_by_name['Stop']._loaded_options = None
|
|
30
|
+
_globals['_ARMSERVICE'].methods_by_name['Stop']._serialized_options = b'\x82\xd3\xe4\x93\x02("&/viam/api/v1/component/arm/{name}/stop'
|
|
31
|
+
_globals['_ARMSERVICE'].methods_by_name['IsMoving']._loaded_options = None
|
|
32
|
+
_globals['_ARMSERVICE'].methods_by_name['IsMoving']._serialized_options = b'\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/arm/{name}/is_moving'
|
|
33
|
+
_globals['_ARMSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
34
|
+
_globals['_ARMSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x02.",/viam/api/v1/component/arm/{name}/do_command'
|
|
35
|
+
_globals['_ARMSERVICE'].methods_by_name['GetKinematics']._loaded_options = None
|
|
36
|
+
_globals['_ARMSERVICE'].methods_by_name['GetKinematics']._serialized_options = b'\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/arm/{name}/kinematics'
|
|
37
|
+
_globals['_ARMSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
38
|
+
_globals['_ARMSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/component/arm/{name}/geometries'
|
|
39
|
+
_globals['_ARMSERVICE'].methods_by_name['Get3DModels']._loaded_options = None
|
|
40
|
+
_globals['_ARMSERVICE'].methods_by_name['Get3DModels']._serialized_options = b'\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/arm/{name}/3d_models'
|
|
41
|
+
_globals['_GETENDPOSITIONREQUEST']._serialized_start = 137
|
|
42
|
+
_globals['_GETENDPOSITIONREQUEST']._serialized_end = 227
|
|
43
|
+
_globals['_GETENDPOSITIONRESPONSE']._serialized_start = 229
|
|
44
|
+
_globals['_GETENDPOSITIONRESPONSE']._serialized_end = 295
|
|
45
|
+
_globals['_JOINTPOSITIONS']._serialized_start = 297
|
|
46
|
+
_globals['_JOINTPOSITIONS']._serialized_end = 337
|
|
47
|
+
_globals['_GETJOINTPOSITIONSREQUEST']._serialized_start = 339
|
|
48
|
+
_globals['_GETJOINTPOSITIONSREQUEST']._serialized_end = 432
|
|
49
|
+
_globals['_GETJOINTPOSITIONSRESPONSE']._serialized_start = 434
|
|
50
|
+
_globals['_GETJOINTPOSITIONSRESPONSE']._serialized_end = 530
|
|
51
|
+
_globals['_MOVETOPOSITIONREQUEST']._serialized_start = 533
|
|
52
|
+
_globals['_MOVETOPOSITIONREQUEST']._serialized_end = 661
|
|
53
|
+
_globals['_MOVETOPOSITIONRESPONSE']._serialized_start = 663
|
|
54
|
+
_globals['_MOVETOPOSITIONRESPONSE']._serialized_end = 687
|
|
55
|
+
_globals['_MOVETOJOINTPOSITIONSREQUEST']._serialized_start = 690
|
|
56
|
+
_globals['_MOVETOJOINTPOSITIONSREQUEST']._serialized_end = 855
|
|
57
|
+
_globals['_MOVETOJOINTPOSITIONSRESPONSE']._serialized_start = 857
|
|
58
|
+
_globals['_MOVETOJOINTPOSITIONSRESPONSE']._serialized_end = 887
|
|
59
|
+
_globals['_MOVETHROUGHJOINTPOSITIONSREQUEST']._serialized_start = 890
|
|
60
|
+
_globals['_MOVETHROUGHJOINTPOSITIONSREQUEST']._serialized_end = 1139
|
|
61
|
+
_globals['_MOVETHROUGHJOINTPOSITIONSRESPONSE']._serialized_start = 1141
|
|
62
|
+
_globals['_MOVETHROUGHJOINTPOSITIONSRESPONSE']._serialized_end = 1176
|
|
63
|
+
_globals['_STOPREQUEST']._serialized_start = 1178
|
|
64
|
+
_globals['_STOPREQUEST']._serialized_end = 1258
|
|
65
|
+
_globals['_STOPRESPONSE']._serialized_start = 1260
|
|
66
|
+
_globals['_STOPRESPONSE']._serialized_end = 1274
|
|
67
|
+
_globals['_STATUS']._serialized_start = 1277
|
|
68
|
+
_globals['_STATUS']._serialized_end = 1451
|
|
69
|
+
_globals['_ISMOVINGREQUEST']._serialized_start = 1453
|
|
70
|
+
_globals['_ISMOVINGREQUEST']._serialized_end = 1490
|
|
71
|
+
_globals['_ISMOVINGRESPONSE']._serialized_start = 1492
|
|
72
|
+
_globals['_ISMOVINGRESPONSE']._serialized_end = 1539
|
|
73
|
+
_globals['_MOVEOPTIONS']._serialized_start = 1542
|
|
74
|
+
_globals['_MOVEOPTIONS']._serialized_end = 1714
|
|
75
|
+
_globals['_ARMSERVICE']._serialized_start = 1717
|
|
76
|
+
_globals['_ARMSERVICE']._serialized_end = 3508
|
|
@@ -9,14 +9,10 @@ import google.protobuf.descriptor
|
|
|
9
9
|
import google.protobuf.internal.containers
|
|
10
10
|
import google.protobuf.message
|
|
11
11
|
import google.protobuf.struct_pb2
|
|
12
|
-
import
|
|
13
|
-
if sys.version_info >= (3, 8):
|
|
14
|
-
import typing as typing_extensions
|
|
15
|
-
else:
|
|
16
|
-
import typing_extensions
|
|
12
|
+
import typing
|
|
17
13
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
18
14
|
|
|
19
|
-
@
|
|
15
|
+
@typing.final
|
|
20
16
|
class GetEndPositionRequest(google.protobuf.message.Message):
|
|
21
17
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
18
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -31,14 +27,14 @@ class GetEndPositionRequest(google.protobuf.message.Message):
|
|
|
31
27
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
32
28
|
...
|
|
33
29
|
|
|
34
|
-
def HasField(self, field_name:
|
|
30
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
35
31
|
...
|
|
36
32
|
|
|
37
|
-
def ClearField(self, field_name:
|
|
33
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
38
34
|
...
|
|
39
35
|
global___GetEndPositionRequest = GetEndPositionRequest
|
|
40
36
|
|
|
41
|
-
@
|
|
37
|
+
@typing.final
|
|
42
38
|
class GetEndPositionResponse(google.protobuf.message.Message):
|
|
43
39
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
44
40
|
POSE_FIELD_NUMBER: builtins.int
|
|
@@ -52,14 +48,14 @@ class GetEndPositionResponse(google.protobuf.message.Message):
|
|
|
52
48
|
def __init__(self, *, pose: common.v1.common_pb2.Pose | None=...) -> None:
|
|
53
49
|
...
|
|
54
50
|
|
|
55
|
-
def HasField(self, field_name:
|
|
51
|
+
def HasField(self, field_name: typing.Literal['pose', b'pose']) -> builtins.bool:
|
|
56
52
|
...
|
|
57
53
|
|
|
58
|
-
def ClearField(self, field_name:
|
|
54
|
+
def ClearField(self, field_name: typing.Literal['pose', b'pose']) -> None:
|
|
59
55
|
...
|
|
60
56
|
global___GetEndPositionResponse = GetEndPositionResponse
|
|
61
57
|
|
|
62
|
-
@
|
|
58
|
+
@typing.final
|
|
63
59
|
class JointPositions(google.protobuf.message.Message):
|
|
64
60
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
65
61
|
VALUES_FIELD_NUMBER: builtins.int
|
|
@@ -67,18 +63,17 @@ class JointPositions(google.protobuf.message.Message):
|
|
|
67
63
|
@property
|
|
68
64
|
def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
|
|
69
65
|
"""A list of joint positions. Rotations values are in degrees, translational values in mm.
|
|
70
|
-
|
|
71
|
-
This is used in GetJointPositionsResponse and MoveToJointPositionsRequest
|
|
66
|
+
There should be 1 entry in the list per joint DOF, ordered spatially from the base toward the end effector of the arm
|
|
72
67
|
"""
|
|
73
68
|
|
|
74
69
|
def __init__(self, *, values: collections.abc.Iterable[builtins.float] | None=...) -> None:
|
|
75
70
|
...
|
|
76
71
|
|
|
77
|
-
def ClearField(self, field_name:
|
|
72
|
+
def ClearField(self, field_name: typing.Literal['values', b'values']) -> None:
|
|
78
73
|
...
|
|
79
74
|
global___JointPositions = JointPositions
|
|
80
75
|
|
|
81
|
-
@
|
|
76
|
+
@typing.final
|
|
82
77
|
class GetJointPositionsRequest(google.protobuf.message.Message):
|
|
83
78
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
84
79
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -93,14 +88,14 @@ class GetJointPositionsRequest(google.protobuf.message.Message):
|
|
|
93
88
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
94
89
|
...
|
|
95
90
|
|
|
96
|
-
def HasField(self, field_name:
|
|
91
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
97
92
|
...
|
|
98
93
|
|
|
99
|
-
def ClearField(self, field_name:
|
|
94
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
100
95
|
...
|
|
101
96
|
global___GetJointPositionsRequest = GetJointPositionsRequest
|
|
102
97
|
|
|
103
|
-
@
|
|
98
|
+
@typing.final
|
|
104
99
|
class GetJointPositionsResponse(google.protobuf.message.Message):
|
|
105
100
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
106
101
|
POSITIONS_FIELD_NUMBER: builtins.int
|
|
@@ -112,14 +107,14 @@ class GetJointPositionsResponse(google.protobuf.message.Message):
|
|
|
112
107
|
def __init__(self, *, positions: global___JointPositions | None=...) -> None:
|
|
113
108
|
...
|
|
114
109
|
|
|
115
|
-
def HasField(self, field_name:
|
|
110
|
+
def HasField(self, field_name: typing.Literal['positions', b'positions']) -> builtins.bool:
|
|
116
111
|
...
|
|
117
112
|
|
|
118
|
-
def ClearField(self, field_name:
|
|
113
|
+
def ClearField(self, field_name: typing.Literal['positions', b'positions']) -> None:
|
|
119
114
|
...
|
|
120
115
|
global___GetJointPositionsResponse = GetJointPositionsResponse
|
|
121
116
|
|
|
122
|
-
@
|
|
117
|
+
@typing.final
|
|
123
118
|
class MoveToPositionRequest(google.protobuf.message.Message):
|
|
124
119
|
"""Moves an arm to the specified pose that is within the reference frame of the arm.
|
|
125
120
|
Move request in Motion API has the same behavior except that it performs obstacle avoidance when a world_state
|
|
@@ -143,14 +138,14 @@ class MoveToPositionRequest(google.protobuf.message.Message):
|
|
|
143
138
|
def __init__(self, *, name: builtins.str=..., to: common.v1.common_pb2.Pose | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
144
139
|
...
|
|
145
140
|
|
|
146
|
-
def HasField(self, field_name:
|
|
141
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra', 'to', b'to']) -> builtins.bool:
|
|
147
142
|
...
|
|
148
143
|
|
|
149
|
-
def ClearField(self, field_name:
|
|
144
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name', 'to', b'to']) -> None:
|
|
150
145
|
...
|
|
151
146
|
global___MoveToPositionRequest = MoveToPositionRequest
|
|
152
147
|
|
|
153
|
-
@
|
|
148
|
+
@typing.final
|
|
154
149
|
class MoveToPositionResponse(google.protobuf.message.Message):
|
|
155
150
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
156
151
|
|
|
@@ -158,7 +153,7 @@ class MoveToPositionResponse(google.protobuf.message.Message):
|
|
|
158
153
|
...
|
|
159
154
|
global___MoveToPositionResponse = MoveToPositionResponse
|
|
160
155
|
|
|
161
|
-
@
|
|
156
|
+
@typing.final
|
|
162
157
|
class MoveToJointPositionsRequest(google.protobuf.message.Message):
|
|
163
158
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
164
159
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -180,14 +175,14 @@ class MoveToJointPositionsRequest(google.protobuf.message.Message):
|
|
|
180
175
|
def __init__(self, *, name: builtins.str=..., positions: global___JointPositions | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
181
176
|
...
|
|
182
177
|
|
|
183
|
-
def HasField(self, field_name:
|
|
178
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra', 'positions', b'positions']) -> builtins.bool:
|
|
184
179
|
...
|
|
185
180
|
|
|
186
|
-
def ClearField(self, field_name:
|
|
181
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name', 'positions', b'positions']) -> None:
|
|
187
182
|
...
|
|
188
183
|
global___MoveToJointPositionsRequest = MoveToJointPositionsRequest
|
|
189
184
|
|
|
190
|
-
@
|
|
185
|
+
@typing.final
|
|
191
186
|
class MoveToJointPositionsResponse(google.protobuf.message.Message):
|
|
192
187
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
193
188
|
|
|
@@ -195,7 +190,50 @@ class MoveToJointPositionsResponse(google.protobuf.message.Message):
|
|
|
195
190
|
...
|
|
196
191
|
global___MoveToJointPositionsResponse = MoveToJointPositionsResponse
|
|
197
192
|
|
|
198
|
-
@
|
|
193
|
+
@typing.final
|
|
194
|
+
class MoveThroughJointPositionsRequest(google.protobuf.message.Message):
|
|
195
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
196
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
197
|
+
POSITIONS_FIELD_NUMBER: builtins.int
|
|
198
|
+
OPTIONS_FIELD_NUMBER: builtins.int
|
|
199
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
200
|
+
name: builtins.str
|
|
201
|
+
'Name of an arm'
|
|
202
|
+
|
|
203
|
+
@property
|
|
204
|
+
def positions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___JointPositions]:
|
|
205
|
+
"""A list of joint positions which will be moved to in the order they are specified"""
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def options(self) -> global___MoveOptions:
|
|
209
|
+
"""optional specifications to be obeyed during the motion"""
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
213
|
+
"""Additional arguments to the method"""
|
|
214
|
+
|
|
215
|
+
def __init__(self, *, name: builtins.str=..., positions: collections.abc.Iterable[global___JointPositions] | None=..., options: global___MoveOptions | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
216
|
+
...
|
|
217
|
+
|
|
218
|
+
def HasField(self, field_name: typing.Literal['_options', b'_options', 'extra', b'extra', 'options', b'options']) -> builtins.bool:
|
|
219
|
+
...
|
|
220
|
+
|
|
221
|
+
def ClearField(self, field_name: typing.Literal['_options', b'_options', 'extra', b'extra', 'name', b'name', 'options', b'options', 'positions', b'positions']) -> None:
|
|
222
|
+
...
|
|
223
|
+
|
|
224
|
+
def WhichOneof(self, oneof_group: typing.Literal['_options', b'_options']) -> typing.Literal['options'] | None:
|
|
225
|
+
...
|
|
226
|
+
global___MoveThroughJointPositionsRequest = MoveThroughJointPositionsRequest
|
|
227
|
+
|
|
228
|
+
@typing.final
|
|
229
|
+
class MoveThroughJointPositionsResponse(google.protobuf.message.Message):
|
|
230
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
231
|
+
|
|
232
|
+
def __init__(self) -> None:
|
|
233
|
+
...
|
|
234
|
+
global___MoveThroughJointPositionsResponse = MoveThroughJointPositionsResponse
|
|
235
|
+
|
|
236
|
+
@typing.final
|
|
199
237
|
class StopRequest(google.protobuf.message.Message):
|
|
200
238
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
201
239
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -210,14 +248,14 @@ class StopRequest(google.protobuf.message.Message):
|
|
|
210
248
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
211
249
|
...
|
|
212
250
|
|
|
213
|
-
def HasField(self, field_name:
|
|
251
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
214
252
|
...
|
|
215
253
|
|
|
216
|
-
def ClearField(self, field_name:
|
|
254
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
217
255
|
...
|
|
218
256
|
global___StopRequest = StopRequest
|
|
219
257
|
|
|
220
|
-
@
|
|
258
|
+
@typing.final
|
|
221
259
|
class StopResponse(google.protobuf.message.Message):
|
|
222
260
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
223
261
|
|
|
@@ -225,12 +263,13 @@ class StopResponse(google.protobuf.message.Message):
|
|
|
225
263
|
...
|
|
226
264
|
global___StopResponse = StopResponse
|
|
227
265
|
|
|
228
|
-
@
|
|
266
|
+
@typing.final
|
|
229
267
|
class Status(google.protobuf.message.Message):
|
|
230
268
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
231
269
|
END_POSITION_FIELD_NUMBER: builtins.int
|
|
232
270
|
JOINT_POSITIONS_FIELD_NUMBER: builtins.int
|
|
233
271
|
IS_MOVING_FIELD_NUMBER: builtins.int
|
|
272
|
+
is_moving: builtins.bool
|
|
234
273
|
|
|
235
274
|
@property
|
|
236
275
|
def end_position(self) -> common.v1.common_pb2.Pose:
|
|
@@ -239,19 +278,18 @@ class Status(google.protobuf.message.Message):
|
|
|
239
278
|
@property
|
|
240
279
|
def joint_positions(self) -> global___JointPositions:
|
|
241
280
|
...
|
|
242
|
-
is_moving: builtins.bool
|
|
243
281
|
|
|
244
282
|
def __init__(self, *, end_position: common.v1.common_pb2.Pose | None=..., joint_positions: global___JointPositions | None=..., is_moving: builtins.bool=...) -> None:
|
|
245
283
|
...
|
|
246
284
|
|
|
247
|
-
def HasField(self, field_name:
|
|
285
|
+
def HasField(self, field_name: typing.Literal['end_position', b'end_position', 'joint_positions', b'joint_positions']) -> builtins.bool:
|
|
248
286
|
...
|
|
249
287
|
|
|
250
|
-
def ClearField(self, field_name:
|
|
288
|
+
def ClearField(self, field_name: typing.Literal['end_position', b'end_position', 'is_moving', b'is_moving', 'joint_positions', b'joint_positions']) -> None:
|
|
251
289
|
...
|
|
252
290
|
global___Status = Status
|
|
253
291
|
|
|
254
|
-
@
|
|
292
|
+
@typing.final
|
|
255
293
|
class IsMovingRequest(google.protobuf.message.Message):
|
|
256
294
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
257
295
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -260,11 +298,11 @@ class IsMovingRequest(google.protobuf.message.Message):
|
|
|
260
298
|
def __init__(self, *, name: builtins.str=...) -> None:
|
|
261
299
|
...
|
|
262
300
|
|
|
263
|
-
def ClearField(self, field_name:
|
|
301
|
+
def ClearField(self, field_name: typing.Literal['name', b'name']) -> None:
|
|
264
302
|
...
|
|
265
303
|
global___IsMovingRequest = IsMovingRequest
|
|
266
304
|
|
|
267
|
-
@
|
|
305
|
+
@typing.final
|
|
268
306
|
class IsMovingResponse(google.protobuf.message.Message):
|
|
269
307
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
270
308
|
IS_MOVING_FIELD_NUMBER: builtins.int
|
|
@@ -273,6 +311,34 @@ class IsMovingResponse(google.protobuf.message.Message):
|
|
|
273
311
|
def __init__(self, *, is_moving: builtins.bool=...) -> None:
|
|
274
312
|
...
|
|
275
313
|
|
|
276
|
-
def ClearField(self, field_name:
|
|
314
|
+
def ClearField(self, field_name: typing.Literal['is_moving', b'is_moving']) -> None:
|
|
315
|
+
...
|
|
316
|
+
global___IsMovingResponse = IsMovingResponse
|
|
317
|
+
|
|
318
|
+
@typing.final
|
|
319
|
+
class MoveOptions(google.protobuf.message.Message):
|
|
320
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
321
|
+
MAX_VEL_DEGS_PER_SEC_FIELD_NUMBER: builtins.int
|
|
322
|
+
MAX_ACC_DEGS_PER_SEC2_FIELD_NUMBER: builtins.int
|
|
323
|
+
max_vel_degs_per_sec: builtins.float
|
|
324
|
+
'Maximum allowable velocity of an arm joint, in degrees per second'
|
|
325
|
+
max_acc_degs_per_sec2: builtins.float
|
|
326
|
+
'Maximum allowable acceleration of an arm joint, in degrees per second squared'
|
|
327
|
+
|
|
328
|
+
def __init__(self, *, max_vel_degs_per_sec: builtins.float | None=..., max_acc_degs_per_sec2: builtins.float | None=...) -> None:
|
|
329
|
+
...
|
|
330
|
+
|
|
331
|
+
def HasField(self, field_name: typing.Literal['_max_acc_degs_per_sec2', b'_max_acc_degs_per_sec2', '_max_vel_degs_per_sec', b'_max_vel_degs_per_sec', 'max_acc_degs_per_sec2', b'max_acc_degs_per_sec2', 'max_vel_degs_per_sec', b'max_vel_degs_per_sec']) -> builtins.bool:
|
|
332
|
+
...
|
|
333
|
+
|
|
334
|
+
def ClearField(self, field_name: typing.Literal['_max_acc_degs_per_sec2', b'_max_acc_degs_per_sec2', '_max_vel_degs_per_sec', b'_max_vel_degs_per_sec', 'max_acc_degs_per_sec2', b'max_acc_degs_per_sec2', 'max_vel_degs_per_sec', b'max_vel_degs_per_sec']) -> None:
|
|
335
|
+
...
|
|
336
|
+
|
|
337
|
+
@typing.overload
|
|
338
|
+
def WhichOneof(self, oneof_group: typing.Literal['_max_acc_degs_per_sec2', b'_max_acc_degs_per_sec2']) -> typing.Literal['max_acc_degs_per_sec2'] | None:
|
|
339
|
+
...
|
|
340
|
+
|
|
341
|
+
@typing.overload
|
|
342
|
+
def WhichOneof(self, oneof_group: typing.Literal['_max_vel_degs_per_sec', b'_max_vel_degs_per_sec']) -> typing.Literal['max_vel_degs_per_sec'] | None:
|
|
277
343
|
...
|
|
278
|
-
|
|
344
|
+
global___MoveOptions = MoveOptions
|
|
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 AudioInServiceBase(abc.ABC):
|
|
14
|
+
|
|
15
|
+
@abc.abstractmethod
|
|
16
|
+
async def GetAudio(self, stream: 'grpclib.server.Stream[component.audioin.v1.audioin_pb2.GetAudioRequest, component.audioin.v1.audioin_pb2.GetAudioResponse]') -> 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.audioin.v1.AudioInService/GetAudio': grpclib.const.Handler(self.GetAudio, grpclib.const.Cardinality.UNARY_STREAM, component.audioin.v1.audioin_pb2.GetAudioRequest, component.audioin.v1.audioin_pb2.GetAudioResponse), '/viam.component.audioin.v1.AudioInService/GetProperties': grpclib.const.Handler(self.GetProperties, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetPropertiesRequest, common.v1.common_pb2.GetPropertiesResponse), '/viam.component.audioin.v1.AudioInService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.audioin.v1.AudioInService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
33
|
+
|
|
34
|
+
class UnimplementedAudioInServiceBase(AudioInServiceBase):
|
|
35
|
+
|
|
36
|
+
async def GetAudio(self, stream: 'grpclib.server.Stream[component.audioin.v1.audioin_pb2.GetAudioRequest, component.audioin.v1.audioin_pb2.GetAudioResponse]') -> 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 AudioInServiceStub:
|
|
49
|
+
|
|
50
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
51
|
+
self.GetAudio = grpclib.client.UnaryStreamMethod(channel, '/viam.component.audioin.v1.AudioInService/GetAudio', component.audioin.v1.audioin_pb2.GetAudioRequest, component.audioin.v1.audioin_pb2.GetAudioResponse)
|
|
52
|
+
self.GetProperties = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioin.v1.AudioInService/GetProperties', common.v1.common_pb2.GetPropertiesRequest, common.v1.common_pb2.GetPropertiesResponse)
|
|
53
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioin.v1.AudioInService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
54
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.audioin.v1.AudioInService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|