viam-sdk 0.45.2__py3-none-win_amd64.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 +71 -0
- viam/app/__init__.py +0 -0
- viam/app/_logs.py +34 -0
- viam/app/app_client.py +2525 -0
- viam/app/billing_client.py +143 -0
- viam/app/data_client.py +1715 -0
- viam/app/ml_training_client.py +251 -0
- viam/app/provisioning_client.py +95 -0
- viam/app/viam_client.py +260 -0
- viam/components/__init__.py +0 -0
- viam/components/arm/__init__.py +16 -0
- viam/components/arm/arm.py +223 -0
- viam/components/arm/client.py +124 -0
- viam/components/arm/service.py +123 -0
- viam/components/audio_input/__init__.py +18 -0
- viam/components/audio_input/audio_input.py +81 -0
- viam/components/audio_input/client.py +70 -0
- viam/components/audio_input/service.py +114 -0
- viam/components/base/__init__.py +13 -0
- viam/components/base/base.py +260 -0
- viam/components/base/client.py +153 -0
- viam/components/base/service.py +138 -0
- viam/components/board/__init__.py +9 -0
- viam/components/board/board.py +414 -0
- viam/components/board/client.py +241 -0
- viam/components/board/service.py +223 -0
- viam/components/button/__init__.py +10 -0
- viam/components/button/button.py +41 -0
- viam/components/button/client.py +52 -0
- viam/components/button/service.py +46 -0
- viam/components/camera/__init__.py +22 -0
- viam/components/camera/camera.py +138 -0
- viam/components/camera/client.py +98 -0
- viam/components/camera/service.py +105 -0
- viam/components/component_base.py +65 -0
- viam/components/encoder/__init__.py +18 -0
- viam/components/encoder/client.py +83 -0
- viam/components/encoder/encoder.py +118 -0
- viam/components/encoder/service.py +72 -0
- viam/components/gantry/__init__.py +11 -0
- viam/components/gantry/client.py +115 -0
- viam/components/gantry/gantry.py +156 -0
- viam/components/gantry/service.py +113 -0
- viam/components/generic/__init__.py +18 -0
- viam/components/generic/client.py +62 -0
- viam/components/generic/generic.py +76 -0
- viam/components/generic/service.py +40 -0
- viam/components/gripper/__init__.py +11 -0
- viam/components/gripper/client.py +85 -0
- viam/components/gripper/gripper.py +114 -0
- viam/components/gripper/service.py +81 -0
- viam/components/input/__init__.py +15 -0
- viam/components/input/client.py +194 -0
- viam/components/input/input.py +297 -0
- viam/components/input/service.py +175 -0
- viam/components/motor/__init__.py +11 -0
- viam/components/motor/client.py +168 -0
- viam/components/motor/motor.py +301 -0
- viam/components/motor/service.py +150 -0
- viam/components/movement_sensor/__init__.py +21 -0
- viam/components/movement_sensor/client.py +161 -0
- viam/components/movement_sensor/movement_sensor.py +253 -0
- viam/components/movement_sensor/service.py +146 -0
- viam/components/pose_tracker/__init__.py +17 -0
- viam/components/pose_tracker/client.py +50 -0
- viam/components/pose_tracker/pose_tracker.py +40 -0
- viam/components/pose_tracker/service.py +45 -0
- 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 +18 -0
- viam/components/sensor/client.py +49 -0
- viam/components/sensor/sensor.py +48 -0
- viam/components/sensor/service.py +51 -0
- viam/components/servo/__init__.py +11 -0
- viam/components/servo/client.py +86 -0
- viam/components/servo/service.py +80 -0
- viam/components/servo/servo.py +114 -0
- 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 +95 -0
- viam/errors.py +105 -0
- viam/gen/__init__.py +0 -0
- viam/gen/app/__init__.py +0 -0
- viam/gen/app/agent/__init__.py +0 -0
- viam/gen/app/agent/v1/__init__.py +0 -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/__init__.py +0 -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/__init__.py +0 -0
- viam/gen/app/data/v1/__init__.py +0 -0
- viam/gen/app/data/v1/data_grpc.py +206 -0
- viam/gen/app/data/v1/data_pb2.py +178 -0
- viam/gen/app/data/v1/data_pb2.pyi +1485 -0
- 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 +56 -0
- viam/gen/app/datapipelines/v1/data_pipelines_pb2.pyi +370 -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 +60 -0
- viam/gen/app/dataset/v1/dataset_pb2.py +40 -0
- viam/gen/app/dataset/v1/dataset_pb2.pyi +179 -0
- viam/gen/app/datasync/__init__.py +0 -0
- viam/gen/app/datasync/v1/__init__.py +0 -0
- viam/gen/app/datasync/v1/data_sync_grpc.py +47 -0
- viam/gen/app/datasync/v1/data_sync_pb2.py +70 -0
- viam/gen/app/datasync/v1/data_sync_pb2.pyi +425 -0
- 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/__init__.py +0 -0
- viam/gen/app/mltraining/v1/__init__.py +0 -0
- viam/gen/app/mltraining/v1/ml_training_grpc.py +78 -0
- viam/gen/app/mltraining/v1/ml_training_pb2.py +124 -0
- viam/gen/app/mltraining/v1/ml_training_pb2.pyi +415 -0
- viam/gen/app/packages/__init__.py +0 -0
- viam/gen/app/packages/v1/__init__.py +0 -0
- viam/gen/app/packages/v1/packages_grpc.py +54 -0
- viam/gen/app/packages/v1/packages_pb2.py +52 -0
- viam/gen/app/packages/v1/packages_pb2.pyi +311 -0
- viam/gen/app/v1/__init__.py +0 -0
- viam/gen/app/v1/app_grpc.py +863 -0
- viam/gen/app/v1/app_pb2.py +649 -0
- viam/gen/app/v1/app_pb2.pyi +5279 -0
- viam/gen/app/v1/billing_grpc.py +76 -0
- viam/gen/app/v1/billing_pb2.py +92 -0
- viam/gen/app/v1/billing_pb2.pyi +463 -0
- 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 +55 -0
- viam/gen/app/v1/robot_pb2.py +127 -0
- viam/gen/app/v1/robot_pb2.pyi +1202 -0
- viam/gen/common/__init__.py +0 -0
- viam/gen/common/v1/__init__.py +0 -0
- viam/gen/common/v1/common_grpc.py +0 -0
- viam/gen/common/v1/common_pb2.py +78 -0
- viam/gen/common/v1/common_pb2.pyi +687 -0
- viam/gen/component/__init__.py +0 -0
- viam/gen/component/arm/__init__.py +0 -0
- viam/gen/component/arm/v1/__init__.py +0 -0
- viam/gen/component/arm/v1/arm_grpc.py +102 -0
- viam/gen/component/arm/v1/arm_pb2.py +74 -0
- viam/gen/component/arm/v1/arm_pb2.pyi +344 -0
- viam/gen/component/audioinput/__init__.py +0 -0
- viam/gen/component/audioinput/v1/__init__.py +0 -0
- viam/gen/component/audioinput/v1/audioinput_grpc.py +63 -0
- viam/gen/component/audioinput/v1/audioinput_pb2.py +45 -0
- viam/gen/component/audioinput/v1/audioinput_pb2.pyi +179 -0
- viam/gen/component/base/__init__.py +0 -0
- viam/gen/component/base/v1/__init__.py +0 -0
- viam/gen/component/base/v1/base_grpc.py +94 -0
- viam/gen/component/base/v1/base_pb2.py +66 -0
- viam/gen/component/base/v1/base_pb2.pyi +258 -0
- viam/gen/component/board/__init__.py +0 -0
- viam/gen/component/board/v1/__init__.py +0 -0
- viam/gen/component/board/v1/board_grpc.py +127 -0
- viam/gen/component/board/v1/board_pb2.py +103 -0
- viam/gen/component/board/v1/board_pb2.pyi +496 -0
- 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/__init__.py +0 -0
- viam/gen/component/camera/v1/__init__.py +0 -0
- viam/gen/component/camera/v1/camera_grpc.py +79 -0
- viam/gen/component/camera/v1/camera_pb2.py +67 -0
- viam/gen/component/camera/v1/camera_pb2.pyi +373 -0
- viam/gen/component/encoder/__init__.py +0 -0
- viam/gen/component/encoder/v1/__init__.py +0 -0
- viam/gen/component/encoder/v1/encoder_grpc.py +62 -0
- viam/gen/component/encoder/v1/encoder_pb2.py +44 -0
- viam/gen/component/encoder/v1/encoder_pb2.pyi +147 -0
- viam/gen/component/gantry/__init__.py +0 -0
- viam/gen/component/gantry/v1/__init__.py +0 -0
- viam/gen/component/gantry/v1/gantry_grpc.py +86 -0
- viam/gen/component/gantry/v1/gantry_pb2.py +62 -0
- viam/gen/component/gantry/v1/gantry_pb2.pyi +239 -0
- viam/gen/component/generic/__init__.py +0 -0
- viam/gen/component/generic/v1/__init__.py +0 -0
- viam/gen/component/generic/v1/generic_grpc.py +37 -0
- viam/gen/component/generic/v1/generic_pb2.py +23 -0
- viam/gen/component/generic/v1/generic_pb2.pyi +6 -0
- viam/gen/component/gripper/__init__.py +0 -0
- viam/gen/component/gripper/v1/__init__.py +0 -0
- viam/gen/component/gripper/v1/gripper_grpc.py +70 -0
- viam/gen/component/gripper/v1/gripper_pb2.py +48 -0
- viam/gen/component/gripper/v1/gripper_pb2.pyi +137 -0
- viam/gen/component/inputcontroller/__init__.py +0 -0
- viam/gen/component/inputcontroller/v1/__init__.py +0 -0
- viam/gen/component/inputcontroller/v1/input_controller_grpc.py +71 -0
- viam/gen/component/inputcontroller/v1/input_controller_pb2.py +55 -0
- viam/gen/component/inputcontroller/v1/input_controller_pb2.pyi +243 -0
- viam/gen/component/motor/__init__.py +0 -0
- viam/gen/component/motor/v1/__init__.py +0 -0
- viam/gen/component/motor/v1/motor_grpc.py +118 -0
- viam/gen/component/motor/v1/motor_pb2.py +86 -0
- viam/gen/component/motor/v1/motor_pb2.pyi +368 -0
- viam/gen/component/movementsensor/__init__.py +0 -0
- viam/gen/component/movementsensor/v1/__init__.py +0 -0
- viam/gen/component/movementsensor/v1/movementsensor_grpc.py +110 -0
- viam/gen/component/movementsensor/v1/movementsensor_pb2.py +78 -0
- viam/gen/component/movementsensor/v1/movementsensor_pb2.pyi +384 -0
- viam/gen/component/posetracker/__init__.py +0 -0
- viam/gen/component/posetracker/v1/__init__.py +0 -0
- viam/gen/component/posetracker/v1/pose_tracker_grpc.py +46 -0
- viam/gen/component/posetracker/v1/pose_tracker_pb2.py +34 -0
- viam/gen/component/posetracker/v1/pose_tracker_pb2.pyi +79 -0
- 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/__init__.py +0 -0
- viam/gen/component/sensor/v1/__init__.py +0 -0
- viam/gen/component/sensor/v1/sensor_grpc.py +45 -0
- viam/gen/component/sensor/v1/sensor_pb2.py +25 -0
- viam/gen/component/sensor/v1/sensor_pb2.pyi +6 -0
- viam/gen/component/servo/__init__.py +0 -0
- viam/gen/component/servo/v1/__init__.py +0 -0
- viam/gen/component/servo/v1/servo_grpc.py +70 -0
- viam/gen/component/servo/v1/servo_pb2.py +50 -0
- viam/gen/component/servo/v1/servo_pb2.pyi +150 -0
- 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 +109 -0
- viam/gen/component/testecho/__init__.py +0 -0
- viam/gen/component/testecho/v1/__init__.py +0 -0
- viam/gen/component/testecho/v1/testecho_grpc.py +52 -0
- viam/gen/component/testecho/v1/testecho_pb2.py +36 -0
- viam/gen/component/testecho/v1/testecho_pb2.pyi +114 -0
- viam/gen/module/__init__.py +0 -0
- viam/gen/module/v1/__init__.py +0 -0
- viam/gen/module/v1/module_grpc.py +61 -0
- viam/gen/module/v1/module_pb2.py +43 -0
- viam/gen/module/v1/module_pb2.pyi +211 -0
- viam/gen/proto/__init__.py +0 -0
- viam/gen/proto/rpc/__init__.py +0 -0
- viam/gen/proto/rpc/examples/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echo/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echo/v1/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_grpc.py +44 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.py +32 -0
- viam/gen/proto/rpc/examples/echo/v1/echo_pb2.pyi +87 -0
- viam/gen/proto/rpc/examples/echoresource/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echoresource/v1/__init__.py +0 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_grpc.py +43 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.py +29 -0
- viam/gen/proto/rpc/examples/echoresource/v1/echoresource_pb2.pyi +93 -0
- viam/gen/proto/rpc/v1/__init__.py +0 -0
- viam/gen/proto/rpc/v1/auth_grpc.py +47 -0
- viam/gen/proto/rpc/v1/auth_pb2.py +34 -0
- viam/gen/proto/rpc/v1/auth_pb2.pyi +92 -0
- viam/gen/proto/rpc/webrtc/__init__.py +0 -0
- viam/gen/proto/rpc/webrtc/v1/__init__.py +0 -0
- viam/gen/proto/rpc/webrtc/v1/grpc_grpc.py +0 -0
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.py +43 -0
- viam/gen/proto/rpc/webrtc/v1/grpc_pb2.pyi +304 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_grpc.py +54 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.py +70 -0
- viam/gen/proto/rpc/webrtc/v1/signaling_pb2.pyi +496 -0
- viam/gen/provisioning/__init__.py +0 -0
- viam/gen/provisioning/v1/__init__.py +0 -0
- viam/gen/provisioning/v1/provisioning_grpc.py +51 -0
- viam/gen/provisioning/v1/provisioning_pb2.py +39 -0
- viam/gen/provisioning/v1/provisioning_pb2.pyi +188 -0
- viam/gen/robot/__init__.py +0 -0
- viam/gen/robot/v1/__init__.py +0 -0
- viam/gen/robot/v1/robot_grpc.py +208 -0
- viam/gen/robot/v1/robot_pb2.py +188 -0
- viam/gen/robot/v1/robot_pb2.pyi +1020 -0
- viam/gen/service/__init__.py +0 -0
- viam/gen/service/datamanager/__init__.py +0 -0
- viam/gen/service/datamanager/v1/__init__.py +0 -0
- viam/gen/service/datamanager/v1/data_manager_grpc.py +38 -0
- viam/gen/service/datamanager/v1/data_manager_pb2.py +28 -0
- viam/gen/service/datamanager/v1/data_manager_pb2.pyi +39 -0
- 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/__init__.py +0 -0
- viam/gen/service/mlmodel/v1/__init__.py +0 -0
- viam/gen/service/mlmodel/v1/mlmodel_grpc.py +37 -0
- viam/gen/service/mlmodel/v1/mlmodel_pb2.py +83 -0
- viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi +480 -0
- viam/gen/service/motion/__init__.py +0 -0
- viam/gen/service/motion/v1/__init__.py +0 -0
- viam/gen/service/motion/v1/motion_grpc.py +87 -0
- viam/gen/service/motion/v1/motion_pb2.py +97 -0
- viam/gen/service/motion/v1/motion_pb2.pyi +838 -0
- viam/gen/service/navigation/__init__.py +0 -0
- viam/gen/service/navigation/v1/__init__.py +0 -0
- viam/gen/service/navigation/v1/navigation_grpc.py +102 -0
- viam/gen/service/navigation/v1/navigation_pb2.py +84 -0
- viam/gen/service/navigation/v1/navigation_pb2.pyi +419 -0
- viam/gen/service/sensors/__init__.py +0 -0
- viam/gen/service/sensors/v1/__init__.py +0 -0
- viam/gen/service/sensors/v1/sensors_grpc.py +46 -0
- viam/gen/service/sensors/v1/sensors_pb2.py +68 -0
- viam/gen/service/sensors/v1/sensors_pb2.pyi +137 -0
- viam/gen/service/shell/__init__.py +0 -0
- viam/gen/service/shell/v1/__init__.py +0 -0
- viam/gen/service/shell/v1/shell_grpc.py +55 -0
- viam/gen/service/shell/v1/shell_pb2.py +45 -0
- viam/gen/service/shell/v1/shell_pb2.pyi +307 -0
- viam/gen/service/slam/__init__.py +0 -0
- viam/gen/service/slam/v1/__init__.py +0 -0
- viam/gen/service/slam/v1/slam_grpc.py +61 -0
- viam/gen/service/slam/v1/slam_pb2.py +51 -0
- viam/gen/service/slam/v1/slam_pb2.pyi +213 -0
- viam/gen/service/vision/__init__.py +0 -0
- viam/gen/service/vision/v1/__init__.py +0 -0
- viam/gen/service/vision/v1/vision_grpc.py +87 -0
- viam/gen/service/vision/v1/vision_pb2.py +69 -0
- viam/gen/service/vision/v1/vision_pb2.pyi +454 -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/__init__.py +0 -0
- viam/gen/tagger/v1/__init__.py +0 -0
- viam/gen/tagger/v1/tagger_grpc.py +0 -0
- viam/gen/tagger/v1/tagger_pb2.py +16 -0
- viam/gen/tagger/v1/tagger_pb2.pyi +15 -0
- viam/logging.py +216 -0
- viam/media/__init__.py +0 -0
- viam/media/audio.py +16 -0
- viam/media/utils/__init__.py +0 -0
- viam/media/utils/pil/__init__.py +51 -0
- viam/media/utils/pil/viam_rgba_plugin.py +73 -0
- viam/media/viam_rgba.py +10 -0
- viam/media/video.py +217 -0
- viam/module/__init__.py +5 -0
- viam/module/module.py +281 -0
- viam/module/service.py +66 -0
- viam/module/types.py +23 -0
- viam/operations.py +124 -0
- viam/proto/__init__.py +0 -0
- viam/proto/app/__init__.py +554 -0
- viam/proto/app/agent/__init__.py +28 -0
- viam/proto/app/billing.py +58 -0
- viam/proto/app/cloudslam/__init__.py +48 -0
- viam/proto/app/data/__init__.py +138 -0
- viam/proto/app/datapipelines/__init__.py +56 -0
- viam/proto/app/dataset/__init__.py +36 -0
- viam/proto/app/datasync/__init__.py +44 -0
- viam/proto/app/end_user.py +34 -0
- viam/proto/app/mlinference/__init__.py +15 -0
- viam/proto/app/mltraining/__init__.py +52 -0
- viam/proto/app/packages/__init__.py +38 -0
- viam/proto/app/robot.py +84 -0
- viam/proto/common/__init__.py +66 -0
- viam/proto/component/__init__.py +0 -0
- viam/proto/component/arm/__init__.py +48 -0
- viam/proto/component/audioinput/__init__.py +30 -0
- viam/proto/component/base/__init__.py +42 -0
- viam/proto/component/board/__init__.py +62 -0
- viam/proto/component/button/__init__.py +15 -0
- viam/proto/component/camera/__init__.py +46 -0
- viam/proto/component/encoder/__init__.py +28 -0
- viam/proto/component/gantry/__init__.py +40 -0
- viam/proto/component/generic/__init__.py +12 -0
- viam/proto/component/gripper/__init__.py +30 -0
- viam/proto/component/inputcontroller/__init__.py +38 -0
- viam/proto/component/motor/__init__.py +56 -0
- viam/proto/component/movementsensor/__init__.py +50 -0
- viam/proto/component/posetracker/__init__.py +19 -0
- viam/proto/component/powersensor/__init__.py +30 -0
- viam/proto/component/sensor/__init__.py +12 -0
- viam/proto/component/servo/__init__.py +32 -0
- viam/proto/component/switch/__init__.py +26 -0
- viam/proto/component/testecho/__init__.py +30 -0
- viam/proto/module/__init__.py +38 -0
- viam/proto/provisioning/__init__.py +36 -0
- viam/proto/robot/__init__.py +130 -0
- viam/proto/rpc/__init__.py +0 -0
- viam/proto/rpc/auth.py +34 -0
- viam/proto/rpc/examples/__init__.py +0 -0
- viam/proto/rpc/examples/echo/__init__.py +26 -0
- viam/proto/rpc/examples/echoresource/__init__.py +30 -0
- viam/proto/rpc/webrtc/__init__.py +0 -0
- viam/proto/rpc/webrtc/grpc.py +36 -0
- viam/proto/rpc/webrtc/signaling.py +58 -0
- viam/proto/service/__init__.py +0 -0
- viam/proto/service/datamanager/__init__.py +19 -0
- viam/proto/service/discovery/__init__.py +15 -0
- viam/proto/service/generic/__init__.py +12 -0
- viam/proto/service/mlmodel/__init__.py +54 -0
- viam/proto/service/motion/__init__.py +68 -0
- viam/proto/service/navigation/__init__.py +58 -0
- viam/proto/service/sensors/__init__.py +18 -0
- viam/proto/service/shell/__init__.py +36 -0
- viam/proto/service/slam/__init__.py +36 -0
- viam/proto/service/vision/__init__.py +46 -0
- viam/proto/stream/__init__.py +36 -0
- viam/proto/tagger/__init__.py +6 -0
- viam/py.typed +0 -0
- viam/resource/__init__.py +0 -0
- viam/resource/base.py +123 -0
- viam/resource/easy_resource.py +153 -0
- viam/resource/manager.py +126 -0
- viam/resource/registry.py +199 -0
- viam/resource/rpc_client_base.py +65 -0
- viam/resource/rpc_service_base.py +48 -0
- viam/resource/types.py +213 -0
- viam/robot/__init__.py +0 -0
- viam/robot/client.py +909 -0
- viam/robot/service.py +69 -0
- viam/rpc/__init__.py +0 -0
- viam/rpc/dial.py +420 -0
- viam/rpc/libviam_rust_utils.dll +0 -0
- viam/rpc/server.py +201 -0
- viam/rpc/signaling.py +29 -0
- viam/rpc/types.py +22 -0
- viam/services/__init__.py +0 -0
- 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 +24 -0
- viam/services/mlmodel/client.py +37 -0
- viam/services/mlmodel/mlmodel.py +78 -0
- viam/services/mlmodel/service.py +38 -0
- viam/services/mlmodel/utils.py +101 -0
- viam/services/motion/__init__.py +17 -0
- viam/services/motion/client.py +215 -0
- viam/services/motion/motion.py +378 -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 +78 -0
- viam/services/service_client_base.py +46 -0
- viam/services/slam/__init__.py +17 -0
- viam/services/slam/client.py +62 -0
- viam/services/slam/service.py +75 -0
- viam/services/slam/slam.py +111 -0
- viam/services/vision/__init__.py +15 -0
- viam/services/vision/client.py +206 -0
- viam/services/vision/service.py +146 -0
- viam/services/vision/vision.py +315 -0
- viam/sessions_client.py +245 -0
- viam/streams.py +44 -0
- viam/utils.py +365 -0
- viam/version_metadata.py +4 -0
- viam_sdk-0.45.2.dist-info/METADATA +157 -0
- viam_sdk-0.45.2.dist-info/RECORD +476 -0
- viam_sdk-0.45.2.dist-info/WHEEL +4 -0
- viam_sdk-0.45.2.dist-info/licenses/LICENSE +202 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import typing
|
|
3
|
+
import grpclib.const
|
|
4
|
+
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
import grpclib.server
|
|
8
|
+
from .... import common
|
|
9
|
+
import google.api.annotations_pb2
|
|
10
|
+
import google.api.httpbody_pb2
|
|
11
|
+
import google.protobuf.struct_pb2
|
|
12
|
+
from .... import component
|
|
13
|
+
|
|
14
|
+
class CameraServiceBase(abc.ABC):
|
|
15
|
+
|
|
16
|
+
@abc.abstractmethod
|
|
17
|
+
async def GetImage(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetImageRequest, component.camera.v1.camera_pb2.GetImageResponse]') -> None:
|
|
18
|
+
pass
|
|
19
|
+
|
|
20
|
+
@abc.abstractmethod
|
|
21
|
+
async def GetImages(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetImagesRequest, component.camera.v1.camera_pb2.GetImagesResponse]') -> None:
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
@abc.abstractmethod
|
|
25
|
+
async def RenderFrame(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.RenderFrameRequest, google.api.httpbody_pb2.HttpBody]') -> None:
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
@abc.abstractmethod
|
|
29
|
+
async def GetPointCloud(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetPointCloudRequest, component.camera.v1.camera_pb2.GetPointCloudResponse]') -> None:
|
|
30
|
+
pass
|
|
31
|
+
|
|
32
|
+
@abc.abstractmethod
|
|
33
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetPropertiesRequest, component.camera.v1.camera_pb2.GetPropertiesResponse]') -> None:
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
@abc.abstractmethod
|
|
37
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
38
|
+
pass
|
|
39
|
+
|
|
40
|
+
@abc.abstractmethod
|
|
41
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
45
|
+
return {'/viam.component.camera.v1.CameraService/GetImage': grpclib.const.Handler(self.GetImage, grpclib.const.Cardinality.UNARY_UNARY, component.camera.v1.camera_pb2.GetImageRequest, component.camera.v1.camera_pb2.GetImageResponse), '/viam.component.camera.v1.CameraService/GetImages': grpclib.const.Handler(self.GetImages, grpclib.const.Cardinality.UNARY_UNARY, component.camera.v1.camera_pb2.GetImagesRequest, component.camera.v1.camera_pb2.GetImagesResponse), '/viam.component.camera.v1.CameraService/RenderFrame': grpclib.const.Handler(self.RenderFrame, grpclib.const.Cardinality.UNARY_UNARY, component.camera.v1.camera_pb2.RenderFrameRequest, google.api.httpbody_pb2.HttpBody), '/viam.component.camera.v1.CameraService/GetPointCloud': grpclib.const.Handler(self.GetPointCloud, grpclib.const.Cardinality.UNARY_UNARY, component.camera.v1.camera_pb2.GetPointCloudRequest, component.camera.v1.camera_pb2.GetPointCloudResponse), '/viam.component.camera.v1.CameraService/GetProperties': grpclib.const.Handler(self.GetProperties, grpclib.const.Cardinality.UNARY_UNARY, component.camera.v1.camera_pb2.GetPropertiesRequest, component.camera.v1.camera_pb2.GetPropertiesResponse), '/viam.component.camera.v1.CameraService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.camera.v1.CameraService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
46
|
+
|
|
47
|
+
class UnimplementedCameraServiceBase(CameraServiceBase):
|
|
48
|
+
|
|
49
|
+
async def GetImage(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetImageRequest, component.camera.v1.camera_pb2.GetImageResponse]') -> None:
|
|
50
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
51
|
+
|
|
52
|
+
async def GetImages(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetImagesRequest, component.camera.v1.camera_pb2.GetImagesResponse]') -> None:
|
|
53
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
54
|
+
|
|
55
|
+
async def RenderFrame(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.RenderFrameRequest, google.api.httpbody_pb2.HttpBody]') -> None:
|
|
56
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
57
|
+
|
|
58
|
+
async def GetPointCloud(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetPointCloudRequest, component.camera.v1.camera_pb2.GetPointCloudResponse]') -> None:
|
|
59
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
60
|
+
|
|
61
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[component.camera.v1.camera_pb2.GetPropertiesRequest, component.camera.v1.camera_pb2.GetPropertiesResponse]') -> None:
|
|
62
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
63
|
+
|
|
64
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
65
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
66
|
+
|
|
67
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
68
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
69
|
+
|
|
70
|
+
class CameraServiceStub:
|
|
71
|
+
|
|
72
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
73
|
+
self.GetImage = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/GetImage', component.camera.v1.camera_pb2.GetImageRequest, component.camera.v1.camera_pb2.GetImageResponse)
|
|
74
|
+
self.GetImages = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/GetImages', component.camera.v1.camera_pb2.GetImagesRequest, component.camera.v1.camera_pb2.GetImagesResponse)
|
|
75
|
+
self.RenderFrame = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/RenderFrame', component.camera.v1.camera_pb2.RenderFrameRequest, google.api.httpbody_pb2.HttpBody)
|
|
76
|
+
self.GetPointCloud = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/GetPointCloud', component.camera.v1.camera_pb2.GetPointCloudRequest, component.camera.v1.camera_pb2.GetPointCloudResponse)
|
|
77
|
+
self.GetProperties = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/GetProperties', component.camera.v1.camera_pb2.GetPropertiesRequest, component.camera.v1.camera_pb2.GetPropertiesResponse)
|
|
78
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
79
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.camera.v1.CameraService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"""Generated protocol buffer code."""
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/camera/v1/camera.proto')
|
|
8
|
+
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
|
+
from google.api import httpbody_pb2 as google_dot_api_dot_httpbody__pb2
|
|
12
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
13
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n component/camera/v1/camera.proto\x12\x18viam.component.camera.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/api/httpbody.proto\x1a\x1cgoogle/protobuf/struct.proto"q\n\x0fGetImageRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"E\n\x10GetImageResponse\x12\x1b\n\tmime_type\x18\x01 \x01(\tR\x08mimeType\x12\x14\n\x05image\x18\x02 \x01(\x0cR\x05image"&\n\x10GetImagesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"\x9d\x01\n\x11GetImagesResponse\x127\n\x06images\x18\x01 \x03(\x0b2\x1f.viam.component.camera.v1.ImageR\x06images\x12O\n\x11response_metadata\x18\xa4\x92\x05 \x01(\x0b2 .viam.common.v1.ResponseMetadataR\x10responseMetadata"x\n\x05Image\x12\x1f\n\x0bsource_name\x18\x01 \x01(\tR\nsourceName\x128\n\x06format\x18\x02 \x01(\x0e2 .viam.component.camera.v1.FormatR\x06format\x12\x14\n\x05image\x18\x03 \x01(\x0cR\x05image"t\n\x12RenderFrameRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"v\n\x14GetPointCloudRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1b\n\tmime_type\x18\x02 \x01(\tR\x08mimeType\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"U\n\x15GetPointCloudResponse\x12\x1b\n\tmime_type\x18\x01 \x01(\tR\x08mimeType\x12\x1f\n\x0bpoint_cloud\x18\x02 \x01(\x0cR\npointCloud"*\n\x14GetPropertiesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"\xd3\x02\n\x15GetPropertiesResponse\x12!\n\x0csupports_pcd\x18\x01 \x01(\x08R\x0bsupportsPcd\x12`\n\x14intrinsic_parameters\x18\x02 \x01(\x0b2-.viam.component.camera.v1.IntrinsicParametersR\x13intrinsicParameters\x12c\n\x15distortion_parameters\x18\x03 \x01(\x0b2..viam.component.camera.v1.DistortionParametersR\x14distortionParameters\x12\x1d\n\nmime_types\x18\x04 \x03(\tR\tmimeTypes\x12"\n\nframe_rate\x18\x05 \x01(\x02H\x00R\tframeRate\x88\x01\x01B\r\n\x0b_frame_rate"E\n\x07Webcams\x12:\n\x07webcams\x18\x01 \x03(\x0b2 .viam.component.camera.v1.WebcamR\x07webcams"\x9e\x01\n\x06Webcam\x12\x14\n\x05label\x18\x01 \x01(\tR\x05label\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\x12B\n\nproperties\x18\x03 \x03(\x0b2".viam.component.camera.v1.PropertyR\nproperties\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x0e\n\x02id\x18\x05 \x01(\tR\x02id"\x84\x01\n\x08Property\x12\x19\n\x08width_px\x18\x01 \x01(\x05R\x07widthPx\x12\x1b\n\theight_px\x18\x02 \x01(\x05R\x08heightPx\x12!\n\x0cframe_format\x18\x03 \x01(\tR\x0bframeFormat\x12\x1d\n\nframe_rate\x18\x04 \x01(\x02R\tframeRate"\xc9\x01\n\x13IntrinsicParameters\x12\x19\n\x08width_px\x18\x01 \x01(\rR\x07widthPx\x12\x1b\n\theight_px\x18\x02 \x01(\rR\x08heightPx\x12\x1c\n\nfocal_x_px\x18\x03 \x01(\x01R\x08focalXPx\x12\x1c\n\nfocal_y_px\x18\x04 \x01(\x01R\x08focalYPx\x12\x1e\n\x0bcenter_x_px\x18\x05 \x01(\x01R\tcenterXPx\x12\x1e\n\x0bcenter_y_px\x18\x06 \x01(\x01R\tcenterYPx"L\n\x14DistortionParameters\x12\x14\n\x05model\x18\x01 \x01(\tR\x05model\x12\x1e\n\nparameters\x18\x02 \x03(\x01R\nparameters*l\n\x06Format\x12\x16\n\x12FORMAT_UNSPECIFIED\x10\x00\x12\x13\n\x0fFORMAT_RAW_RGBA\x10\x01\x12\x14\n\x10FORMAT_RAW_DEPTH\x10\x02\x12\x0f\n\x0bFORMAT_JPEG\x10\x03\x12\x0e\n\nFORMAT_PNG\x10\x042\xcf\x08\n\rCameraService\x12\x95\x01\n\x08GetImage\x12).viam.component.camera.v1.GetImageRequest\x1a*.viam.component.camera.v1.GetImageResponse"2\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/camera/{name}/image\x12\x99\x01\n\tGetImages\x12*.viam.component.camera.v1.GetImagesRequest\x1a+.viam.component.camera.v1.GetImagesResponse"3\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/camera/{name}/images\x12\x8c\x01\n\x0bRenderFrame\x12,.viam.component.camera.v1.RenderFrameRequest\x1a\x14.google.api.HttpBody"9\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/camera/{name}/render_frame\x12\xaa\x01\n\rGetPointCloud\x12..viam.component.camera.v1.GetPointCloudRequest\x1a/.viam.component.camera.v1.GetPointCloudResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/camera/{name}/point_cloud\x12\xa9\x01\n\rGetProperties\x12..viam.component.camera.v1.GetPropertiesRequest\x1a/.viam.component.camera.v1.GetPropertiesResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/properties\x12\x89\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"7\x82\xd3\xe4\x93\x021"//viam/api/v1/component/camera/{name}/do_command\x12\x95\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"7\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/geometriesBC\n\x1ccom.viam.component.camera.v1Z#go.viam.com/api/component/camera/v1b\x06proto3')
|
|
14
|
+
_globals = globals()
|
|
15
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
16
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.camera.v1.camera_pb2', _globals)
|
|
17
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
18
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
19
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1ccom.viam.component.camera.v1Z#go.viam.com/api/component/camera/v1'
|
|
20
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetImage']._loaded_options = None
|
|
21
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetImage']._serialized_options = b'\x82\xd3\xe4\x93\x02,\x12*/viam/api/v1/component/camera/{name}/image'
|
|
22
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetImages']._loaded_options = None
|
|
23
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetImages']._serialized_options = b'\x82\xd3\xe4\x93\x02-\x12+/viam/api/v1/component/camera/{name}/images'
|
|
24
|
+
_globals['_CAMERASERVICE'].methods_by_name['RenderFrame']._loaded_options = None
|
|
25
|
+
_globals['_CAMERASERVICE'].methods_by_name['RenderFrame']._serialized_options = b'\x82\xd3\xe4\x93\x023\x121/viam/api/v1/component/camera/{name}/render_frame'
|
|
26
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetPointCloud']._loaded_options = None
|
|
27
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetPointCloud']._serialized_options = b'\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/camera/{name}/point_cloud'
|
|
28
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetProperties']._loaded_options = None
|
|
29
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetProperties']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/properties'
|
|
30
|
+
_globals['_CAMERASERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
31
|
+
_globals['_CAMERASERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x021"//viam/api/v1/component/camera/{name}/do_command'
|
|
32
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
33
|
+
_globals['_CAMERASERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x021\x12//viam/api/v1/component/camera/{name}/geometries'
|
|
34
|
+
_globals['_FORMAT']._serialized_start = 2041
|
|
35
|
+
_globals['_FORMAT']._serialized_end = 2149
|
|
36
|
+
_globals['_GETIMAGEREQUEST']._serialized_start = 173
|
|
37
|
+
_globals['_GETIMAGEREQUEST']._serialized_end = 286
|
|
38
|
+
_globals['_GETIMAGERESPONSE']._serialized_start = 288
|
|
39
|
+
_globals['_GETIMAGERESPONSE']._serialized_end = 357
|
|
40
|
+
_globals['_GETIMAGESREQUEST']._serialized_start = 359
|
|
41
|
+
_globals['_GETIMAGESREQUEST']._serialized_end = 397
|
|
42
|
+
_globals['_GETIMAGESRESPONSE']._serialized_start = 400
|
|
43
|
+
_globals['_GETIMAGESRESPONSE']._serialized_end = 557
|
|
44
|
+
_globals['_IMAGE']._serialized_start = 559
|
|
45
|
+
_globals['_IMAGE']._serialized_end = 679
|
|
46
|
+
_globals['_RENDERFRAMEREQUEST']._serialized_start = 681
|
|
47
|
+
_globals['_RENDERFRAMEREQUEST']._serialized_end = 797
|
|
48
|
+
_globals['_GETPOINTCLOUDREQUEST']._serialized_start = 799
|
|
49
|
+
_globals['_GETPOINTCLOUDREQUEST']._serialized_end = 917
|
|
50
|
+
_globals['_GETPOINTCLOUDRESPONSE']._serialized_start = 919
|
|
51
|
+
_globals['_GETPOINTCLOUDRESPONSE']._serialized_end = 1004
|
|
52
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_start = 1006
|
|
53
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_end = 1048
|
|
54
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_start = 1051
|
|
55
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_end = 1390
|
|
56
|
+
_globals['_WEBCAMS']._serialized_start = 1392
|
|
57
|
+
_globals['_WEBCAMS']._serialized_end = 1461
|
|
58
|
+
_globals['_WEBCAM']._serialized_start = 1464
|
|
59
|
+
_globals['_WEBCAM']._serialized_end = 1622
|
|
60
|
+
_globals['_PROPERTY']._serialized_start = 1625
|
|
61
|
+
_globals['_PROPERTY']._serialized_end = 1757
|
|
62
|
+
_globals['_INTRINSICPARAMETERS']._serialized_start = 1760
|
|
63
|
+
_globals['_INTRINSICPARAMETERS']._serialized_end = 1961
|
|
64
|
+
_globals['_DISTORTIONPARAMETERS']._serialized_start = 1963
|
|
65
|
+
_globals['_DISTORTIONPARAMETERS']._serialized_end = 2039
|
|
66
|
+
_globals['_CAMERASERVICE']._serialized_start = 2152
|
|
67
|
+
_globals['_CAMERASERVICE']._serialized_end = 3255
|
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import builtins
|
|
6
|
+
import collections.abc
|
|
7
|
+
from .... import common
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.struct_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
if sys.version_info >= (3, 10):
|
|
16
|
+
import typing as typing_extensions
|
|
17
|
+
else:
|
|
18
|
+
import typing_extensions
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
+
|
|
21
|
+
class _Format:
|
|
22
|
+
ValueType = typing.NewType('ValueType', builtins.int)
|
|
23
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
24
|
+
|
|
25
|
+
class _FormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Format.ValueType], builtins.type):
|
|
26
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
27
|
+
FORMAT_UNSPECIFIED: _Format.ValueType
|
|
28
|
+
FORMAT_RAW_RGBA: _Format.ValueType
|
|
29
|
+
FORMAT_RAW_DEPTH: _Format.ValueType
|
|
30
|
+
FORMAT_JPEG: _Format.ValueType
|
|
31
|
+
FORMAT_PNG: _Format.ValueType
|
|
32
|
+
|
|
33
|
+
class Format(_Format, metaclass=_FormatEnumTypeWrapper):
|
|
34
|
+
...
|
|
35
|
+
FORMAT_UNSPECIFIED: Format.ValueType
|
|
36
|
+
FORMAT_RAW_RGBA: Format.ValueType
|
|
37
|
+
FORMAT_RAW_DEPTH: Format.ValueType
|
|
38
|
+
FORMAT_JPEG: Format.ValueType
|
|
39
|
+
FORMAT_PNG: Format.ValueType
|
|
40
|
+
global___Format = Format
|
|
41
|
+
|
|
42
|
+
@typing.final
|
|
43
|
+
class GetImageRequest(google.protobuf.message.Message):
|
|
44
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
45
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
46
|
+
MIME_TYPE_FIELD_NUMBER: builtins.int
|
|
47
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
48
|
+
name: builtins.str
|
|
49
|
+
'Name of a camera'
|
|
50
|
+
mime_type: builtins.str
|
|
51
|
+
'Requested MIME type of response'
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
55
|
+
"""Additional arguments to the method"""
|
|
56
|
+
|
|
57
|
+
def __init__(self, *, name: builtins.str=..., mime_type: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
58
|
+
...
|
|
59
|
+
|
|
60
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
61
|
+
...
|
|
62
|
+
|
|
63
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'mime_type', b'mime_type', 'name', b'name']) -> None:
|
|
64
|
+
...
|
|
65
|
+
global___GetImageRequest = GetImageRequest
|
|
66
|
+
|
|
67
|
+
@typing.final
|
|
68
|
+
class GetImageResponse(google.protobuf.message.Message):
|
|
69
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
70
|
+
MIME_TYPE_FIELD_NUMBER: builtins.int
|
|
71
|
+
IMAGE_FIELD_NUMBER: builtins.int
|
|
72
|
+
mime_type: builtins.str
|
|
73
|
+
'Actual MIME type of response'
|
|
74
|
+
image: builtins.bytes
|
|
75
|
+
'Frame in bytes'
|
|
76
|
+
|
|
77
|
+
def __init__(self, *, mime_type: builtins.str=..., image: builtins.bytes=...) -> None:
|
|
78
|
+
...
|
|
79
|
+
|
|
80
|
+
def ClearField(self, field_name: typing.Literal['image', b'image', 'mime_type', b'mime_type']) -> None:
|
|
81
|
+
...
|
|
82
|
+
global___GetImageResponse = GetImageResponse
|
|
83
|
+
|
|
84
|
+
@typing.final
|
|
85
|
+
class GetImagesRequest(google.protobuf.message.Message):
|
|
86
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
87
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
88
|
+
name: builtins.str
|
|
89
|
+
'Name of a camera'
|
|
90
|
+
|
|
91
|
+
def __init__(self, *, name: builtins.str=...) -> None:
|
|
92
|
+
...
|
|
93
|
+
|
|
94
|
+
def ClearField(self, field_name: typing.Literal['name', b'name']) -> None:
|
|
95
|
+
...
|
|
96
|
+
global___GetImagesRequest = GetImagesRequest
|
|
97
|
+
|
|
98
|
+
@typing.final
|
|
99
|
+
class GetImagesResponse(google.protobuf.message.Message):
|
|
100
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
101
|
+
IMAGES_FIELD_NUMBER: builtins.int
|
|
102
|
+
RESPONSE_METADATA_FIELD_NUMBER: builtins.int
|
|
103
|
+
|
|
104
|
+
@property
|
|
105
|
+
def images(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]:
|
|
106
|
+
"""list of images returned from the camera system"""
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def response_metadata(self) -> common.v1.common_pb2.ResponseMetadata:
|
|
110
|
+
"""contains timestamp data"""
|
|
111
|
+
|
|
112
|
+
def __init__(self, *, images: collections.abc.Iterable[global___Image] | None=..., response_metadata: common.v1.common_pb2.ResponseMetadata | None=...) -> None:
|
|
113
|
+
...
|
|
114
|
+
|
|
115
|
+
def HasField(self, field_name: typing.Literal['response_metadata', b'response_metadata']) -> builtins.bool:
|
|
116
|
+
...
|
|
117
|
+
|
|
118
|
+
def ClearField(self, field_name: typing.Literal['images', b'images', 'response_metadata', b'response_metadata']) -> None:
|
|
119
|
+
...
|
|
120
|
+
global___GetImagesResponse = GetImagesResponse
|
|
121
|
+
|
|
122
|
+
@typing.final
|
|
123
|
+
class Image(google.protobuf.message.Message):
|
|
124
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
125
|
+
SOURCE_NAME_FIELD_NUMBER: builtins.int
|
|
126
|
+
FORMAT_FIELD_NUMBER: builtins.int
|
|
127
|
+
IMAGE_FIELD_NUMBER: builtins.int
|
|
128
|
+
source_name: builtins.str
|
|
129
|
+
'the name of the sensor where the image came from'
|
|
130
|
+
format: global___Format.ValueType
|
|
131
|
+
'format of the response image bytes'
|
|
132
|
+
image: builtins.bytes
|
|
133
|
+
'image in bytes'
|
|
134
|
+
|
|
135
|
+
def __init__(self, *, source_name: builtins.str=..., format: global___Format.ValueType=..., image: builtins.bytes=...) -> None:
|
|
136
|
+
...
|
|
137
|
+
|
|
138
|
+
def ClearField(self, field_name: typing.Literal['format', b'format', 'image', b'image', 'source_name', b'source_name']) -> None:
|
|
139
|
+
...
|
|
140
|
+
global___Image = Image
|
|
141
|
+
|
|
142
|
+
@typing.final
|
|
143
|
+
class RenderFrameRequest(google.protobuf.message.Message):
|
|
144
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
145
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
146
|
+
MIME_TYPE_FIELD_NUMBER: builtins.int
|
|
147
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
148
|
+
name: builtins.str
|
|
149
|
+
'Name of a camera'
|
|
150
|
+
mime_type: builtins.str
|
|
151
|
+
'Requested MIME type of response'
|
|
152
|
+
|
|
153
|
+
@property
|
|
154
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
155
|
+
"""Additional arguments to the method"""
|
|
156
|
+
|
|
157
|
+
def __init__(self, *, name: builtins.str=..., mime_type: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
158
|
+
...
|
|
159
|
+
|
|
160
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
161
|
+
...
|
|
162
|
+
|
|
163
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'mime_type', b'mime_type', 'name', b'name']) -> None:
|
|
164
|
+
...
|
|
165
|
+
global___RenderFrameRequest = RenderFrameRequest
|
|
166
|
+
|
|
167
|
+
@typing.final
|
|
168
|
+
class GetPointCloudRequest(google.protobuf.message.Message):
|
|
169
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
170
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
171
|
+
MIME_TYPE_FIELD_NUMBER: builtins.int
|
|
172
|
+
EXTRA_FIELD_NUMBER: builtins.int
|
|
173
|
+
name: builtins.str
|
|
174
|
+
'Name of a camera'
|
|
175
|
+
mime_type: builtins.str
|
|
176
|
+
'Requested MIME type of response'
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
def extra(self) -> google.protobuf.struct_pb2.Struct:
|
|
180
|
+
"""Additional arguments to the method"""
|
|
181
|
+
|
|
182
|
+
def __init__(self, *, name: builtins.str=..., mime_type: builtins.str=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
|
|
183
|
+
...
|
|
184
|
+
|
|
185
|
+
def HasField(self, field_name: typing.Literal['extra', b'extra']) -> builtins.bool:
|
|
186
|
+
...
|
|
187
|
+
|
|
188
|
+
def ClearField(self, field_name: typing.Literal['extra', b'extra', 'mime_type', b'mime_type', 'name', b'name']) -> None:
|
|
189
|
+
...
|
|
190
|
+
global___GetPointCloudRequest = GetPointCloudRequest
|
|
191
|
+
|
|
192
|
+
@typing.final
|
|
193
|
+
class GetPointCloudResponse(google.protobuf.message.Message):
|
|
194
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
195
|
+
MIME_TYPE_FIELD_NUMBER: builtins.int
|
|
196
|
+
POINT_CLOUD_FIELD_NUMBER: builtins.int
|
|
197
|
+
mime_type: builtins.str
|
|
198
|
+
'Actual MIME type of response'
|
|
199
|
+
point_cloud: builtins.bytes
|
|
200
|
+
'Frame in bytes'
|
|
201
|
+
|
|
202
|
+
def __init__(self, *, mime_type: builtins.str=..., point_cloud: builtins.bytes=...) -> None:
|
|
203
|
+
...
|
|
204
|
+
|
|
205
|
+
def ClearField(self, field_name: typing.Literal['mime_type', b'mime_type', 'point_cloud', b'point_cloud']) -> None:
|
|
206
|
+
...
|
|
207
|
+
global___GetPointCloudResponse = GetPointCloudResponse
|
|
208
|
+
|
|
209
|
+
@typing.final
|
|
210
|
+
class GetPropertiesRequest(google.protobuf.message.Message):
|
|
211
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
212
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
213
|
+
name: builtins.str
|
|
214
|
+
'Name of a camera'
|
|
215
|
+
|
|
216
|
+
def __init__(self, *, name: builtins.str=...) -> None:
|
|
217
|
+
...
|
|
218
|
+
|
|
219
|
+
def ClearField(self, field_name: typing.Literal['name', b'name']) -> None:
|
|
220
|
+
...
|
|
221
|
+
global___GetPropertiesRequest = GetPropertiesRequest
|
|
222
|
+
|
|
223
|
+
@typing.final
|
|
224
|
+
class GetPropertiesResponse(google.protobuf.message.Message):
|
|
225
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
226
|
+
SUPPORTS_PCD_FIELD_NUMBER: builtins.int
|
|
227
|
+
INTRINSIC_PARAMETERS_FIELD_NUMBER: builtins.int
|
|
228
|
+
DISTORTION_PARAMETERS_FIELD_NUMBER: builtins.int
|
|
229
|
+
MIME_TYPES_FIELD_NUMBER: builtins.int
|
|
230
|
+
FRAME_RATE_FIELD_NUMBER: builtins.int
|
|
231
|
+
supports_pcd: builtins.bool
|
|
232
|
+
'A boolean property determining whether the camera supports the return of pointcloud data'
|
|
233
|
+
frame_rate: builtins.float
|
|
234
|
+
'Optional camera frame rate for image capture timing'
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
def intrinsic_parameters(self) -> global___IntrinsicParameters:
|
|
238
|
+
"""Parameters for doing a perspective of a 3D scene to a 2D plane
|
|
239
|
+
If camera does not provide intrinsic parameters, leave the field empty
|
|
240
|
+
Initializing the parameters with 0-values is considered an error
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
def distortion_parameters(self) -> global___DistortionParameters:
|
|
245
|
+
"""Parameters for modeling lens distortion in cameras
|
|
246
|
+
If camera does not provide distortion parameters, leave the field empty
|
|
247
|
+
Initializing the parameters with 0-values is considered an error
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
def mime_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
252
|
+
"""Supported MIME types by the camera"""
|
|
253
|
+
|
|
254
|
+
def __init__(self, *, supports_pcd: builtins.bool=..., intrinsic_parameters: global___IntrinsicParameters | None=..., distortion_parameters: global___DistortionParameters | None=..., mime_types: collections.abc.Iterable[builtins.str] | None=..., frame_rate: builtins.float | None=...) -> None:
|
|
255
|
+
...
|
|
256
|
+
|
|
257
|
+
def HasField(self, field_name: typing.Literal['_frame_rate', b'_frame_rate', 'distortion_parameters', b'distortion_parameters', 'frame_rate', b'frame_rate', 'intrinsic_parameters', b'intrinsic_parameters']) -> builtins.bool:
|
|
258
|
+
...
|
|
259
|
+
|
|
260
|
+
def ClearField(self, field_name: typing.Literal['_frame_rate', b'_frame_rate', 'distortion_parameters', b'distortion_parameters', 'frame_rate', b'frame_rate', 'intrinsic_parameters', b'intrinsic_parameters', 'mime_types', b'mime_types', 'supports_pcd', b'supports_pcd']) -> None:
|
|
261
|
+
...
|
|
262
|
+
|
|
263
|
+
def WhichOneof(self, oneof_group: typing.Literal['_frame_rate', b'_frame_rate']) -> typing.Literal['frame_rate'] | None:
|
|
264
|
+
...
|
|
265
|
+
global___GetPropertiesResponse = GetPropertiesResponse
|
|
266
|
+
|
|
267
|
+
@typing.final
|
|
268
|
+
class Webcams(google.protobuf.message.Message):
|
|
269
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
270
|
+
WEBCAMS_FIELD_NUMBER: builtins.int
|
|
271
|
+
|
|
272
|
+
@property
|
|
273
|
+
def webcams(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Webcam]:
|
|
274
|
+
...
|
|
275
|
+
|
|
276
|
+
def __init__(self, *, webcams: collections.abc.Iterable[global___Webcam] | None=...) -> None:
|
|
277
|
+
...
|
|
278
|
+
|
|
279
|
+
def ClearField(self, field_name: typing.Literal['webcams', b'webcams']) -> None:
|
|
280
|
+
...
|
|
281
|
+
global___Webcams = Webcams
|
|
282
|
+
|
|
283
|
+
@typing.final
|
|
284
|
+
class Webcam(google.protobuf.message.Message):
|
|
285
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
286
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
287
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
288
|
+
PROPERTIES_FIELD_NUMBER: builtins.int
|
|
289
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
290
|
+
ID_FIELD_NUMBER: builtins.int
|
|
291
|
+
label: builtins.str
|
|
292
|
+
'Camera driver label (for internal use only)'
|
|
293
|
+
status: builtins.str
|
|
294
|
+
'Camera driver status'
|
|
295
|
+
name: builtins.str
|
|
296
|
+
'Camera human-readable driver name'
|
|
297
|
+
id: builtins.str
|
|
298
|
+
'Camera unique identifier'
|
|
299
|
+
|
|
300
|
+
@property
|
|
301
|
+
def properties(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Property]:
|
|
302
|
+
"""Camera properties"""
|
|
303
|
+
|
|
304
|
+
def __init__(self, *, label: builtins.str=..., status: builtins.str=..., properties: collections.abc.Iterable[global___Property] | None=..., name: builtins.str=..., id: builtins.str=...) -> None:
|
|
305
|
+
...
|
|
306
|
+
|
|
307
|
+
def ClearField(self, field_name: typing.Literal['id', b'id', 'label', b'label', 'name', b'name', 'properties', b'properties', 'status', b'status']) -> None:
|
|
308
|
+
...
|
|
309
|
+
global___Webcam = Webcam
|
|
310
|
+
|
|
311
|
+
@typing.final
|
|
312
|
+
class Property(google.protobuf.message.Message):
|
|
313
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
314
|
+
WIDTH_PX_FIELD_NUMBER: builtins.int
|
|
315
|
+
HEIGHT_PX_FIELD_NUMBER: builtins.int
|
|
316
|
+
FRAME_FORMAT_FIELD_NUMBER: builtins.int
|
|
317
|
+
FRAME_RATE_FIELD_NUMBER: builtins.int
|
|
318
|
+
width_px: builtins.int
|
|
319
|
+
'Video resolution width in px'
|
|
320
|
+
height_px: builtins.int
|
|
321
|
+
'Video resolution height in px'
|
|
322
|
+
frame_format: builtins.str
|
|
323
|
+
'Video frame format'
|
|
324
|
+
frame_rate: builtins.float
|
|
325
|
+
'Video frame rate in fps'
|
|
326
|
+
|
|
327
|
+
def __init__(self, *, width_px: builtins.int=..., height_px: builtins.int=..., frame_format: builtins.str=..., frame_rate: builtins.float=...) -> None:
|
|
328
|
+
...
|
|
329
|
+
|
|
330
|
+
def ClearField(self, field_name: typing.Literal['frame_format', b'frame_format', 'frame_rate', b'frame_rate', 'height_px', b'height_px', 'width_px', b'width_px']) -> None:
|
|
331
|
+
...
|
|
332
|
+
global___Property = Property
|
|
333
|
+
|
|
334
|
+
@typing.final
|
|
335
|
+
class IntrinsicParameters(google.protobuf.message.Message):
|
|
336
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
337
|
+
WIDTH_PX_FIELD_NUMBER: builtins.int
|
|
338
|
+
HEIGHT_PX_FIELD_NUMBER: builtins.int
|
|
339
|
+
FOCAL_X_PX_FIELD_NUMBER: builtins.int
|
|
340
|
+
FOCAL_Y_PX_FIELD_NUMBER: builtins.int
|
|
341
|
+
CENTER_X_PX_FIELD_NUMBER: builtins.int
|
|
342
|
+
CENTER_Y_PX_FIELD_NUMBER: builtins.int
|
|
343
|
+
width_px: builtins.int
|
|
344
|
+
height_px: builtins.int
|
|
345
|
+
focal_x_px: builtins.float
|
|
346
|
+
focal_y_px: builtins.float
|
|
347
|
+
center_x_px: builtins.float
|
|
348
|
+
center_y_px: builtins.float
|
|
349
|
+
|
|
350
|
+
def __init__(self, *, width_px: builtins.int=..., height_px: builtins.int=..., focal_x_px: builtins.float=..., focal_y_px: builtins.float=..., center_x_px: builtins.float=..., center_y_px: builtins.float=...) -> None:
|
|
351
|
+
...
|
|
352
|
+
|
|
353
|
+
def ClearField(self, field_name: typing.Literal['center_x_px', b'center_x_px', 'center_y_px', b'center_y_px', 'focal_x_px', b'focal_x_px', 'focal_y_px', b'focal_y_px', 'height_px', b'height_px', 'width_px', b'width_px']) -> None:
|
|
354
|
+
...
|
|
355
|
+
global___IntrinsicParameters = IntrinsicParameters
|
|
356
|
+
|
|
357
|
+
@typing.final
|
|
358
|
+
class DistortionParameters(google.protobuf.message.Message):
|
|
359
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
360
|
+
MODEL_FIELD_NUMBER: builtins.int
|
|
361
|
+
PARAMETERS_FIELD_NUMBER: builtins.int
|
|
362
|
+
model: builtins.str
|
|
363
|
+
|
|
364
|
+
@property
|
|
365
|
+
def parameters(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
|
|
366
|
+
...
|
|
367
|
+
|
|
368
|
+
def __init__(self, *, model: builtins.str=..., parameters: collections.abc.Iterable[builtins.float] | None=...) -> None:
|
|
369
|
+
...
|
|
370
|
+
|
|
371
|
+
def ClearField(self, field_name: typing.Literal['model', b'model', 'parameters', b'parameters']) -> None:
|
|
372
|
+
...
|
|
373
|
+
global___DistortionParameters = DistortionParameters
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import typing
|
|
3
|
+
import grpclib.const
|
|
4
|
+
import grpclib.client
|
|
5
|
+
import grpclib.exceptions
|
|
6
|
+
if typing.TYPE_CHECKING:
|
|
7
|
+
import grpclib.server
|
|
8
|
+
from .... import common
|
|
9
|
+
import google.api.annotations_pb2
|
|
10
|
+
import google.protobuf.struct_pb2
|
|
11
|
+
from .... import component
|
|
12
|
+
|
|
13
|
+
class EncoderServiceBase(abc.ABC):
|
|
14
|
+
|
|
15
|
+
@abc.abstractmethod
|
|
16
|
+
async def GetPosition(self, stream: 'grpclib.server.Stream[component.encoder.v1.encoder_pb2.GetPositionRequest, component.encoder.v1.encoder_pb2.GetPositionResponse]') -> None:
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
@abc.abstractmethod
|
|
20
|
+
async def ResetPosition(self, stream: 'grpclib.server.Stream[component.encoder.v1.encoder_pb2.ResetPositionRequest, component.encoder.v1.encoder_pb2.ResetPositionResponse]') -> None:
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
@abc.abstractmethod
|
|
24
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[component.encoder.v1.encoder_pb2.GetPropertiesRequest, component.encoder.v1.encoder_pb2.GetPropertiesResponse]') -> None:
|
|
25
|
+
pass
|
|
26
|
+
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
@abc.abstractmethod
|
|
32
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
|
|
36
|
+
return {'/viam.component.encoder.v1.EncoderService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.encoder.v1.encoder_pb2.GetPositionRequest, component.encoder.v1.encoder_pb2.GetPositionResponse), '/viam.component.encoder.v1.EncoderService/ResetPosition': grpclib.const.Handler(self.ResetPosition, grpclib.const.Cardinality.UNARY_UNARY, component.encoder.v1.encoder_pb2.ResetPositionRequest, component.encoder.v1.encoder_pb2.ResetPositionResponse), '/viam.component.encoder.v1.EncoderService/GetProperties': grpclib.const.Handler(self.GetProperties, grpclib.const.Cardinality.UNARY_UNARY, component.encoder.v1.encoder_pb2.GetPropertiesRequest, component.encoder.v1.encoder_pb2.GetPropertiesResponse), '/viam.component.encoder.v1.EncoderService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse), '/viam.component.encoder.v1.EncoderService/GetGeometries': grpclib.const.Handler(self.GetGeometries, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)}
|
|
37
|
+
|
|
38
|
+
class UnimplementedEncoderServiceBase(EncoderServiceBase):
|
|
39
|
+
|
|
40
|
+
async def GetPosition(self, stream: 'grpclib.server.Stream[component.encoder.v1.encoder_pb2.GetPositionRequest, component.encoder.v1.encoder_pb2.GetPositionResponse]') -> None:
|
|
41
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
42
|
+
|
|
43
|
+
async def ResetPosition(self, stream: 'grpclib.server.Stream[component.encoder.v1.encoder_pb2.ResetPositionRequest, component.encoder.v1.encoder_pb2.ResetPositionResponse]') -> None:
|
|
44
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
45
|
+
|
|
46
|
+
async def GetProperties(self, stream: 'grpclib.server.Stream[component.encoder.v1.encoder_pb2.GetPropertiesRequest, component.encoder.v1.encoder_pb2.GetPropertiesResponse]') -> None:
|
|
47
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
48
|
+
|
|
49
|
+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
|
|
50
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
51
|
+
|
|
52
|
+
async def GetGeometries(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse]') -> None:
|
|
53
|
+
raise grpclib.exceptions.GRPCError(grpclib.const.Status.UNIMPLEMENTED)
|
|
54
|
+
|
|
55
|
+
class EncoderServiceStub:
|
|
56
|
+
|
|
57
|
+
def __init__(self, channel: grpclib.client.Channel) -> None:
|
|
58
|
+
self.GetPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.encoder.v1.EncoderService/GetPosition', component.encoder.v1.encoder_pb2.GetPositionRequest, component.encoder.v1.encoder_pb2.GetPositionResponse)
|
|
59
|
+
self.ResetPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.encoder.v1.EncoderService/ResetPosition', component.encoder.v1.encoder_pb2.ResetPositionRequest, component.encoder.v1.encoder_pb2.ResetPositionResponse)
|
|
60
|
+
self.GetProperties = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.encoder.v1.EncoderService/GetProperties', component.encoder.v1.encoder_pb2.GetPropertiesRequest, component.encoder.v1.encoder_pb2.GetPropertiesResponse)
|
|
61
|
+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.encoder.v1.EncoderService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
|
|
62
|
+
self.GetGeometries = grpclib.client.UnaryUnaryMethod(channel, '/viam.component.encoder.v1.EncoderService/GetGeometries', common.v1.common_pb2.GetGeometriesRequest, common.v1.common_pb2.GetGeometriesResponse)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""Generated protocol buffer code."""
|
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
|
3
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
4
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
5
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
6
|
+
from google.protobuf.internal import builder as _builder
|
|
7
|
+
_runtime_version.ValidateProtobufRuntimeVersion(_runtime_version.Domain.PUBLIC, 5, 29, 2, '', 'component/encoder/v1/encoder.proto')
|
|
8
|
+
_sym_db = _symbol_database.Default()
|
|
9
|
+
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
|
|
10
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
11
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
12
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n"component/encoder/v1/encoder.proto\x12\x19viam.component.encoder.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"\xbc\x01\n\x12GetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12Q\n\rposition_type\x18\x02 \x01(\x0e2\'.viam.component.encoder.v1.PositionTypeH\x00R\x0cpositionType\x88\x01\x01\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extraB\x10\n\x0e_position_type"y\n\x13GetPositionResponse\x12\x14\n\x05value\x18\x01 \x01(\x02R\x05value\x12L\n\rposition_type\x18\x02 \x01(\x0e2\'.viam.component.encoder.v1.PositionTypeR\x0cpositionType"Y\n\x14ResetPositionRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x17\n\x15ResetPositionResponse"Y\n\x14GetPropertiesRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x83\x01\n\x15GetPropertiesResponse\x122\n\x15ticks_count_supported\x18\x01 \x01(\x08R\x13ticksCountSupported\x126\n\x17angle_degrees_supported\x18\x02 \x01(\x08R\x15angleDegreesSupported*m\n\x0cPositionType\x12\x1d\n\x19POSITION_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19POSITION_TYPE_TICKS_COUNT\x10\x01\x12\x1f\n\x1bPOSITION_TYPE_ANGLE_DEGREES\x10\x022\xc7\x06\n\x0eEncoderService\x12\xa8\x01\n\x0bGetPosition\x12-.viam.component.encoder.v1.GetPositionRequest\x1a..viam.component.encoder.v1.GetPositionResponse":\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/encoder/{name}/get_position\x12\xb0\x01\n\rResetPosition\x12/.viam.component.encoder.v1.ResetPositionRequest\x1a0.viam.component.encoder.v1.ResetPositionResponse"<\x82\xd3\xe4\x93\x026\x124/viam/api/v1/component/encoder/{name}/reset_position\x12\xb0\x01\n\rGetProperties\x12/.viam.component.encoder.v1.GetPropertiesRequest\x1a0.viam.component.encoder.v1.GetPropertiesResponse"<\x82\xd3\xe4\x93\x026"4/viam/api/v1/component/encoder/{name}/get_properties\x12\x8a\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"8\x82\xd3\xe4\x93\x022"0/viam/api/v1/component/encoder/{name}/do_command\x12\x96\x01\n\rGetGeometries\x12$.viam.common.v1.GetGeometriesRequest\x1a%.viam.common.v1.GetGeometriesResponse"8\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/encoder/{name}/geometriesBE\n\x1dcom.viam.component.encoder.v1Z$go.viam.com/api/component/encoder/v1b\x06proto3')
|
|
13
|
+
_globals = globals()
|
|
14
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
15
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'component.encoder.v1.encoder_pb2', _globals)
|
|
16
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
17
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
18
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\x1dcom.viam.component.encoder.v1Z$go.viam.com/api/component/encoder/v1'
|
|
19
|
+
_globals['_ENCODERSERVICE'].methods_by_name['GetPosition']._loaded_options = None
|
|
20
|
+
_globals['_ENCODERSERVICE'].methods_by_name['GetPosition']._serialized_options = b'\x82\xd3\xe4\x93\x024\x122/viam/api/v1/component/encoder/{name}/get_position'
|
|
21
|
+
_globals['_ENCODERSERVICE'].methods_by_name['ResetPosition']._loaded_options = None
|
|
22
|
+
_globals['_ENCODERSERVICE'].methods_by_name['ResetPosition']._serialized_options = b'\x82\xd3\xe4\x93\x026\x124/viam/api/v1/component/encoder/{name}/reset_position'
|
|
23
|
+
_globals['_ENCODERSERVICE'].methods_by_name['GetProperties']._loaded_options = None
|
|
24
|
+
_globals['_ENCODERSERVICE'].methods_by_name['GetProperties']._serialized_options = b'\x82\xd3\xe4\x93\x026"4/viam/api/v1/component/encoder/{name}/get_properties'
|
|
25
|
+
_globals['_ENCODERSERVICE'].methods_by_name['DoCommand']._loaded_options = None
|
|
26
|
+
_globals['_ENCODERSERVICE'].methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x022"0/viam/api/v1/component/encoder/{name}/do_command'
|
|
27
|
+
_globals['_ENCODERSERVICE'].methods_by_name['GetGeometries']._loaded_options = None
|
|
28
|
+
_globals['_ENCODERSERVICE'].methods_by_name['GetGeometries']._serialized_options = b'\x82\xd3\xe4\x93\x022\x120/viam/api/v1/component/encoder/{name}/geometries'
|
|
29
|
+
_globals['_POSITIONTYPE']._serialized_start = 804
|
|
30
|
+
_globals['_POSITIONTYPE']._serialized_end = 913
|
|
31
|
+
_globals['_GETPOSITIONREQUEST']._serialized_start = 150
|
|
32
|
+
_globals['_GETPOSITIONREQUEST']._serialized_end = 338
|
|
33
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_start = 340
|
|
34
|
+
_globals['_GETPOSITIONRESPONSE']._serialized_end = 461
|
|
35
|
+
_globals['_RESETPOSITIONREQUEST']._serialized_start = 463
|
|
36
|
+
_globals['_RESETPOSITIONREQUEST']._serialized_end = 552
|
|
37
|
+
_globals['_RESETPOSITIONRESPONSE']._serialized_start = 554
|
|
38
|
+
_globals['_RESETPOSITIONRESPONSE']._serialized_end = 577
|
|
39
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_start = 579
|
|
40
|
+
_globals['_GETPROPERTIESREQUEST']._serialized_end = 668
|
|
41
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_start = 671
|
|
42
|
+
_globals['_GETPROPERTIESRESPONSE']._serialized_end = 802
|
|
43
|
+
_globals['_ENCODERSERVICE']._serialized_start = 916
|
|
44
|
+
_globals['_ENCODERSERVICE']._serialized_end = 1755
|