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
|
@@ -6,14 +6,10 @@ import builtins
|
|
|
6
6
|
import google.protobuf.descriptor
|
|
7
7
|
import google.protobuf.message
|
|
8
8
|
import google.protobuf.struct_pb2
|
|
9
|
-
import
|
|
10
|
-
if sys.version_info >= (3, 8):
|
|
11
|
-
import typing as typing_extensions
|
|
12
|
-
else:
|
|
13
|
-
import typing_extensions
|
|
9
|
+
import typing
|
|
14
10
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
11
|
|
|
16
|
-
@
|
|
12
|
+
@typing.final
|
|
17
13
|
class OpenRequest(google.protobuf.message.Message):
|
|
18
14
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
15
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -27,14 +23,14 @@ class OpenRequest(google.protobuf.message.Message):
|
|
|
27
23
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
28
24
|
...
|
|
29
25
|
|
|
30
|
-
def HasField(self, field_name:
|
|
26
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
31
27
|
...
|
|
32
28
|
|
|
33
|
-
def ClearField(self, field_name:
|
|
29
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
34
30
|
...
|
|
35
31
|
global___OpenRequest = OpenRequest
|
|
36
32
|
|
|
37
|
-
@
|
|
33
|
+
@typing.final
|
|
38
34
|
class OpenResponse(google.protobuf.message.Message):
|
|
39
35
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
40
36
|
|
|
@@ -42,7 +38,7 @@ class OpenResponse(google.protobuf.message.Message):
|
|
|
42
38
|
...
|
|
43
39
|
global___OpenResponse = OpenResponse
|
|
44
40
|
|
|
45
|
-
@
|
|
41
|
+
@typing.final
|
|
46
42
|
class GrabRequest(google.protobuf.message.Message):
|
|
47
43
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
48
44
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -56,14 +52,14 @@ class GrabRequest(google.protobuf.message.Message):
|
|
|
56
52
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
57
53
|
...
|
|
58
54
|
|
|
59
|
-
def HasField(self, field_name:
|
|
55
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
60
56
|
...
|
|
61
57
|
|
|
62
|
-
def ClearField(self, field_name:
|
|
58
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
63
59
|
...
|
|
64
60
|
global___GrabRequest = GrabRequest
|
|
65
61
|
|
|
66
|
-
@
|
|
62
|
+
@typing.final
|
|
67
63
|
class GrabResponse(google.protobuf.message.Message):
|
|
68
64
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
69
65
|
SUCCESS_FIELD_NUMBER: builtins.int
|
|
@@ -77,14 +73,14 @@ class GrabResponse(google.protobuf.message.Message):
|
|
|
77
73
|
def __init__(self, *, success: builtins.bool=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
78
74
|
...
|
|
79
75
|
|
|
80
|
-
def HasField(self, field_name:
|
|
76
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
81
77
|
...
|
|
82
78
|
|
|
83
|
-
def ClearField(self, field_name:
|
|
79
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'success', b'success']) -> None:
|
|
84
80
|
...
|
|
85
81
|
global___GrabResponse = GrabResponse
|
|
86
82
|
|
|
87
|
-
@
|
|
83
|
+
@typing.final
|
|
88
84
|
class StopRequest(google.protobuf.message.Message):
|
|
89
85
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
90
86
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -99,14 +95,14 @@ class StopRequest(google.protobuf.message.Message):
|
|
|
99
95
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
100
96
|
...
|
|
101
97
|
|
|
102
|
-
def HasField(self, field_name:
|
|
98
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
103
99
|
...
|
|
104
100
|
|
|
105
|
-
def ClearField(self, field_name:
|
|
101
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
106
102
|
...
|
|
107
103
|
global___StopRequest = StopRequest
|
|
108
104
|
|
|
109
|
-
@
|
|
105
|
+
@typing.final
|
|
110
106
|
class StopResponse(google.protobuf.message.Message):
|
|
111
107
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
112
108
|
|
|
@@ -114,7 +110,7 @@ class StopResponse(google.protobuf.message.Message):
|
|
|
114
110
|
...
|
|
115
111
|
global___StopResponse = StopResponse
|
|
116
112
|
|
|
117
|
-
@
|
|
113
|
+
@typing.final
|
|
118
114
|
class IsMovingRequest(google.protobuf.message.Message):
|
|
119
115
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
120
116
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -123,11 +119,11 @@ class IsMovingRequest(google.protobuf.message.Message):
|
|
|
123
119
|
def __init__(self, *, name: builtins.str=...) -> None:
|
|
124
120
|
...
|
|
125
121
|
|
|
126
|
-
def ClearField(self, field_name:
|
|
122
|
+
def ClearField(self, field_name: typing.Literal['name', b'name']) -> None:
|
|
127
123
|
...
|
|
128
124
|
global___IsMovingRequest = IsMovingRequest
|
|
129
125
|
|
|
130
|
-
@
|
|
126
|
+
@typing.final
|
|
131
127
|
class IsMovingResponse(google.protobuf.message.Message):
|
|
132
128
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
133
129
|
IS_MOVING_FIELD_NUMBER: builtins.int
|
|
@@ -136,6 +132,48 @@ class IsMovingResponse(google.protobuf.message.Message):
|
|
|
136
132
|
def __init__(self, *, is_moving: builtins.bool=...) -> None:
|
|
137
133
|
...
|
|
138
134
|
|
|
139
|
-
def ClearField(self, field_name:
|
|
135
|
+
def ClearField(self, field_name: typing.Literal['is_moving', b'is_moving']) -> None:
|
|
140
136
|
...
|
|
141
|
-
global___IsMovingResponse = IsMovingResponse
|
|
137
|
+
global___IsMovingResponse = IsMovingResponse
|
|
138
|
+
|
|
139
|
+
@typing.final
|
|
140
|
+
class IsHoldingSomethingRequest(google.protobuf.message.Message):
|
|
141
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
142
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
143
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
144
|
+
name: builtins.str
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
148
|
+
...
|
|
149
|
+
|
|
150
|
+
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
151
|
+
...
|
|
152
|
+
|
|
153
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
154
|
+
...
|
|
155
|
+
|
|
156
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
157
|
+
...
|
|
158
|
+
global___IsHoldingSomethingRequest = IsHoldingSomethingRequest
|
|
159
|
+
|
|
160
|
+
@typing.final
|
|
161
|
+
class IsHoldingSomethingResponse(google.protobuf.message.Message):
|
|
162
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
163
|
+
IS_HOLDING_SOMETHING_FIELD_NUMBER: builtins.int
|
|
164
|
+
META_FIELD_NUMBER: builtins.int
|
|
165
|
+
is_holding_something: builtins.bool
|
|
166
|
+
|
|
167
|
+
@property
|
|
168
|
+
def meta(self) -> google.protobuf.struct_pb2.Struct:
|
|
169
|
+
...
|
|
170
|
+
|
|
171
|
+
def __init__(self, *, is_holding_something: builtins.bool=..., meta: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
172
|
+
...
|
|
173
|
+
|
|
174
|
+
def HasField(self, field_name: typing.Literal['meta', b'meta']) -> builtins.bool:
|
|
175
|
+
...
|
|
176
|
+
|
|
177
|
+
def ClearField(self, field_name: typing.Literal['is_holding_something', b'is_holding_something', 'meta', b'meta']) -> None:
|
|
178
|
+
...
|
|
179
|
+
global___IsHoldingSomethingResponse = IsHoldingSomethingResponse
|
|
@@ -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
|
|
@@ -32,8 +33,32 @@ class InputControllerServiceBase(abc.ABC):
|
|
|
32
33
|
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
33
34
|
pass
|
|
34
35
|
|
|
36
|
+
@abc.abstractmethod
|
|
37
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
38
|
+
pass
|
|
39
|
+
|
|
35
40
|
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
36
|
-
return {'/viam.component.inputcontroller.v1.InputControllerService/GetControls': grpclib.const.Handler(self.GetControls, grpclib.const.Cardinality.UNARY_UNARY, component.inputcontroller.v1.input_controller_pb2.GetControlsRequest, component.inputcontroller.v1.input_controller_pb2.GetControlsResponse), '/viam.component.inputcontroller.v1.InputControllerService/GetEvents': grpclib.const.Handler(self.GetEvents, grpclib.const.Cardinality.UNARY_UNARY, component.inputcontroller.v1.input_controller_pb2.GetEventsRequest, component.inputcontroller.v1.input_controller_pb2.GetEventsResponse), '/viam.component.inputcontroller.v1.InputControllerService/StreamEvents': grpclib.const.Handler(self.StreamEvents, grpclib.const.Cardinality.UNARY_STREAM, component.inputcontroller.v1.input_controller_pb2.StreamEventsRequest, component.inputcontroller.v1.input_controller_pb2.StreamEventsResponse), '/viam.component.inputcontroller.v1.InputControllerService/TriggerEvent': grpclib.const.Handler(self.TriggerEvent, grpclib.const.Cardinality.UNARY_UNARY, component.inputcontroller.v1.input_controller_pb2.TriggerEventRequest, component.inputcontroller.v1.input_controller_pb2.TriggerEventResponse), '/viam.component.inputcontroller.v1.InputControllerService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
|
|
41
|
+
return {'/viam.component.inputcontroller.v1.InputControllerService/GetControls': grpclib.const.Handler(self.GetControls, grpclib.const.Cardinality.UNARY_UNARY, component.inputcontroller.v1.input_controller_pb2.GetControlsRequest, component.inputcontroller.v1.input_controller_pb2.GetControlsResponse), '/viam.component.inputcontroller.v1.InputControllerService/GetEvents': grpclib.const.Handler(self.GetEvents, grpclib.const.Cardinality.UNARY_UNARY, component.inputcontroller.v1.input_controller_pb2.GetEventsRequest, component.inputcontroller.v1.input_controller_pb2.GetEventsResponse), '/viam.component.inputcontroller.v1.InputControllerService/StreamEvents': grpclib.const.Handler(self.StreamEvents, grpclib.const.Cardinality.UNARY_STREAM, component.inputcontroller.v1.input_controller_pb2.StreamEventsRequest, component.inputcontroller.v1.input_controller_pb2.StreamEventsResponse), '/viam.component.inputcontroller.v1.InputControllerService/TriggerEvent': grpclib.const.Handler(self.TriggerEvent, grpclib.const.Cardinality.UNARY_UNARY, component.inputcontroller.v1.input_controller_pb2.TriggerEventRequest, component.inputcontroller.v1.input_controller_pb2.TriggerEventResponse), '/viam.component.inputcontroller.v1.InputControllerService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.inputcontroller.v1.InputControllerService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
42
|
+
|
|
43
|
+
class UnimplementedInputControllerServiceBase(InputControllerServiceBase):
|
|
44
|
+
|
|
45
|
+
async def GetControls(self, stream: 'grpclib.server.Stream[component.inputcontroller.v1.input_controller_pb2.GetControlsRequest, component.inputcontroller.v1.input_controller_pb2.GetControlsResponse]') -> None:
|
|
46
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
47
|
+
|
|
48
|
+
async def GetEvents(self, stream: 'grpclib.server.Stream[component.inputcontroller.v1.input_controller_pb2.GetEventsRequest, component.inputcontroller.v1.input_controller_pb2.GetEventsResponse]') -> None:
|
|
49
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
50
|
+
|
|
51
|
+
async def StreamEvents(self, stream: 'grpclib.server.Stream[component.inputcontroller.v1.input_controller_pb2.StreamEventsRequest, component.inputcontroller.v1.input_controller_pb2.StreamEventsResponse]') -> None:
|
|
52
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
53
|
+
|
|
54
|
+
async def TriggerEvent(self, stream: 'grpclib.server.Stream[component.inputcontroller.v1.input_controller_pb2.TriggerEventRequest, component.inputcontroller.v1.input_controller_pb2.TriggerEventResponse]') -> None:
|
|
55
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
56
|
+
|
|
57
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
58
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
59
|
+
|
|
60
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
61
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
37
62
|
|
|
38
63
|
class InputControllerServiceStub:
|
|
39
64
|
|
|
@@ -42,4 +67,5 @@ class InputControllerServiceStub:
|
|
|
42
67
|
self.GetEvents = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.inputcontroller.v1.InputControllerService/GetEvents', component.inputcontroller.v1.input_controller_pb2.GetEventsRequest, component.inputcontroller.v1.input_controller_pb2.GetEventsResponse)
|
|
43
68
|
self.StreamEvents = grpclib.client.UnaryStreamMethod(channel, '/viam.component.inputcontroller.v1.InputControllerService/StreamEvents', component.inputcontroller.v1.input_controller_pb2.StreamEventsRequest, component.inputcontroller.v1.input_controller_pb2.StreamEventsResponse)
|
|
44
69
|
self.TriggerEvent = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.inputcontroller.v1.InputControllerService/TriggerEvent', component.inputcontroller.v1.input_controller_pb2.TriggerEventRequest, component.inputcontroller.v1.input_controller_pb2.TriggerEventResponse)
|
|
45
|
-
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.inputcontroller.v1.InputControllerService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
70
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.inputcontroller.v1.InputControllerService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
71
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.inputcontroller.v1.InputControllerService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|
|
@@ -1,50 +1,55 @@
|
|
|
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/inputcontroller/v1/input_controller.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
12
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
11
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3component/inputcontroller/v1/input_controller.proto\x12!viam.component.inputcontroller.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"c\n\x12GetControlsRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"1\n\x13GetControlsResponse\x12\x1a\n\x08controls\x18\x01 \x03(\tR\x08controls"a\n\x10GetEventsRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"U\n\x11GetEventsResponse\x12@\n\x06events\x18\x01 \x03(\x0b2(.viam.component.inputcontroller.v1.EventR\x06events"\xa4\x01\n\x13TriggerEventRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12>\n\x05event\x18\x02 \x01(\x0b2(.viam.component.inputcontroller.v1.EventR\x05event\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x16\n\x14TriggerEventResponse"}\n\x05Event\x12.\n\x04time\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\x04time\x12\x14\n\x05event\x18\x02 \x01(\tR\x05event\x12\x18\n\x07control\x18\x03 \x01(\tR\x07control\x12\x14\n\x05value\x18\x04 \x01(\x01R\x05value"\xa2\x02\n\x13StreamEventsRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12U\n\x06events\x18\x02 \x03(\x0b2=.viam.component.inputcontroller.v1.StreamEventsRequest.EventsR\x06events\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra\x1ae\n\x06Events\x12\x18\n\x07control\x18\x01 \x01(\tR\x07control\x12\x16\n\x06events\x18\x02 \x03(\tR\x06events\x12)\n\x10cancelled_events\x18\x03 \x03(\tR\x0fcancelledEvents"V\n\x14StreamEventsResponse\x12>\n\x05event\x18\x01 \x01(\x0b2(.viam.component.inputcontroller.v1.EventR\x05event"J\n\x06Status\x12@\n\x06events\x18\x01 \x03(\x0b2(.viam.component.inputcontroller.v1.EventR\x06events2\
|
|
12
|
-
|
|
13
|
-
_builder.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
DESCRIPTOR.
|
|
17
|
-
|
|
18
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['GetControls'].
|
|
19
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['
|
|
20
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['GetEvents'].
|
|
21
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['
|
|
22
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['StreamEvents'].
|
|
23
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['
|
|
24
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['TriggerEvent'].
|
|
25
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['
|
|
26
|
-
_INPUTCONTROLLERSERVICE.methods_by_name['DoCommand'].
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
13
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3component/inputcontroller/v1/input_controller.proto\x12!viam.component.inputcontroller.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto"c\n\x12GetControlsRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"1\n\x13GetControlsResponse\x12\x1a\n\x08controls\x18\x01 \x03(\tR\x08controls"a\n\x10GetEventsRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"U\n\x11GetEventsResponse\x12@\n\x06events\x18\x01 \x03(\x0b2(.viam.component.inputcontroller.v1.EventR\x06events"\xa4\x01\n\x13TriggerEventRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12>\n\x05event\x18\x02 \x01(\x0b2(.viam.component.inputcontroller.v1.EventR\x05event\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x16\n\x14TriggerEventResponse"}\n\x05Event\x12.\n\x04time\x18\x01 \x01(\x0b2\x1a.google.protobuf.TimestampR\x04time\x12\x14\n\x05event\x18\x02 \x01(\tR\x05event\x12\x18\n\x07control\x18\x03 \x01(\tR\x07control\x12\x14\n\x05value\x18\x04 \x01(\x01R\x05value"\xa2\x02\n\x13StreamEventsRequest\x12\x1e\n\ncontroller\x18\x01 \x01(\tR\ncontroller\x12U\n\x06events\x18\x02 \x03(\x0b2=.viam.component.inputcontroller.v1.StreamEventsRequest.EventsR\x06events\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra\x1ae\n\x06Events\x12\x18\n\x07control\x18\x01 \x01(\tR\x07control\x12\x16\n\x06events\x18\x02 \x03(\tR\x06events\x12)\n\x10cancelled_events\x18\x03 \x03(\tR\x0fcancelledEvents"V\n\x14StreamEventsResponse\x12>\n\x05event\x18\x01 \x01(\x0b2(.viam.component.inputcontroller.v1.EventR\x05event"J\n\x06Status\x12@\n\x06events\x18\x01 \x03(\x0b2(.viam.component.inputcontroller.v1.EventR\x06events2\xa7\x08\n\x16InputControllerService\x12\xb8\x01\n\x0bGetControls\x125.viam.component.inputcontroller.v1.GetControlsRequest\x1a6.viam.component.inputcontroller.v1.GetControlsResponse":\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/input/{controller}/controls\x12\xb0\x01\n\tGetEvents\x123.viam.component.inputcontroller.v1.GetEventsRequest\x1a4.viam.component.inputcontroller.v1.GetEventsResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/input/{controller}/events\x12\xc1\x01\n\x0cStreamEvents\x126.viam.component.inputcontroller.v1.StreamEventsRequest\x1a7.viam.component.inputcontroller.v1.StreamEventsResponse">\x82\xd3\xe4\x93\x028\x126/viam/api/v1/component/input/{controller}/event_stream0\x01\x12\xb8\x01\n\x0cTriggerEvent\x126.viam.component.inputcontroller.v1.TriggerEventRequest\x1a7.viam.component.inputcontroller.v1.TriggerEventResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/component/input/{controller}/event\x12\x88\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"6\x82\xd3\xe4\x93\x020"./viam/api/v1/component/input/{name}/do_command\x12\x94\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"6\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/input/{name}/geometriesBU\n%com.viam.component.inputcontroller.v1Z,go.viam.com/api/component/inputcontroller/v1b\x06proto3')
|
|
14
|
+
_globals = globals()
|
|
15
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
16
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.inputcontroller.v1.input_controller_pb2', _globals)
|
|
17
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
18
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
19
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n%com.viam.component.inputcontroller.v1Z,go.viam.com/api/component/inputcontroller/v1'
|
|
20
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['GetControls']._loaded_options = None
|
|
21
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['GetControls']._serialized_options = b'\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/input/{controller}/controls'
|
|
22
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['GetEvents']._loaded_options = None
|
|
23
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['GetEvents']._serialized_options = b'\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/input/{controller}/events'
|
|
24
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['StreamEvents']._loaded_options = None
|
|
25
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['StreamEvents']._serialized_options = b'\x82\xd3\xe4\x93\x028\x126/viam/api/v1/component/input/{controller}/event_stream'
|
|
26
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['TriggerEvent']._loaded_options = None
|
|
27
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['TriggerEvent']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/component/input/{controller}/event'
|
|
28
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
29
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x020"./viam/api/v1/component/input/{name}/do_command'
|
|
30
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
31
|
+
_globals['_INPUTCONTROLLERSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x020\x12./viam/api/v1/component/input/{name}/geometries'
|
|
32
|
+
_globals['_GETCONTROLSREQUEST']._serialized_start = 207
|
|
33
|
+
_globals['_GETCONTROLSREQUEST']._serialized_end = 306
|
|
34
|
+
_globals['_GETCONTROLSRESPONSE']._serialized_start = 308
|
|
35
|
+
_globals['_GETCONTROLSRESPONSE']._serialized_end = 357
|
|
36
|
+
_globals['_GETEVENTSREQUEST']._serialized_start = 359
|
|
37
|
+
_globals['_GETEVENTSREQUEST']._serialized_end = 456
|
|
38
|
+
_globals['_GETEVENTSRESPONSE']._serialized_start = 458
|
|
39
|
+
_globals['_GETEVENTSRESPONSE']._serialized_end = 543
|
|
40
|
+
_globals['_TRIGGEREVENTREQUEST']._serialized_start = 546
|
|
41
|
+
_globals['_TRIGGEREVENTREQUEST']._serialized_end = 710
|
|
42
|
+
_globals['_TRIGGEREVENTRESPONSE']._serialized_start = 712
|
|
43
|
+
_globals['_TRIGGEREVENTRESPONSE']._serialized_end = 734
|
|
44
|
+
_globals['_EVENT']._serialized_start = 736
|
|
45
|
+
_globals['_EVENT']._serialized_end = 861
|
|
46
|
+
_globals['_STREAMEVENTSREQUEST']._serialized_start = 864
|
|
47
|
+
_globals['_STREAMEVENTSREQUEST']._serialized_end = 1154
|
|
48
|
+
_globals['_STREAMEVENTSREQUEST_EVENTS']._serialized_start = 1053
|
|
49
|
+
_globals['_STREAMEVENTSREQUEST_EVENTS']._serialized_end = 1154
|
|
50
|
+
_globals['_STREAMEVENTSRESPONSE']._serialized_start = 1156
|
|
51
|
+
_globals['_STREAMEVENTSRESPONSE']._serialized_end = 1242
|
|
52
|
+
_globals['_STATUS']._serialized_start = 1244
|
|
53
|
+
_globals['_STATUS']._serialized_end = 1318
|
|
54
|
+
_globals['_INPUTCONTROLLERSERVICE']._serialized_start = 1321
|
|
55
|
+
_globals['_INPUTCONTROLLERSERVICE']._serialized_end = 2384
|
|
@@ -9,14 +9,10 @@ import google.protobuf.internal.containers
|
|
|
9
9
|
import google.protobuf.message
|
|
10
10
|
import google.protobuf.struct_pb2
|
|
11
11
|
import google.protobuf.timestamp_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 GetControlsRequest(google.protobuf.message.Message):
|
|
21
17
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
18
|
CONTROLLER_FIELD_NUMBER: builtins.int
|
|
@@ -31,14 +27,14 @@ class GetControlsRequest(google.protobuf.message.Message):
|
|
|
31
27
|
def __init__(self, *, controller: 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['controller', b'controller', 'extra', b'extra']) -> None:
|
|
38
34
|
...
|
|
39
35
|
global___GetControlsRequest = GetControlsRequest
|
|
40
36
|
|
|
41
|
-
@
|
|
37
|
+
@typing.final
|
|
42
38
|
class GetControlsResponse(google.protobuf.message.Message):
|
|
43
39
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
44
40
|
CONTROLS_FIELD_NUMBER: builtins.int
|
|
@@ -52,11 +48,11 @@ class GetControlsResponse(google.protobuf.message.Message):
|
|
|
52
48
|
def __init__(self, *, controls: collections.abc.Iterable[builtins.str] | None=...) -> None:
|
|
53
49
|
...
|
|
54
50
|
|
|
55
|
-
def ClearField(self, field_name:
|
|
51
|
+
def ClearField(self, field_name: typing.Literal['controls', b'controls']) -> None:
|
|
56
52
|
...
|
|
57
53
|
global___GetControlsResponse = GetControlsResponse
|
|
58
54
|
|
|
59
|
-
@
|
|
55
|
+
@typing.final
|
|
60
56
|
class GetEventsRequest(google.protobuf.message.Message):
|
|
61
57
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
62
58
|
CONTROLLER_FIELD_NUMBER: builtins.int
|
|
@@ -71,14 +67,14 @@ class GetEventsRequest(google.protobuf.message.Message):
|
|
|
71
67
|
def __init__(self, *, controller: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
72
68
|
...
|
|
73
69
|
|
|
74
|
-
def HasField(self, field_name:
|
|
70
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
75
71
|
...
|
|
76
72
|
|
|
77
|
-
def ClearField(self, field_name:
|
|
73
|
+
def ClearField(self, field_name: typing.Literal['controller', b'controller', 'extra', b'extra']) -> None:
|
|
78
74
|
...
|
|
79
75
|
global___GetEventsRequest = GetEventsRequest
|
|
80
76
|
|
|
81
|
-
@
|
|
77
|
+
@typing.final
|
|
82
78
|
class GetEventsResponse(google.protobuf.message.Message):
|
|
83
79
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
84
80
|
EVENTS_FIELD_NUMBER: builtins.int
|
|
@@ -92,11 +88,11 @@ class GetEventsResponse(google.protobuf.message.Message):
|
|
|
92
88
|
def __init__(self, *, events: collections.abc.Iterable[global___Event] | None=...) -> None:
|
|
93
89
|
...
|
|
94
90
|
|
|
95
|
-
def ClearField(self, field_name:
|
|
91
|
+
def ClearField(self, field_name: typing.Literal['events', b'events']) -> None:
|
|
96
92
|
...
|
|
97
93
|
global___GetEventsResponse = GetEventsResponse
|
|
98
94
|
|
|
99
|
-
@
|
|
95
|
+
@typing.final
|
|
100
96
|
class TriggerEventRequest(google.protobuf.message.Message):
|
|
101
97
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
102
98
|
CONTROLLER_FIELD_NUMBER: builtins.int
|
|
@@ -116,14 +112,14 @@ class TriggerEventRequest(google.protobuf.message.Message):
|
|
|
116
112
|
def __init__(self, *, controller: builtins.str=..., event: global___Event | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
117
113
|
...
|
|
118
114
|
|
|
119
|
-
def HasField(self, field_name:
|
|
115
|
+
def HasField(self, field_name: typing.Literal['event', b'event', 'extra', b'extra']) -> builtins.bool:
|
|
120
116
|
...
|
|
121
117
|
|
|
122
|
-
def ClearField(self, field_name:
|
|
118
|
+
def ClearField(self, field_name: typing.Literal['controller', b'controller', 'event', b'event', 'extra', b'extra']) -> None:
|
|
123
119
|
...
|
|
124
120
|
global___TriggerEventRequest = TriggerEventRequest
|
|
125
121
|
|
|
126
|
-
@
|
|
122
|
+
@typing.final
|
|
127
123
|
class TriggerEventResponse(google.protobuf.message.Message):
|
|
128
124
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
129
125
|
|
|
@@ -131,17 +127,13 @@ class TriggerEventResponse(google.protobuf.message.Message):
|
|
|
131
127
|
...
|
|
132
128
|
global___TriggerEventResponse = TriggerEventResponse
|
|
133
129
|
|
|
134
|
-
@
|
|
130
|
+
@typing.final
|
|
135
131
|
class Event(google.protobuf.message.Message):
|
|
136
132
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
137
133
|
TIME_FIELD_NUMBER: builtins.int
|
|
138
134
|
EVENT_FIELD_NUMBER: builtins.int
|
|
139
135
|
CONTROL_FIELD_NUMBER: builtins.int
|
|
140
136
|
VALUE_FIELD_NUMBER: builtins.int
|
|
141
|
-
|
|
142
|
-
@property
|
|
143
|
-
def time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
144
|
-
"""Timestamp of event"""
|
|
145
137
|
event: builtins.str
|
|
146
138
|
'An event type (eg: ButtonPress, ButtonRelease)'
|
|
147
139
|
control: builtins.str
|
|
@@ -149,21 +141,25 @@ class Event(google.protobuf.message.Message):
|
|
|
149
141
|
value: builtins.float
|
|
150
142
|
'0 or 1 for buttons, -1.0 to +1.0 for axes'
|
|
151
143
|
|
|
144
|
+
@property
|
|
145
|
+
def time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
146
|
+
"""Timestamp of event"""
|
|
147
|
+
|
|
152
148
|
def __init__(self, *, time: google.protobuf.timestamp_pb2.Timestamp | None=..., event: builtins.str=..., control: builtins.str=..., value: builtins.float=...) -> None:
|
|
153
149
|
...
|
|
154
150
|
|
|
155
|
-
def HasField(self, field_name:
|
|
151
|
+
def HasField(self, field_name: typing.Literal['time', b'time']) -> builtins.bool:
|
|
156
152
|
...
|
|
157
153
|
|
|
158
|
-
def ClearField(self, field_name:
|
|
154
|
+
def ClearField(self, field_name: typing.Literal['control', b'control', 'event', b'event', 'time', b'time', 'value', b'value']) -> None:
|
|
159
155
|
...
|
|
160
156
|
global___Event = Event
|
|
161
157
|
|
|
162
|
-
@
|
|
158
|
+
@typing.final
|
|
163
159
|
class StreamEventsRequest(google.protobuf.message.Message):
|
|
164
160
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
165
161
|
|
|
166
|
-
@
|
|
162
|
+
@typing.final
|
|
167
163
|
class Events(google.protobuf.message.Message):
|
|
168
164
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
169
165
|
CONTROL_FIELD_NUMBER: builtins.int
|
|
@@ -185,7 +181,7 @@ class StreamEventsRequest(google.protobuf.message.Message):
|
|
|
185
181
|
def __init__(self, *, control: builtins.str=..., events: collections.abc.Iterable[builtins.str] | None=..., cancelled_events: collections.abc.Iterable[builtins.str] | None=...) -> None:
|
|
186
182
|
...
|
|
187
183
|
|
|
188
|
-
def ClearField(self, field_name:
|
|
184
|
+
def ClearField(self, field_name: typing.Literal['cancelled_events', b'cancelled_events', 'control', b'control', 'events', b'events']) -> None:
|
|
189
185
|
...
|
|
190
186
|
CONTROLLER_FIELD_NUMBER: builtins.int
|
|
191
187
|
EVENTS_FIELD_NUMBER: builtins.int
|
|
@@ -204,14 +200,14 @@ class StreamEventsRequest(google.protobuf.message.Message):
|
|
|
204
200
|
def __init__(self, *, controller: builtins.str=..., events: collections.abc.Iterable[global___StreamEventsRequest.Events] | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
205
201
|
...
|
|
206
202
|
|
|
207
|
-
def HasField(self, field_name:
|
|
203
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
208
204
|
...
|
|
209
205
|
|
|
210
|
-
def ClearField(self, field_name:
|
|
206
|
+
def ClearField(self, field_name: typing.Literal['controller', b'controller', 'events', b'events', 'extra', b'extra']) -> None:
|
|
211
207
|
...
|
|
212
208
|
global___StreamEventsRequest = StreamEventsRequest
|
|
213
209
|
|
|
214
|
-
@
|
|
210
|
+
@typing.final
|
|
215
211
|
class StreamEventsResponse(google.protobuf.message.Message):
|
|
216
212
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
217
213
|
EVENT_FIELD_NUMBER: builtins.int
|
|
@@ -223,14 +219,14 @@ class StreamEventsResponse(google.protobuf.message.Message):
|
|
|
223
219
|
def __init__(self, *, event: global___Event | None=...) -> None:
|
|
224
220
|
...
|
|
225
221
|
|
|
226
|
-
def HasField(self, field_name:
|
|
222
|
+
def HasField(self, field_name: typing.Literal['event', b'event']) -> builtins.bool:
|
|
227
223
|
...
|
|
228
224
|
|
|
229
|
-
def ClearField(self, field_name:
|
|
225
|
+
def ClearField(self, field_name: typing.Literal['event', b'event']) -> None:
|
|
230
226
|
...
|
|
231
227
|
global___StreamEventsResponse = StreamEventsResponse
|
|
232
228
|
|
|
233
|
-
@
|
|
229
|
+
@typing.final
|
|
234
230
|
class Status(google.protobuf.message.Message):
|
|
235
231
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
236
232
|
EVENTS_FIELD_NUMBER: builtins.int
|
|
@@ -242,6 +238,6 @@ class Status(google.protobuf.message.Message):
|
|
|
242
238
|
def __init__(self, *, events: collections.abc.Iterable[global___Event] | None=...) -> None:
|
|
243
239
|
...
|
|
244
240
|
|
|
245
|
-
def ClearField(self, field_name:
|
|
241
|
+
def ClearField(self, field_name: typing.Literal['events', b'events']) -> None:
|
|
246
242
|
...
|
|
247
243
|
global___Status = Status
|
|
@@ -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
|
|
@@ -23,6 +24,10 @@ class MotorServiceBase(abc.ABC):
|
|
|
23
24
|
async def GoTo(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.GoToRequest, component.motor.v1.motor_pb2.GoToResponse]') -> None:
|
|
24
25
|
pass
|
|
25
26
|
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
async def SetRPM(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.SetRPMRequest, component.motor.v1.motor_pb2.SetRPMResponse]') -> None:
|
|
29
|
+
pass
|
|
30
|
+
|
|
26
31
|
@abc.abstractmethod
|
|
27
32
|
async def ResetZeroPosition(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.ResetZeroPositionRequest, component.motor.v1.motor_pb2.ResetZeroPositionResponse]') -> None:
|
|
28
33
|
pass
|
|
@@ -51,8 +56,50 @@ class MotorServiceBase(abc.ABC):
|
|
|
51
56
|
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
52
57
|
pass
|
|
53
58
|
|
|
59
|
+
@abc.abstractmethod
|
|
60
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
61
|
+
pass
|
|
62
|
+
|
|
54
63
|
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
55
|
-
return {'/viam.component.motor.v1.MotorService/SetPower': grpclib.const.Handler(self.SetPower, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.SetPowerRequest, component.motor.v1.motor_pb2.SetPowerResponse), '/viam.component.motor.v1.MotorService/GoFor': grpclib.const.Handler(self.GoFor, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GoForRequest, component.motor.v1.motor_pb2.GoForResponse), '/viam.component.motor.v1.MotorService/GoTo': grpclib.const.Handler(self.GoTo, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GoToRequest, component.motor.v1.motor_pb2.GoToResponse), '/viam.component.motor.v1.MotorService/ResetZeroPosition': grpclib.const.Handler(self.ResetZeroPosition, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.ResetZeroPositionRequest, component.motor.v1.motor_pb2.ResetZeroPositionResponse), '/viam.component.motor.v1.MotorService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GetPositionRequest, component.motor.v1.motor_pb2.GetPositionResponse), '/viam.component.motor.v1.MotorService/GetProperties': grpclib.const.Handler(self.GetProperties, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GetPropertiesRequest, component.motor.v1.motor_pb2.GetPropertiesResponse), '/viam.component.motor.v1.MotorService/Stop': grpclib.const.Handler(self.Stop, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.StopRequest, component.motor.v1.motor_pb2.StopResponse), '/viam.component.motor.v1.MotorService/IsPowered': grpclib.const.Handler(self.IsPowered, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.IsPoweredRequest, component.motor.v1.motor_pb2.IsPoweredResponse), '/viam.component.motor.v1.MotorService/IsMoving': grpclib.const.Handler(self.IsMoving, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.IsMovingRequest, component.motor.v1.motor_pb2.IsMovingResponse), '/viam.component.motor.v1.MotorService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
|
|
64
|
+
return {'/viam.component.motor.v1.MotorService/SetPower': grpclib.const.Handler(self.SetPower, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.SetPowerRequest, component.motor.v1.motor_pb2.SetPowerResponse), '/viam.component.motor.v1.MotorService/GoFor': grpclib.const.Handler(self.GoFor, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GoForRequest, component.motor.v1.motor_pb2.GoForResponse), '/viam.component.motor.v1.MotorService/GoTo': grpclib.const.Handler(self.GoTo, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GoToRequest, component.motor.v1.motor_pb2.GoToResponse), '/viam.component.motor.v1.MotorService/SetRPM': grpclib.const.Handler(self.SetRPM, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.SetRPMRequest, component.motor.v1.motor_pb2.SetRPMResponse), '/viam.component.motor.v1.MotorService/ResetZeroPosition': grpclib.const.Handler(self.ResetZeroPosition, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.ResetZeroPositionRequest, component.motor.v1.motor_pb2.ResetZeroPositionResponse), '/viam.component.motor.v1.MotorService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GetPositionRequest, component.motor.v1.motor_pb2.GetPositionResponse), '/viam.component.motor.v1.MotorService/GetProperties': grpclib.const.Handler(self.GetProperties, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.GetPropertiesRequest, component.motor.v1.motor_pb2.GetPropertiesResponse), '/viam.component.motor.v1.MotorService/Stop': grpclib.const.Handler(self.Stop, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.StopRequest, component.motor.v1.motor_pb2.StopResponse), '/viam.component.motor.v1.MotorService/IsPowered': grpclib.const.Handler(self.IsPowered, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.IsPoweredRequest, component.motor.v1.motor_pb2.IsPoweredResponse), '/viam.component.motor.v1.MotorService/IsMoving': grpclib.const.Handler(self.IsMoving, grpclib.const.Cardinality.UNARY_UNARY, component.motor.v1.motor_pb2.IsMovingRequest, component.motor.v1.motor_pb2.IsMovingResponse), '/viam.component.motor.v1.MotorService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.motor.v1.MotorService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
65
|
+
|
|
66
|
+
class UnimplementedMotorServiceBase(MotorServiceBase):
|
|
67
|
+
|
|
68
|
+
async def SetPower(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.SetPowerRequest, component.motor.v1.motor_pb2.SetPowerResponse]') -> None:
|
|
69
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
70
|
+
|
|
71
|
+
async def GoFor(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.GoForRequest, component.motor.v1.motor_pb2.GoForResponse]') -> None:
|
|
72
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
73
|
+
|
|
74
|
+
async def GoTo(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.GoToRequest, component.motor.v1.motor_pb2.GoToResponse]') -> None:
|
|
75
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
76
|
+
|
|
77
|
+
async def SetRPM(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.SetRPMRequest, component.motor.v1.motor_pb2.SetRPMResponse]') -> None:
|
|
78
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
79
|
+
|
|
80
|
+
async def ResetZeroPosition(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.ResetZeroPositionRequest, component.motor.v1.motor_pb2.ResetZeroPositionResponse]') -> None:
|
|
81
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
82
|
+
|
|
83
|
+
async def GetPosition(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.GetPositionRequest, component.motor.v1.motor_pb2.GetPositionResponse]') -> None:
|
|
84
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
85
|
+
|
|
86
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.GetPropertiesRequest, component.motor.v1.motor_pb2.GetPropertiesResponse]') -> None:
|
|
87
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
88
|
+
|
|
89
|
+
async def Stop(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.StopRequest, component.motor.v1.motor_pb2.StopResponse]') -> None:
|
|
90
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
91
|
+
|
|
92
|
+
async def IsPowered(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.IsPoweredRequest, component.motor.v1.motor_pb2.IsPoweredResponse]') -> None:
|
|
93
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
94
|
+
|
|
95
|
+
async def IsMoving(self, stream: 'grpclib.server.Stream[component.motor.v1.motor_pb2.IsMovingRequest, component.motor.v1.motor_pb2.IsMovingResponse]') -> None:
|
|
96
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
97
|
+
|
|
98
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
99
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
100
|
+
|
|
101
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
102
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
56
103
|
|
|
57
104
|
class MotorServiceStub:
|
|
58
105
|
|
|
@@ -60,10 +107,12 @@ class MotorServiceStub:
|
|
|
60
107
|
self.SetPower = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/SetPower', component.motor.v1.motor_pb2.SetPowerRequest, component.motor.v1.motor_pb2.SetPowerResponse)
|
|
61
108
|
self.GoFor = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/GoFor', component.motor.v1.motor_pb2.GoForRequest, component.motor.v1.motor_pb2.GoForResponse)
|
|
62
109
|
self.GoTo = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/GoTo', component.motor.v1.motor_pb2.GoToRequest, component.motor.v1.motor_pb2.GoToResponse)
|
|
110
|
+
self.SetRPM = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/SetRPM', component.motor.v1.motor_pb2.SetRPMRequest, component.motor.v1.motor_pb2.SetRPMResponse)
|
|
63
111
|
self.ResetZeroPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/ResetZeroPosition', component.motor.v1.motor_pb2.ResetZeroPositionRequest, component.motor.v1.motor_pb2.ResetZeroPositionResponse)
|
|
64
112
|
self.GetPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/GetPosition', component.motor.v1.motor_pb2.GetPositionRequest, component.motor.v1.motor_pb2.GetPositionResponse)
|
|
65
113
|
self.GetProperties = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/GetProperties', component.motor.v1.motor_pb2.GetPropertiesRequest, component.motor.v1.motor_pb2.GetPropertiesResponse)
|
|
66
114
|
self.Stop = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/Stop', component.motor.v1.motor_pb2.StopRequest, component.motor.v1.motor_pb2.StopResponse)
|
|
67
115
|
self.IsPowered = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/IsPowered', component.motor.v1.motor_pb2.IsPoweredRequest, component.motor.v1.motor_pb2.IsPoweredResponse)
|
|
68
116
|
self.IsMoving = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/IsMoving', component.motor.v1.motor_pb2.IsMovingRequest, component.motor.v1.motor_pb2.IsMovingResponse)
|
|
69
|
-
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
117
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
118
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.motor.v1.MotorService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|