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
|
@@ -1,71 +1,78 @@
|
|
|
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/movementsensor/v1/movementsensor.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'\n0component/movementsensor/v1/movementsensor.proto\x12 viam.component.movementsensor.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"]\n\x18GetLinearVelocityRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"]\n\x19GetLinearVelocityResponse\x12@\n\x0flinear_velocity\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x0elinearVelocity"^\n\x19GetAngularVelocityRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"`\n\x1aGetAngularVelocityResponse\x12B\n\x10angular_velocity\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x0fangularVelocity"]\n\x18GetCompassHeadingRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"1\n\x19GetCompassHeadingResponse\x12\x14\n\x05value\x18\x01 \x01(\x01R\x05value"Z\n\x15GetOrientationRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"W\n\x16GetOrientationResponse\x12=\n\x0borientation\x18\x01 \x01(\x0b2\x1b.viam.common.v1.OrientationR\x0borientation"W\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"n\n\x13GetPositionResponse\x128\n\ncoordinate\x18\x01 \x01(\x0b2\x18.viam.common.v1.GeoPointR\ncoordinate\x12\x1d\n\naltitude_m\x18\x02 \x01(\x02R\taltitudeM"Y\n\x14GetPropertiesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\xf5\x02\n\x15GetPropertiesResponse\x12:\n\x19linear_velocity_supported\x18\x01 \x01(\x08R\x17linearVelocitySupported\x12<\n\x1aangular_velocity_supported\x18\x02 \x01(\x08R\x18angularVelocitySupported\x123\n\x15orientation_supported\x18\x03 \x01(\x08R\x14orientationSupported\x12-\n\x12position_supported\x18\x04 \x01(\x08R\x11positionSupported\x12:\n\x19compass_heading_supported\x18\x05 \x01(\x08R\x17compassHeadingSupported\x12B\n\x1dlinear_acceleration_supported\x18\x06 \x01(\x08R\x1blinearAccelerationSupported"W\n\x12GetAccuracyRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\
|
|
11
|
-
|
|
12
|
-
_builder.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
DESCRIPTOR.
|
|
16
|
-
|
|
17
|
-
_GETACCURACYRESPONSE_ACCURACYENTRY.
|
|
18
|
-
|
|
19
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetLinearVelocity'].
|
|
20
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
21
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetAngularVelocity'].
|
|
22
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
23
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetCompassHeading'].
|
|
24
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
25
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetOrientation'].
|
|
26
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
27
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetPosition'].
|
|
28
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
29
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetProperties'].
|
|
30
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
31
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetAccuracy'].
|
|
32
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
33
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['GetLinearAcceleration'].
|
|
34
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['
|
|
35
|
-
_MOVEMENTSENSORSERVICE.methods_by_name['DoCommand'].
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0component/movementsensor/v1/movementsensor.proto\x12 viam.component.movementsensor.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"]\n\x18GetLinearVelocityRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"]\n\x19GetLinearVelocityResponse\x12@\n\x0flinear_velocity\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x0elinearVelocity"^\n\x19GetAngularVelocityRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"`\n\x1aGetAngularVelocityResponse\x12B\n\x10angular_velocity\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x0fangularVelocity"]\n\x18GetCompassHeadingRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"1\n\x19GetCompassHeadingResponse\x12\x14\n\x05value\x18\x01 \x01(\x01R\x05value"Z\n\x15GetOrientationRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"W\n\x16GetOrientationResponse\x12=\n\x0borientation\x18\x01 \x01(\x0b2\x1b.viam.common.v1.OrientationR\x0borientation"W\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"n\n\x13GetPositionResponse\x128\n\ncoordinate\x18\x01 \x01(\x0b2\x18.viam.common.v1.GeoPointR\ncoordinate\x12\x1d\n\naltitude_m\x18\x02 \x01(\x02R\taltitudeM"Y\n\x14GetPropertiesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\xf5\x02\n\x15GetPropertiesResponse\x12:\n\x19linear_velocity_supported\x18\x01 \x01(\x08R\x17linearVelocitySupported\x12<\n\x1aangular_velocity_supported\x18\x02 \x01(\x08R\x18angularVelocitySupported\x123\n\x15orientation_supported\x18\x03 \x01(\x08R\x14orientationSupported\x12-\n\x12position_supported\x18\x04 \x01(\x08R\x11positionSupported\x12:\n\x19compass_heading_supported\x18\x05 \x01(\x08R\x17compassHeadingSupported\x12B\n\x1dlinear_acceleration_supported\x18\x06 \x01(\x08R\x1blinearAccelerationSupported"W\n\x12GetAccuracyRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\xd0\x03\n\x13GetAccuracyResponse\x12_\n\x08accuracy\x18\x01 \x03(\x0b2C.viam.component.movementsensor.v1.GetAccuracyResponse.AccuracyEntryR\x08accuracy\x12(\n\rposition_hdop\x18\x02 \x01(\x02H\x00R\x0cpositionHdop\x88\x01\x01\x12(\n\rposition_vdop\x18\x03 \x01(\x02H\x01R\x0cpositionVdop\x88\x01\x01\x126\n\x15position_nmea_gga_fix\x18\x04 \x01(\x05H\x02R\x12positionNmeaGgaFix\x88\x01\x01\x127\n\x15compass_degrees_error\x18\x05 \x01(\x02H\x03R\x13compassDegreesError\x88\x01\x01\x1a;\n\rAccuracyEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\x02R\x05value:\x028\x01B\x10\n\x0e_position_hdopB\x10\n\x0e_position_vdopB\x18\n\x16_position_nmea_gga_fixB\x18\n\x16_compass_degrees_error"a\n\x1cGetLinearAccelerationRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"i\n\x1dGetLinearAccelerationResponse\x12H\n\x13linear_acceleration\x18\x01 \x01(\x0b2\x17.viam.common.v1.Vector3R\x12linearAcceleration2\xcf\x10\n\x15MovementSensorService\x12\xd2\x01\n\x11GetLinearVelocity\x12:.viam.component.movementsensor.v1.GetLinearVelocityRequest\x1a;.viam.component.movementsensor.v1.GetLinearVelocityResponse"D\x82\xd3\xe4\x93\x02>\x12</viam/api/v1/component/movementsensor/{name}/linear_velocity\x12\xd6\x01\n\x12GetAngularVelocity\x12;.viam.component.movementsensor.v1.GetAngularVelocityRequest\x1a<.viam.component.movementsensor.v1.GetAngularVelocityResponse"E\x82\xd3\xe4\x93\x02?\x12=/viam/api/v1/component/movementsensor/{name}/angular_velocity\x12\xd2\x01\n\x11GetCompassHeading\x12:.viam.component.movementsensor.v1.GetCompassHeadingRequest\x1a;.viam.component.movementsensor.v1.GetCompassHeadingResponse"D\x82\xd3\xe4\x93\x02>\x12</viam/api/v1/component/movementsensor/{name}/compass_heading\x12\xc5\x01\n\x0eGetOrientation\x127.viam.component.movementsensor.v1.GetOrientationRequest\x1a8.viam.component.movementsensor.v1.GetOrientationResponse"@\x82\xd3\xe4\x93\x02:\x128/viam/api/v1/component/movementsensor/{name}/orientation\x12\xb9\x01\n\x0bGetPosition\x124.viam.component.movementsensor.v1.GetPositionRequest\x1a5.viam.component.movementsensor.v1.GetPositionResponse"=\x82\xd3\xe4\x93\x027\x125/viam/api/v1/component/movementsensor/{name}/position\x12\xc1\x01\n\rGetProperties\x126.viam.component.movementsensor.v1.GetPropertiesRequest\x1a7.viam.component.movementsensor.v1.GetPropertiesResponse"?\x82\xd3\xe4\x93\x029\x127/viam/api/v1/component/movementsensor/{name}/properties\x12\xb9\x01\n\x0bGetAccuracy\x124.viam.component.movementsensor.v1.GetAccuracyRequest\x1a5.viam.component.movementsensor.v1.GetAccuracyResponse"=\x82\xd3\xe4\x93\x027\x125/viam/api/v1/component/movementsensor/{name}/accuracy\x12\xe2\x01\n\x15GetLinearAcceleration\x12>.viam.component.movementsensor.v1.GetLinearAccelerationRequest\x1a?.viam.component.movementsensor.v1.GetLinearAccelerationResponse"H\x82\xd3\xe4\x93\x02B\x12@/viam/api/v1/component/movementsensor/{name}/linear_acceleration\x12\x91\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"?\x82\xd3\xe4\x93\x029"7/viam/api/v1/component/movementsensor/{name}/do_command\x12\x9d\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"?\x82\xd3\xe4\x93\x029\x127/viam/api/v1/component/movementsensor/{name}/geometries\x12\x95\x01\n\x0bGetReadings\x12".viam.common.v1.GetReadingsRequest\x1a#.viam.common.v1.GetReadingsResponse"=\x82\xd3\xe4\x93\x027\x125/viam/api/v1/component/movementsensor/{name}/readingsBS\n$com.viam.component.movementsensor.v1Z+go.viam.com/api/component/movementsensor/v1b\x06proto3')
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.movementsensor.v1.movementsensor_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n$com.viam.component.movementsensor.v1Z+go.viam.com/api/component/movementsensor/v1'
|
|
19
|
+
_globals['_GETACCURACYRESPONSE_ACCURACYENTRY']._loaded_options = None
|
|
20
|
+
_globals['_GETACCURACYRESPONSE_ACCURACYENTRY']._serialized_options = b'8\x01'
|
|
21
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetLinearVelocity']._loaded_options = None
|
|
22
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetLinearVelocity']._serialized_options = b'\x82\xd3\xe4\x93\x02>\x12</viam/api/v1/component/movementsensor/{name}/linear_velocity'
|
|
23
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetAngularVelocity']._loaded_options = None
|
|
24
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetAngularVelocity']._serialized_options = b'\x82\xd3\xe4\x93\x02?\x12=/viam/api/v1/component/movementsensor/{name}/angular_velocity'
|
|
25
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetCompassHeading']._loaded_options = None
|
|
26
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetCompassHeading']._serialized_options = b'\x82\xd3\xe4\x93\x02>\x12</viam/api/v1/component/movementsensor/{name}/compass_heading'
|
|
27
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetOrientation']._loaded_options = None
|
|
28
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetOrientation']._serialized_options = b'\x82\xd3\xe4\x93\x02:\x128/viam/api/v1/component/movementsensor/{name}/orientation'
|
|
29
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetPosition']._loaded_options = None
|
|
30
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetPosition']._serialized_options = b'\x82\xd3\xe4\x93\x027\x125/viam/api/v1/component/movementsensor/{name}/position'
|
|
31
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetProperties']._loaded_options = None
|
|
32
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetProperties']._serialized_options = b'\x82\xd3\xe4\x93\x029\x127/viam/api/v1/component/movementsensor/{name}/properties'
|
|
33
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetAccuracy']._loaded_options = None
|
|
34
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetAccuracy']._serialized_options = b'\x82\xd3\xe4\x93\x027\x125/viam/api/v1/component/movementsensor/{name}/accuracy'
|
|
35
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetLinearAcceleration']._loaded_options = None
|
|
36
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetLinearAcceleration']._serialized_options = b'\x82\xd3\xe4\x93\x02B\x12@/viam/api/v1/component/movementsensor/{name}/linear_acceleration'
|
|
37
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
38
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x029"7/viam/api/v1/component/movementsensor/{name}/do_command'
|
|
39
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
40
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x029\x127/viam/api/v1/component/movementsensor/{name}/geometries'
|
|
41
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetReadings']._loaded_options = None
|
|
42
|
+
_globals['_MOVEMENTSENSORSERVICE'].methods_by_name['GetReadings']._serialized_options = b'\x82\xd3\xe4\x93\x027\x125/viam/api/v1/component/movementsensor/{name}/readings'
|
|
43
|
+
_globals['_GETLINEARVELOCITYREQUEST']._serialized_start = 170
|
|
44
|
+
_globals['_GETLINEARVELOCITYREQUEST']._serialized_end = 263
|
|
45
|
+
_globals['_GETLINEARVELOCITYRESPONSE']._serialized_start = 265
|
|
46
|
+
_globals['_GETLINEARVELOCITYRESPONSE']._serialized_end = 358
|
|
47
|
+
_globals['_GETANGULARVELOCITYREQUEST']._serialized_start = 360
|
|
48
|
+
_globals['_GETANGULARVELOCITYREQUEST']._serialized_end = 454
|
|
49
|
+
_globals['_GETANGULARVELOCITYRESPONSE']._serialized_start = 456
|
|
50
|
+
_globals['_GETANGULARVELOCITYRESPONSE']._serialized_end = 552
|
|
51
|
+
_globals['_GETCOMPASSHEADINGREQUEST']._serialized_start = 554
|
|
52
|
+
_globals['_GETCOMPASSHEADINGREQUEST']._serialized_end = 647
|
|
53
|
+
_globals['_GETCOMPASSHEADINGRESPONSE']._serialized_start = 649
|
|
54
|
+
_globals['_GETCOMPASSHEADINGRESPONSE']._serialized_end = 698
|
|
55
|
+
_globals['_GETORIENTATIONREQUEST']._serialized_start = 700
|
|
56
|
+
_globals['_GETORIENTATIONREQUEST']._serialized_end = 790
|
|
57
|
+
_globals['_GETORIENTATIONRESPONSE']._serialized_start = 792
|
|
58
|
+
_globals['_GETORIENTATIONRESPONSE']._serialized_end = 879
|
|
59
|
+
_globals['_GETPOSITIONREQUEST']._serialized_start = 881
|
|
60
|
+
_globals['_GETPOSITIONREQUEST']._serialized_end = 968
|
|
61
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_start = 970
|
|
62
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_end = 1080
|
|
63
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_start = 1082
|
|
64
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_end = 1171
|
|
65
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_start = 1174
|
|
66
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_end = 1547
|
|
67
|
+
_globals['_GETACCURACYREQUEST']._serialized_start = 1549
|
|
68
|
+
_globals['_GETACCURACYREQUEST']._serialized_end = 1636
|
|
69
|
+
_globals['_GETACCURACYRESPONSE']._serialized_start = 1639
|
|
70
|
+
_globals['_GETACCURACYRESPONSE']._serialized_end = 2103
|
|
71
|
+
_globals['_GETACCURACYRESPONSE_ACCURACYENTRY']._serialized_start = 1956
|
|
72
|
+
_globals['_GETACCURACYRESPONSE_ACCURACYENTRY']._serialized_end = 2015
|
|
73
|
+
_globals['_GETLINEARACCELERATIONREQUEST']._serialized_start = 2105
|
|
74
|
+
_globals['_GETLINEARACCELERATIONREQUEST']._serialized_end = 2202
|
|
75
|
+
_globals['_GETLINEARACCELERATIONRESPONSE']._serialized_start = 2204
|
|
76
|
+
_globals['_GETLINEARACCELERATIONRESPONSE']._serialized_end = 2309
|
|
77
|
+
_globals['_MOVEMENTSENSORSERVICE']._serialized_start = 2312
|
|
78
|
+
_globals['_MOVEMENTSENSORSERVICE']._serialized_end = 4439
|
|
@@ -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 GetLinearVelocityRequest(google.protobuf.message.Message):
|
|
21
17
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
18
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -31,14 +27,14 @@ class GetLinearVelocityRequest(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___GetLinearVelocityRequest = GetLinearVelocityRequest
|
|
40
36
|
|
|
41
|
-
@
|
|
37
|
+
@typing.final
|
|
42
38
|
class GetLinearVelocityResponse(google.protobuf.message.Message):
|
|
43
39
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
44
40
|
LINEAR_VELOCITY_FIELD_NUMBER: builtins.int
|
|
@@ -50,14 +46,14 @@ class GetLinearVelocityResponse(google.protobuf.message.Message):
|
|
|
50
46
|
def __init__(self, *, linear_velocity: common.v1.common_pb2.Vector3 | None=...) -> None:
|
|
51
47
|
...
|
|
52
48
|
|
|
53
|
-
def HasField(self, field_name:
|
|
49
|
+
def HasField(self, field_name: typing.Literal['linear_velocity', b'linear_velocity']) -> builtins.bool:
|
|
54
50
|
...
|
|
55
51
|
|
|
56
|
-
def ClearField(self, field_name:
|
|
52
|
+
def ClearField(self, field_name: typing.Literal['linear_velocity', b'linear_velocity']) -> None:
|
|
57
53
|
...
|
|
58
54
|
global___GetLinearVelocityResponse = GetLinearVelocityResponse
|
|
59
55
|
|
|
60
|
-
@
|
|
56
|
+
@typing.final
|
|
61
57
|
class GetAngularVelocityRequest(google.protobuf.message.Message):
|
|
62
58
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
63
59
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -72,14 +68,14 @@ class GetAngularVelocityRequest(google.protobuf.message.Message):
|
|
|
72
68
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
73
69
|
...
|
|
74
70
|
|
|
75
|
-
def HasField(self, field_name:
|
|
71
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
76
72
|
...
|
|
77
73
|
|
|
78
|
-
def ClearField(self, field_name:
|
|
74
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
79
75
|
...
|
|
80
76
|
global___GetAngularVelocityRequest = GetAngularVelocityRequest
|
|
81
77
|
|
|
82
|
-
@
|
|
78
|
+
@typing.final
|
|
83
79
|
class GetAngularVelocityResponse(google.protobuf.message.Message):
|
|
84
80
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
85
81
|
ANGULAR_VELOCITY_FIELD_NUMBER: builtins.int
|
|
@@ -91,14 +87,14 @@ class GetAngularVelocityResponse(google.protobuf.message.Message):
|
|
|
91
87
|
def __init__(self, *, angular_velocity: common.v1.common_pb2.Vector3 | None=...) -> None:
|
|
92
88
|
...
|
|
93
89
|
|
|
94
|
-
def HasField(self, field_name:
|
|
90
|
+
def HasField(self, field_name: typing.Literal['angular_velocity', b'angular_velocity']) -> builtins.bool:
|
|
95
91
|
...
|
|
96
92
|
|
|
97
|
-
def ClearField(self, field_name:
|
|
93
|
+
def ClearField(self, field_name: typing.Literal['angular_velocity', b'angular_velocity']) -> None:
|
|
98
94
|
...
|
|
99
95
|
global___GetAngularVelocityResponse = GetAngularVelocityResponse
|
|
100
96
|
|
|
101
|
-
@
|
|
97
|
+
@typing.final
|
|
102
98
|
class GetCompassHeadingRequest(google.protobuf.message.Message):
|
|
103
99
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
104
100
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -113,28 +109,28 @@ class GetCompassHeadingRequest(google.protobuf.message.Message):
|
|
|
113
109
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
114
110
|
...
|
|
115
111
|
|
|
116
|
-
def HasField(self, field_name:
|
|
112
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
117
113
|
...
|
|
118
114
|
|
|
119
|
-
def ClearField(self, field_name:
|
|
115
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
120
116
|
...
|
|
121
117
|
global___GetCompassHeadingRequest = GetCompassHeadingRequest
|
|
122
118
|
|
|
123
|
-
@
|
|
119
|
+
@typing.final
|
|
124
120
|
class GetCompassHeadingResponse(google.protobuf.message.Message):
|
|
125
121
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
126
122
|
VALUE_FIELD_NUMBER: builtins.int
|
|
127
123
|
value: builtins.float
|
|
128
|
-
'A number from 0-359 where\n 0 is North, 90 is East, 180 is South, and 270 is West\n '
|
|
124
|
+
'A number from 0-359 in degrees where\n 0 is North, 90 is East, 180 is South, and 270 is West\n '
|
|
129
125
|
|
|
130
126
|
def __init__(self, *, value: builtins.float=...) -> None:
|
|
131
127
|
...
|
|
132
128
|
|
|
133
|
-
def ClearField(self, field_name:
|
|
129
|
+
def ClearField(self, field_name: typing.Literal['value', b'value']) -> None:
|
|
134
130
|
...
|
|
135
131
|
global___GetCompassHeadingResponse = GetCompassHeadingResponse
|
|
136
132
|
|
|
137
|
-
@
|
|
133
|
+
@typing.final
|
|
138
134
|
class GetOrientationRequest(google.protobuf.message.Message):
|
|
139
135
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
140
136
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -149,33 +145,35 @@ class GetOrientationRequest(google.protobuf.message.Message):
|
|
|
149
145
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
150
146
|
...
|
|
151
147
|
|
|
152
|
-
def HasField(self, field_name:
|
|
148
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
153
149
|
...
|
|
154
150
|
|
|
155
|
-
def ClearField(self, field_name:
|
|
151
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
156
152
|
...
|
|
157
153
|
global___GetOrientationRequest = GetOrientationRequest
|
|
158
154
|
|
|
159
|
-
@
|
|
155
|
+
@typing.final
|
|
160
156
|
class GetOrientationResponse(google.protobuf.message.Message):
|
|
161
157
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
162
158
|
ORIENTATION_FIELD_NUMBER: builtins.int
|
|
163
159
|
|
|
164
160
|
@property
|
|
165
161
|
def orientation(self) -> common.v1.common_pb2.Orientation:
|
|
166
|
-
|
|
162
|
+
"""Orientation is returned as an orientation message with
|
|
163
|
+
OX OY OZ as unit-normalized components of the axis of the vector, and Theta in degrees
|
|
164
|
+
"""
|
|
167
165
|
|
|
168
166
|
def __init__(self, *, orientation: common.v1.common_pb2.Orientation | None=...) -> None:
|
|
169
167
|
...
|
|
170
168
|
|
|
171
|
-
def HasField(self, field_name:
|
|
169
|
+
def HasField(self, field_name: typing.Literal['orientation', b'orientation']) -> builtins.bool:
|
|
172
170
|
...
|
|
173
171
|
|
|
174
|
-
def ClearField(self, field_name:
|
|
172
|
+
def ClearField(self, field_name: typing.Literal['orientation', b'orientation']) -> None:
|
|
175
173
|
...
|
|
176
174
|
global___GetOrientationResponse = GetOrientationResponse
|
|
177
175
|
|
|
178
|
-
@
|
|
176
|
+
@typing.final
|
|
179
177
|
class GetPositionRequest(google.protobuf.message.Message):
|
|
180
178
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
181
179
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -190,35 +188,37 @@ class GetPositionRequest(google.protobuf.message.Message):
|
|
|
190
188
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
191
189
|
...
|
|
192
190
|
|
|
193
|
-
def HasField(self, field_name:
|
|
191
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
194
192
|
...
|
|
195
193
|
|
|
196
|
-
def ClearField(self, field_name:
|
|
194
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
197
195
|
...
|
|
198
196
|
global___GetPositionRequest = GetPositionRequest
|
|
199
197
|
|
|
200
|
-
@
|
|
198
|
+
@typing.final
|
|
201
199
|
class GetPositionResponse(google.protobuf.message.Message):
|
|
202
200
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
203
201
|
COORDINATE_FIELD_NUMBER: builtins.int
|
|
204
202
|
ALTITUDE_M_FIELD_NUMBER: builtins.int
|
|
203
|
+
altitude_m: builtins.float
|
|
205
204
|
|
|
206
205
|
@property
|
|
207
206
|
def coordinate(self) -> common.v1.common_pb2.GeoPoint:
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
"""Position is returned in a coordinate of latitute and longitude
|
|
208
|
+
and an altidue in meters
|
|
209
|
+
"""
|
|
210
210
|
|
|
211
211
|
def __init__(self, *, coordinate: common.v1.common_pb2.GeoPoint | None=..., altitude_m: builtins.float=...) -> None:
|
|
212
212
|
...
|
|
213
213
|
|
|
214
|
-
def HasField(self, field_name:
|
|
214
|
+
def HasField(self, field_name: typing.Literal['coordinate', b'coordinate']) -> builtins.bool:
|
|
215
215
|
...
|
|
216
216
|
|
|
217
|
-
def ClearField(self, field_name:
|
|
217
|
+
def ClearField(self, field_name: typing.Literal['altitude_m', b'altitude_m', 'coordinate', b'coordinate']) -> None:
|
|
218
218
|
...
|
|
219
219
|
global___GetPositionResponse = GetPositionResponse
|
|
220
220
|
|
|
221
|
-
@
|
|
221
|
+
@typing.final
|
|
222
222
|
class GetPropertiesRequest(google.protobuf.message.Message):
|
|
223
223
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
224
224
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -233,14 +233,14 @@ class GetPropertiesRequest(google.protobuf.message.Message):
|
|
|
233
233
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
234
234
|
...
|
|
235
235
|
|
|
236
|
-
def HasField(self, field_name:
|
|
236
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
237
237
|
...
|
|
238
238
|
|
|
239
|
-
def ClearField(self, field_name:
|
|
239
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
240
240
|
...
|
|
241
241
|
global___GetPropertiesRequest = GetPropertiesRequest
|
|
242
242
|
|
|
243
|
-
@
|
|
243
|
+
@typing.final
|
|
244
244
|
class GetPropertiesResponse(google.protobuf.message.Message):
|
|
245
245
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
246
246
|
LINEAR_VELOCITY_SUPPORTED_FIELD_NUMBER: builtins.int
|
|
@@ -259,11 +259,11 @@ class GetPropertiesResponse(google.protobuf.message.Message):
|
|
|
259
259
|
def __init__(self, *, linear_velocity_supported: builtins.bool=..., angular_velocity_supported: builtins.bool=..., orientation_supported: builtins.bool=..., position_supported: builtins.bool=..., compass_heading_supported: builtins.bool=..., linear_acceleration_supported: builtins.bool=...) -> None:
|
|
260
260
|
...
|
|
261
261
|
|
|
262
|
-
def ClearField(self, field_name:
|
|
262
|
+
def ClearField(self, field_name: typing.Literal['angular_velocity_supported', b'angular_velocity_supported', 'compass_heading_supported', b'compass_heading_supported', 'linear_acceleration_supported', b'linear_acceleration_supported', 'linear_velocity_supported', b'linear_velocity_supported', 'orientation_supported', b'orientation_supported', 'position_supported', b'position_supported']) -> None:
|
|
263
263
|
...
|
|
264
264
|
global___GetPropertiesResponse = GetPropertiesResponse
|
|
265
265
|
|
|
266
|
-
@
|
|
266
|
+
@typing.final
|
|
267
267
|
class GetAccuracyRequest(google.protobuf.message.Message):
|
|
268
268
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
269
269
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -278,18 +278,18 @@ class GetAccuracyRequest(google.protobuf.message.Message):
|
|
|
278
278
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
279
279
|
...
|
|
280
280
|
|
|
281
|
-
def HasField(self, field_name:
|
|
281
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
282
282
|
...
|
|
283
283
|
|
|
284
|
-
def ClearField(self, field_name:
|
|
284
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
285
285
|
...
|
|
286
286
|
global___GetAccuracyRequest = GetAccuracyRequest
|
|
287
287
|
|
|
288
|
-
@
|
|
288
|
+
@typing.final
|
|
289
289
|
class GetAccuracyResponse(google.protobuf.message.Message):
|
|
290
290
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
291
291
|
|
|
292
|
-
@
|
|
292
|
+
@typing.final
|
|
293
293
|
class AccuracyEntry(google.protobuf.message.Message):
|
|
294
294
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
295
295
|
KEY_FIELD_NUMBER: builtins.int
|
|
@@ -300,22 +300,49 @@ class GetAccuracyResponse(google.protobuf.message.Message):
|
|
|
300
300
|
def __init__(self, *, key: builtins.str=..., value: builtins.float=...) -> None:
|
|
301
301
|
...
|
|
302
302
|
|
|
303
|
-
def ClearField(self, field_name:
|
|
303
|
+
def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
|
|
304
304
|
...
|
|
305
305
|
ACCURACY_FIELD_NUMBER: builtins.int
|
|
306
|
+
POSITION_HDOP_FIELD_NUMBER: builtins.int
|
|
307
|
+
POSITION_VDOP_FIELD_NUMBER: builtins.int
|
|
308
|
+
POSITION_NMEA_GGA_FIX_FIELD_NUMBER: builtins.int
|
|
309
|
+
COMPASS_DEGREES_ERROR_FIELD_NUMBER: builtins.int
|
|
310
|
+
position_hdop: builtins.float
|
|
311
|
+
position_vdop: builtins.float
|
|
312
|
+
position_nmea_gga_fix: builtins.int
|
|
313
|
+
compass_degrees_error: builtins.float
|
|
306
314
|
|
|
307
315
|
@property
|
|
308
316
|
def accuracy(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]:
|
|
309
317
|
...
|
|
310
318
|
|
|
311
|
-
def __init__(self, *, accuracy: collections.abc.Mapping[builtins.str, builtins.float] | None=...) -> None:
|
|
319
|
+
def __init__(self, *, accuracy: collections.abc.Mapping[builtins.str, builtins.float] | None=..., position_hdop: builtins.float | None=..., position_vdop: builtins.float | None=..., position_nmea_gga_fix: builtins.int | None=..., compass_degrees_error: builtins.float | None=...) -> None:
|
|
320
|
+
...
|
|
321
|
+
|
|
322
|
+
def HasField(self, field_name: typing.Literal['_compass_degrees_error', b'_compass_degrees_error', '_position_hdop', b'_position_hdop', '_position_nmea_gga_fix', b'_position_nmea_gga_fix', '_position_vdop', b'_position_vdop', 'compass_degrees_error', b'compass_degrees_error', 'position_hdop', b'position_hdop', 'position_nmea_gga_fix', b'position_nmea_gga_fix', 'position_vdop', b'position_vdop']) -> builtins.bool:
|
|
323
|
+
...
|
|
324
|
+
|
|
325
|
+
def ClearField(self, field_name: typing.Literal['_compass_degrees_error', b'_compass_degrees_error', '_position_hdop', b'_position_hdop', '_position_nmea_gga_fix', b'_position_nmea_gga_fix', '_position_vdop', b'_position_vdop', 'accuracy', b'accuracy', 'compass_degrees_error', b'compass_degrees_error', 'position_hdop', b'position_hdop', 'position_nmea_gga_fix', b'position_nmea_gga_fix', 'position_vdop', b'position_vdop']) -> None:
|
|
326
|
+
...
|
|
327
|
+
|
|
328
|
+
@typing.overload
|
|
329
|
+
def WhichOneof(self, oneof_group: typing.Literal['_compass_degrees_error', b'_compass_degrees_error']) -> typing.Literal['compass_degrees_error'] | None:
|
|
330
|
+
...
|
|
331
|
+
|
|
332
|
+
@typing.overload
|
|
333
|
+
def WhichOneof(self, oneof_group: typing.Literal['_position_hdop', b'_position_hdop']) -> typing.Literal['position_hdop'] | None:
|
|
334
|
+
...
|
|
335
|
+
|
|
336
|
+
@typing.overload
|
|
337
|
+
def WhichOneof(self, oneof_group: typing.Literal['_position_nmea_gga_fix', b'_position_nmea_gga_fix']) -> typing.Literal['position_nmea_gga_fix'] | None:
|
|
312
338
|
...
|
|
313
339
|
|
|
314
|
-
|
|
340
|
+
@typing.overload
|
|
341
|
+
def WhichOneof(self, oneof_group: typing.Literal['_position_vdop', b'_position_vdop']) -> typing.Literal['position_vdop'] | None:
|
|
315
342
|
...
|
|
316
343
|
global___GetAccuracyResponse = GetAccuracyResponse
|
|
317
344
|
|
|
318
|
-
@
|
|
345
|
+
@typing.final
|
|
319
346
|
class GetLinearAccelerationRequest(google.protobuf.message.Message):
|
|
320
347
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
321
348
|
NAME_FIELD_NUMBER: builtins.int
|
|
@@ -330,14 +357,14 @@ class GetLinearAccelerationRequest(google.protobuf.message.Message):
|
|
|
330
357
|
def __init__(self, *, name: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
331
358
|
...
|
|
332
359
|
|
|
333
|
-
def HasField(self, field_name:
|
|
360
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
334
361
|
...
|
|
335
362
|
|
|
336
|
-
def ClearField(self, field_name:
|
|
363
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'name', b'name']) -> None:
|
|
337
364
|
...
|
|
338
365
|
global___GetLinearAccelerationRequest = GetLinearAccelerationRequest
|
|
339
366
|
|
|
340
|
-
@
|
|
367
|
+
@typing.final
|
|
341
368
|
class GetLinearAccelerationResponse(google.protobuf.message.Message):
|
|
342
369
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
343
370
|
LINEAR_ACCELERATION_FIELD_NUMBER: builtins.int
|
|
@@ -349,9 +376,9 @@ class GetLinearAccelerationResponse(google.protobuf.message.Message):
|
|
|
349
376
|
def __init__(self, *, linear_acceleration: common.v1.common_pb2.Vector3 | None=...) -> None:
|
|
350
377
|
...
|
|
351
378
|
|
|
352
|
-
def HasField(self, field_name:
|
|
379
|
+
def HasField(self, field_name: typing.Literal['linear_acceleration', b'linear_acceleration']) -> builtins.bool:
|
|
353
380
|
...
|
|
354
381
|
|
|
355
|
-
def ClearField(self, field_name:
|
|
382
|
+
def ClearField(self, field_name: typing.Literal['linear_acceleration', b'linear_acceleration']) -> None:
|
|
356
383
|
...
|
|
357
384
|
global___GetLinearAccelerationResponse = GetLinearAccelerationResponse
|
|
@@ -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
|
|
@@ -19,11 +20,27 @@ class PoseTrackerServiceBase(abc.ABC):
|
|
|
19
20
|
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
20
21
|
pass
|
|
21
22
|
|
|
23
|
+
@abc.abstractmethod
|
|
24
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
25
|
+
pass
|
|
26
|
+
|
|
22
27
|
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
23
|
-
return {'/viam.component.posetracker.v1.PoseTrackerService/GetPoses': grpclib.const.Handler(self.GetPoses, grpclib.const.Cardinality.UNARY_UNARY, component.posetracker.v1.pose_tracker_pb2.GetPosesRequest, component.posetracker.v1.pose_tracker_pb2.GetPosesResponse), '/viam.component.posetracker.v1.PoseTrackerService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
|
|
28
|
+
return {'/viam.component.posetracker.v1.PoseTrackerService/GetPoses': grpclib.const.Handler(self.GetPoses, grpclib.const.Cardinality.UNARY_UNARY, component.posetracker.v1.pose_tracker_pb2.GetPosesRequest, component.posetracker.v1.pose_tracker_pb2.GetPosesResponse), '/viam.component.posetracker.v1.PoseTrackerService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.posetracker.v1.PoseTrackerService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
29
|
+
|
|
30
|
+
class UnimplementedPoseTrackerServiceBase(PoseTrackerServiceBase):
|
|
31
|
+
|
|
32
|
+
async def GetPoses(self, stream: 'grpclib.server.Stream[component.posetracker.v1.pose_tracker_pb2.GetPosesRequest, component.posetracker.v1.pose_tracker_pb2.GetPosesResponse]') -> None:
|
|
33
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
34
|
+
|
|
35
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
36
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
37
|
+
|
|
38
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
39
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
24
40
|
|
|
25
41
|
class PoseTrackerServiceStub:
|
|
26
42
|
|
|
27
43
|
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
28
44
|
self.GetPoses = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.posetracker.v1.PoseTrackerService/GetPoses', component.posetracker.v1.pose_tracker_pb2.GetPosesRequest, component.posetracker.v1.pose_tracker_pb2.GetPosesResponse)
|
|
29
|
-
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.posetracker.v1.PoseTrackerService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
45
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.posetracker.v1.PoseTrackerService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
46
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.posetracker.v1.PoseTrackerService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|