@viamrobotics/sdk 0.25.0 → 0.26.0
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.
- package/dist/app/app-client.d.ts +93 -90
- package/dist/app/billing-client.d.ts +7 -8
- package/dist/app/billing-client.spec.d.ts +1 -0
- package/dist/app/data-client.d.ts +42 -50
- package/dist/app/data-client.spec.d.ts +1 -0
- package/dist/app/ml-training-client.d.ts +9 -14
- package/dist/app/ml-training-client.spec.d.ts +1 -0
- package/dist/app/provisioning-client.d.ts +7 -7
- package/dist/app/provisioning-client.spec.d.ts +1 -0
- package/dist/app/viam-client.d.ts +13 -15
- package/dist/app/viam-transport.d.ts +4 -12
- package/dist/components/arm/arm.d.ts +10 -8
- package/dist/components/arm/client.d.ts +6 -6
- package/dist/components/arm.d.ts +1 -1
- package/dist/components/base/base.d.ts +11 -10
- package/dist/components/base/client.d.ts +4 -5
- package/dist/components/base.d.ts +1 -1
- package/dist/components/board/board.d.ts +17 -21
- package/dist/components/board/client.d.ts +7 -8
- package/dist/components/board/client.spec.d.ts +1 -0
- package/dist/components/board.d.ts +1 -1
- package/dist/components/camera/camera.d.ts +2 -2
- package/dist/components/camera/client.d.ts +4 -5
- package/dist/components/encoder/client.d.ts +6 -7
- package/dist/components/encoder/encoder.d.ts +9 -10
- package/dist/components/encoder.d.ts +1 -2
- package/dist/components/gantry/client.d.ts +3 -3
- package/dist/components/gantry/gantry.d.ts +7 -6
- package/dist/components/generic/client.d.ts +3 -3
- package/dist/components/gripper/client.d.ts +3 -3
- package/dist/components/gripper/gripper.d.ts +5 -4
- package/dist/components/input-controller/client.d.ts +5 -6
- package/dist/components/input-controller/input-controller.d.ts +7 -5
- package/dist/components/inputcontroller.d.ts +1 -1
- package/dist/components/motor/client.d.ts +3 -3
- package/dist/components/motor/motor.d.ts +11 -10
- package/dist/components/movement-sensor/client.d.ts +11 -12
- package/dist/components/movement-sensor/client.spec.d.ts +1 -0
- package/dist/components/movement-sensor/movement-sensor.d.ts +16 -14
- package/dist/components/movementsensor.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +4 -4
- package/dist/components/power-sensor/client.spec.d.ts +1 -0
- package/dist/components/power-sensor/power-sensor.d.ts +5 -5
- package/dist/components/sensor/client.d.ts +4 -4
- package/dist/components/sensor/sensor.d.ts +3 -2
- package/dist/components/servo/client.d.ts +5 -5
- package/dist/components/servo/servo.d.ts +5 -4
- package/dist/extra/stream/client.d.ts +0 -1
- package/dist/extra/stream/client.spec.d.ts +1 -0
- package/dist/gen/app/agent/v1/agent_connect.d.ts +28 -0
- package/dist/gen/app/agent/v1/agent_pb.d.ts +244 -153
- package/dist/gen/app/build/v1/build_connect.d.ts +129 -0
- package/dist/gen/app/build/v1/build_pb.d.ts +654 -493
- package/dist/gen/app/cloudslam/v1/cloud_slam_connect.d.ts +71 -0
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb.d.ts +548 -420
- package/dist/gen/app/data/v1/data_connect.d.ts +252 -0
- package/dist/gen/app/data/v1/data_pb.d.ts +1672 -1331
- package/dist/gen/app/dataset/v1/dataset_connect.d.ts +74 -0
- package/dist/gen/app/dataset/v1/dataset_pb.d.ts +272 -213
- package/dist/gen/app/datasync/v1/data_sync_connect.d.ts +52 -0
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +457 -376
- package/dist/gen/app/mltraining/v1/ml_training_connect.d.ts +94 -0
- package/dist/gen/app/mltraining/v1/ml_training_pb.d.ts +566 -429
- package/dist/gen/app/packages/v1/packages_connect.d.ts +64 -0
- package/dist/gen/app/packages/v1/packages_pb.d.ts +396 -336
- package/dist/gen/app/v1/app_connect.d.ts +788 -0
- package/dist/gen/app/v1/app_pb.d.ts +5558 -4578
- package/dist/gen/app/v1/billing_connect.d.ts +72 -0
- package/dist/gen/app/v1/billing_pb.d.ts +479 -396
- package/dist/gen/app/v1/end_user_connect.d.ts +73 -0
- package/dist/gen/app/v1/end_user_pb.d.ts +292 -244
- package/dist/gen/app/v1/robot_connect.d.ts +63 -0
- package/dist/gen/app/v1/robot_pb.d.ts +1601 -1289
- package/dist/gen/common/v1/common_pb.d.ts +886 -662
- package/dist/gen/component/arm/v1/arm_connect.d.ts +121 -0
- package/dist/gen/component/arm/v1/arm_pb.d.ts +371 -294
- package/dist/gen/component/audioinput/v1/audioinput_connect.d.ts +78 -0
- package/dist/gen/component/audioinput/v1/audioinput_pb.d.ts +246 -189
- package/dist/gen/component/base/v1/base_connect.d.ts +122 -0
- package/dist/gen/component/base/v1/base_pb.d.ts +393 -307
- package/dist/gen/component/board/v1/board_connect.d.ts +161 -0
- package/dist/gen/component/board/v1/board_pb.d.ts +684 -535
- package/dist/gen/component/camera/v1/camera_connect.d.ts +99 -0
- package/dist/gen/component/camera/v1/camera_pb.d.ts +549 -399
- package/dist/gen/component/encoder/v1/encoder_connect.d.ts +71 -0
- package/dist/gen/component/encoder/v1/encoder_pb.d.ts +201 -144
- package/dist/gen/component/gantry/v1/gantry_connect.d.ts +108 -0
- package/dist/gen/component/gantry/v1/gantry_pb.d.ts +334 -279
- package/dist/gen/component/generic/v1/generic_connect.d.ts +41 -0
- package/dist/gen/component/gripper/v1/gripper_connect.d.ts +86 -0
- package/dist/gen/component/gripper/v1/gripper_pb.d.ts +188 -160
- package/dist/gen/component/inputcontroller/v1/input_controller_connect.d.ts +87 -0
- package/dist/gen/component/inputcontroller/v1/input_controller_pb.d.ts +334 -264
- package/dist/gen/component/motor/v1/motor_connect.d.ts +162 -0
- package/dist/gen/component/motor/v1/motor_pb.d.ts +577 -432
- package/dist/gen/component/movementsensor/v1/movementsensor_connect.d.ts +121 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +476 -379
- package/dist/gen/component/posetracker/v1/pose_tracker_connect.d.ts +53 -0
- package/dist/gen/component/posetracker/v1/pose_tracker_pb.d.ts +71 -53
- package/dist/gen/component/powersensor/v1/powersensor_connect.d.ts +75 -0
- package/dist/gen/component/powersensor/v1/powersensor_pb.d.ts +181 -136
- package/dist/gen/component/sensor/v1/sensor_connect.d.ts +52 -0
- package/dist/gen/component/servo/v1/servo_connect.d.ts +87 -0
- package/dist/gen/component/servo/v1/servo_pb.d.ts +228 -179
- package/dist/gen/component/testecho/v1/testecho_connect.d.ts +53 -0
- package/dist/gen/component/testecho/v1/testecho_pb.d.ts +186 -150
- package/dist/gen/google/api/annotations_pb.d.ts +26 -6
- package/dist/gen/google/api/client_pb.d.ts +895 -453
- package/dist/gen/google/api/expr/v1alpha1/checked_pb.d.ts +758 -438
- package/dist/gen/google/api/expr/v1alpha1/eval_pb.d.ts +236 -132
- package/dist/gen/google/api/expr/v1alpha1/explain_pb.d.ts +98 -54
- package/dist/gen/google/api/expr/v1alpha1/syntax_pb.d.ts +943 -554
- package/dist/gen/google/api/expr/v1alpha1/value_pb.d.ts +274 -197
- package/dist/gen/google/api/expr/v1beta1/decl_pb.d.ts +200 -131
- package/dist/gen/google/api/expr/v1beta1/eval_pb.d.ts +262 -151
- package/dist/gen/google/api/expr/v1beta1/expr_pb.d.ts +614 -402
- package/dist/gen/google/api/expr/v1beta1/source_pb.d.ts +115 -56
- package/dist/gen/google/api/expr/v1beta1/value_pb.d.ts +275 -197
- package/dist/gen/google/api/field_behavior_pb.d.ts +139 -19
- package/dist/gen/google/api/field_info_pb.d.ts +169 -56
- package/dist/gen/google/api/http_pb.d.ts +480 -127
- package/dist/gen/google/api/httpbody_pb.d.ts +104 -35
- package/dist/gen/google/api/launch_stage_pb.d.ts +102 -16
- package/dist/gen/google/api/resource_pb.d.ts +334 -88
- package/dist/gen/google/api/visibility_pb.d.ts +157 -52
- package/dist/gen/google/bytestream/bytestream_connect.d.ts +124 -0
- package/dist/gen/google/bytestream/bytestream_pb.d.ts +241 -130
- package/dist/gen/google/geo/type/viewport_pb.d.ts +90 -31
- package/dist/gen/google/longrunning/operations_connect.d.ts +127 -0
- package/dist/gen/google/longrunning/operations_pb.d.ts +351 -202
- package/dist/gen/google/rpc/code_pb.d.ts +252 -25
- package/dist/gen/google/rpc/context/attribute_context_pb.d.ts +664 -352
- package/dist/gen/google/rpc/error_details_pb.d.ts +604 -311
- package/dist/gen/google/rpc/status_pb.d.ts +72 -33
- package/dist/gen/google/type/calendar_period_pb.d.ts +86 -16
- package/dist/gen/google/type/color_pb.d.ts +201 -37
- package/dist/gen/google/type/date_pb.d.ts +72 -25
- package/dist/gen/google/type/datetime_pb.d.ts +176 -83
- package/dist/gen/google/type/dayofweek_pb.d.ts +80 -16
- package/dist/gen/google/type/decimal_pb.d.ts +112 -22
- package/dist/gen/google/type/expr_pb.d.ts +97 -28
- package/dist/gen/google/type/fraction_pb.d.ts +55 -26
- package/dist/gen/google/type/interval_pb.d.ts +65 -31
- package/dist/gen/google/type/latlng_pb.d.ts +58 -26
- package/dist/gen/google/type/localized_text_pb.d.ts +57 -26
- package/dist/gen/google/type/money_pb.d.ts +62 -25
- package/dist/gen/google/type/month_pb.d.ts +115 -21
- package/dist/gen/google/type/phone_number_pb.d.ts +169 -64
- package/dist/gen/google/type/postal_address_pb.d.ts +178 -53
- package/dist/gen/google/type/quaternion_pb.d.ts +117 -28
- package/dist/gen/google/type/timeofday_pb.d.ts +67 -28
- package/dist/gen/proto/rpc/examples/echo/v1/echo_connect.d.ts +44 -0
- package/dist/gen/proto/rpc/examples/echo/v1/echo_pb.d.ts +134 -108
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_connect.d.ts +44 -0
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb.d.ts +149 -119
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_connect.d.ts +26 -0
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb.d.ts +67 -60
- package/dist/gen/proto/rpc/v1/auth_connect.d.ts +69 -0
- package/dist/gen/proto/rpc/v1/auth_pb.d.ts +145 -101
- package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +349 -291
- package/dist/gen/proto/rpc/webrtc/v1/signaling_connect.d.ts +78 -0
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +647 -529
- package/dist/gen/provisioning/v1/provisioning_connect.d.ts +63 -0
- package/dist/gen/provisioning/v1/provisioning_pb.d.ts +285 -231
- package/dist/gen/robot/v1/robot_connect.d.ts +239 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +1327 -1087
- package/dist/gen/service/datamanager/v1/data_manager_connect.d.ts +42 -0
- package/dist/gen/service/datamanager/v1/data_manager_pb.d.ts +52 -44
- package/dist/gen/service/generic/v1/generic_connect.d.ts +30 -0
- package/dist/gen/service/mlmodel/v1/mlmodel_connect.d.ts +42 -0
- package/dist/gen/service/mlmodel/v1/mlmodel_pb.d.ts +620 -510
- package/dist/gen/service/motion/v1/motion_connect.d.ts +118 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +1063 -795
- package/dist/gen/service/navigation/v1/navigation_connect.d.ts +115 -0
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +567 -435
- package/dist/gen/service/sensors/v1/sensors_connect.d.ts +58 -0
- package/dist/gen/service/sensors/v1/sensors_pb.d.ts +154 -120
- package/dist/gen/service/shell/v1/shell_connect.d.ts +78 -0
- package/dist/gen/service/shell/v1/shell_pb.d.ts +423 -309
- package/dist/gen/service/slam/v1/slam_connect.d.ts +81 -0
- package/dist/gen/service/slam/v1/slam_pb.d.ts +305 -204
- package/dist/gen/service/vision/v1/vision_connect.d.ts +108 -0
- package/dist/gen/service/vision/v1/vision_pb.d.ts +615 -471
- package/dist/gen/stream/v1/stream_connect.d.ts +56 -0
- package/dist/gen/stream/v1/stream_pb.d.ts +131 -97
- package/dist/gen/tagger/v1/tagger_pb.d.ts +17 -6
- package/dist/main.d.ts +81 -92
- package/dist/main.es.js +21092 -69184
- package/dist/main.umd.js +6 -13
- package/dist/robot/client.d.ts +990 -59
- package/dist/robot/dial.d.ts +2 -4
- package/dist/robot/grpc-connection-manager.d.ts +5 -7
- package/dist/robot/grpc-connection-manager.spec.d.ts +1 -0
- package/dist/robot/robot.d.ts +9 -10
- package/dist/robot/session-manager.d.ts +6 -8
- package/dist/robot/session-manager.spec.d.ts +1 -0
- package/dist/robot/session-transport.d.ts +8 -11
- package/dist/robot.d.ts +2 -2
- package/dist/rpc/base-channel.d.ts +2 -2
- package/dist/rpc/base-stream.d.ts +3 -6
- package/dist/rpc/client-channel.d.ts +5 -3
- package/dist/rpc/client-stream.d.ts +26 -12
- package/dist/rpc/dial.d.ts +49 -9
- package/dist/rpc/index.d.ts +3 -5
- package/dist/rpc/signaling-exchange.d.ts +33 -0
- package/dist/rpc/stream-client-stream.d.ts +16 -0
- package/dist/rpc/unary-client-stream.d.ts +13 -0
- package/dist/services/data-manager/client.d.ts +3 -3
- package/dist/services/data-manager/data-manager.d.ts +3 -2
- package/dist/services/generic/client.d.ts +3 -3
- package/dist/services/motion/client.d.ts +7 -8
- package/dist/services/motion/client.spec.d.ts +1 -0
- package/dist/services/motion/motion.d.ts +10 -9
- package/dist/services/motion/types.d.ts +12 -16
- package/dist/services/motion.d.ts +2 -2
- package/dist/services/navigation/client.d.ts +11 -12
- package/dist/services/navigation/client.spec.d.ts +1 -0
- package/dist/services/navigation/navigation.d.ts +11 -10
- package/dist/services/navigation/types.d.ts +8 -6
- package/dist/services/navigation.d.ts +2 -2
- package/dist/services/slam/client.d.ts +5 -6
- package/dist/services/slam/client.spec.d.ts +1 -0
- package/dist/services/slam/types.d.ts +4 -3
- package/dist/services/slam.d.ts +2 -2
- package/dist/services/vision/client.d.ts +13 -19
- package/dist/services/vision/types.d.ts +10 -7
- package/dist/services/vision/vision.d.ts +10 -9
- package/dist/services/vision.d.ts +2 -2
- package/dist/types.d.ts +21 -18
- package/dist/utils.d.ts +7 -37
- package/package.json +6 -9
- package/dist/gen/app/agent/v1/agent_pb_service.d.ts +0 -63
- package/dist/gen/app/build/v1/build_pb_service.d.ts +0 -226
- package/dist/gen/app/cloudslam/v1/cloud_slam_pb_service.d.ts +0 -158
- package/dist/gen/app/data/v1/data_pb_service.d.ts +0 -443
- package/dist/gen/app/dataset/v1/dataset_pb_service.d.ts +0 -139
- package/dist/gen/app/datasync/v1/data_sync_pb_service.d.ts +0 -85
- package/dist/gen/app/mltraining/v1/ml_training_pb_service.d.ts +0 -177
- package/dist/gen/app/packages/v1/packages_pb_service.d.ts +0 -112
- package/dist/gen/app/v1/app_pb_service.d.ts +0 -1415
- package/dist/gen/app/v1/billing_pb_service.d.ts +0 -131
- package/dist/gen/app/v1/end_user_pb_service.d.ts +0 -139
- package/dist/gen/app/v1/robot_pb_service.d.ts +0 -120
- package/dist/gen/common/v1/common_pb_service.d.ts +0 -3
- package/dist/gen/component/arm/v1/arm_pb_service.d.ts +0 -216
- package/dist/gen/component/audioinput/v1/audioinput_pb_service.d.ts +0 -133
- package/dist/gen/component/base/v1/base_pb_service.d.ts +0 -216
- package/dist/gen/component/board/v1/board_pb_service.d.ts +0 -284
- package/dist/gen/component/camera/v1/camera_pb_service.d.ts +0 -179
- package/dist/gen/component/encoder/v1/encoder_pb_service.d.ts +0 -140
- package/dist/gen/component/gantry/v1/gantry_pb_service.d.ts +0 -197
- package/dist/gen/component/generic/v1/generic_pb.d.ts +0 -7
- package/dist/gen/component/generic/v1/generic_pb_service.d.ts +0 -83
- package/dist/gen/component/gripper/v1/gripper_pb_service.d.ts +0 -159
- package/dist/gen/component/inputcontroller/v1/input_controller_pb_service.d.ts +0 -151
- package/dist/gen/component/motor/v1/motor_pb_service.d.ts +0 -273
- package/dist/gen/component/movementsensor/v1/movementsensor_pb_service.d.ts +0 -254
- package/dist/gen/component/posetracker/v1/pose_tracker_pb_service.d.ts +0 -102
- package/dist/gen/component/powersensor/v1/powersensor_pb_service.d.ts +0 -140
- package/dist/gen/component/sensor/v1/sensor_pb.d.ts +0 -7
- package/dist/gen/component/sensor/v1/sensor_pb_service.d.ts +0 -102
- package/dist/gen/component/servo/v1/servo_pb_service.d.ts +0 -159
- package/dist/gen/component/testecho/v1/testecho_pb_service.d.ts +0 -104
- package/dist/gen/google/api/annotations_pb_service.d.ts +0 -3
- package/dist/gen/google/api/client_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/checked_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/eval_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/explain_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/syntax_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1alpha1/value_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/decl_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/eval_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/expr_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/source_pb_service.d.ts +0 -3
- package/dist/gen/google/api/expr/v1beta1/value_pb_service.d.ts +0 -3
- package/dist/gen/google/api/field_behavior_pb_service.d.ts +0 -3
- package/dist/gen/google/api/field_info_pb_service.d.ts +0 -3
- package/dist/gen/google/api/http_pb_service.d.ts +0 -3
- package/dist/gen/google/api/httpbody_pb_service.d.ts +0 -3
- package/dist/gen/google/api/launch_stage_pb_service.d.ts +0 -3
- package/dist/gen/google/api/resource_pb_service.d.ts +0 -3
- package/dist/gen/google/api/visibility_pb_service.d.ts +0 -3
- package/dist/gen/google/bytestream/bytestream_pb_service.d.ts +0 -85
- package/dist/gen/google/geo/type/viewport_pb_service.d.ts +0 -3
- package/dist/gen/google/longrunning/operations_pb_service.d.ts +0 -140
- package/dist/gen/google/rpc/code_pb_service.d.ts +0 -3
- package/dist/gen/google/rpc/context/attribute_context_pb_service.d.ts +0 -3
- package/dist/gen/google/rpc/error_details_pb_service.d.ts +0 -3
- package/dist/gen/google/rpc/status_pb_service.d.ts +0 -3
- package/dist/gen/google/type/calendar_period_pb_service.d.ts +0 -3
- package/dist/gen/google/type/color_pb_service.d.ts +0 -3
- package/dist/gen/google/type/date_pb_service.d.ts +0 -3
- package/dist/gen/google/type/datetime_pb_service.d.ts +0 -3
- package/dist/gen/google/type/dayofweek_pb_service.d.ts +0 -3
- package/dist/gen/google/type/decimal_pb_service.d.ts +0 -3
- package/dist/gen/google/type/expr_pb_service.d.ts +0 -3
- package/dist/gen/google/type/fraction_pb_service.d.ts +0 -3
- package/dist/gen/google/type/interval_pb_service.d.ts +0 -3
- package/dist/gen/google/type/latlng_pb_service.d.ts +0 -3
- package/dist/gen/google/type/localized_text_pb_service.d.ts +0 -3
- package/dist/gen/google/type/money_pb_service.d.ts +0 -3
- package/dist/gen/google/type/month_pb_service.d.ts +0 -3
- package/dist/gen/google/type/phone_number_pb_service.d.ts +0 -3
- package/dist/gen/google/type/postal_address_pb_service.d.ts +0 -3
- package/dist/gen/google/type/quaternion_pb_service.d.ts +0 -3
- package/dist/gen/google/type/timeofday_pb_service.d.ts +0 -3
- package/dist/gen/proto/rpc/examples/echo/v1/echo_pb_service.d.ts +0 -85
- package/dist/gen/proto/rpc/examples/echoresource/v1/echoresource_pb_service.d.ts +0 -85
- package/dist/gen/proto/rpc/examples/fileupload/v1/fileupload_pb_service.d.ts +0 -55
- package/dist/gen/proto/rpc/v1/auth_pb_service.d.ts +0 -92
- package/dist/gen/proto/rpc/webrtc/v1/grpc_pb_service.d.ts +0 -3
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb_service.d.ts +0 -104
- package/dist/gen/provisioning/v1/provisioning_pb_service.d.ts +0 -120
- package/dist/gen/robot/v1/robot_pb_service.d.ts +0 -435
- package/dist/gen/service/datamanager/v1/data_manager_pb_service.d.ts +0 -83
- package/dist/gen/service/generic/v1/generic_pb.d.ts +0 -7
- package/dist/gen/service/generic/v1/generic_pb_service.d.ts +0 -64
- package/dist/gen/service/mlmodel/v1/mlmodel_pb_service.d.ts +0 -82
- package/dist/gen/service/motion/v1/motion_pb_service.d.ts +0 -197
- package/dist/gen/service/navigation/v1/navigation_pb_service.d.ts +0 -235
- package/dist/gen/service/sensors/v1/sensors_pb_service.d.ts +0 -102
- package/dist/gen/service/shell/v1/shell_pb_service.d.ts +0 -97
- package/dist/gen/service/slam/v1/slam_pb_service.d.ts +0 -124
- package/dist/gen/service/vision/v1/vision_pb_service.d.ts +0 -197
- package/dist/gen/stream/v1/stream_pb_service.d.ts +0 -101
- package/dist/gen/tagger/v1/tagger_pb_service.d.ts +0 -3
- package/dist/responses.d.ts +0 -8
- package/dist/rpc/grpc-error.d.ts +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
-
import
|
|
4
|
-
import type
|
|
2
|
+
import type { Options } from '../../types';
|
|
3
|
+
import { Duration, Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
4
|
+
import { type Board, type PowerMode, type Tick } from './board';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Board component.
|
|
7
7
|
*
|
|
@@ -12,17 +12,16 @@ export declare class BoardClient implements Board {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
private get boardService();
|
|
16
15
|
setGPIO(pin: string, high: boolean, extra?: {}): Promise<void>;
|
|
17
16
|
getGPIO(pin: string, extra?: {}): Promise<boolean>;
|
|
18
17
|
getPWM(pin: string, extra?: {}): Promise<number>;
|
|
19
18
|
setPWM(pin: string, dutyCyle: number, extra?: {}): Promise<void>;
|
|
20
19
|
getPWMFrequency(pin: string, extra?: {}): Promise<number>;
|
|
21
20
|
setPWMFrequency(pin: string, frequencyHz: number, extra?: {}): Promise<void>;
|
|
22
|
-
readAnalogReader(analogReader: string, extra?: {}): Promise<
|
|
21
|
+
readAnalogReader(analogReader: string, extra?: {}): Promise<import("../../gen/component/board/v1/board_pb").ReadAnalogReaderResponse>;
|
|
23
22
|
writeAnalog(pin: string, value: number, extra?: {}): Promise<void>;
|
|
24
|
-
getDigitalInterruptValue(
|
|
23
|
+
getDigitalInterruptValue(digitalInterruptName: string, extra?: {}): Promise<number>;
|
|
25
24
|
streamTicks(interrupts: string[], queue: Tick[], extra?: {}): Promise<void>;
|
|
26
|
-
setPowerMode(
|
|
27
|
-
doCommand(command:
|
|
25
|
+
setPowerMode(powerMode: PowerMode, duration?: Duration, extra?: {}): Promise<void>;
|
|
26
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
28
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { AnalogValue, PowerMode, type Board, type Tick } from './board/board';
|
|
2
2
|
export { BoardClient } from './board/client';
|
|
@@ -4,9 +4,9 @@ export interface Properties {
|
|
|
4
4
|
/** Whether the camera supports the return of point cloud data. */
|
|
5
5
|
supportsPcd: boolean;
|
|
6
6
|
/** Camera intrinsic parameters, if available. */
|
|
7
|
-
intrinsicParameters?: IntrinsicParameters
|
|
7
|
+
intrinsicParameters?: IntrinsicParameters;
|
|
8
8
|
/** Camera distortion parameters, if available. */
|
|
9
|
-
distortionParameters?: DistortionParameters
|
|
9
|
+
distortionParameters?: DistortionParameters;
|
|
10
10
|
/** Camera frame rate parameters, if available. */
|
|
11
11
|
frameRate?: number;
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
-
import pb from '../../gen/component/camera/v1/camera_pb';
|
|
3
|
+
import type { Options } from '../../types';
|
|
4
4
|
import type { Camera, MimeType } from './camera';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Camera component.
|
|
@@ -12,10 +12,9 @@ export declare class CameraClient implements Camera {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
private get cameraService();
|
|
16
15
|
getImage(mimeType?: MimeType): Promise<Uint8Array>;
|
|
17
16
|
renderFrame(mimeType?: MimeType): Promise<Blob>;
|
|
18
17
|
getPointCloud(): Promise<Uint8Array>;
|
|
19
|
-
getProperties(): Promise<
|
|
20
|
-
doCommand(command:
|
|
18
|
+
getProperties(): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
|
|
19
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
21
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { type Encoder, EncoderPositionType } from './encoder';
|
|
3
|
+
import type { Options } from '../../types';
|
|
4
|
+
import { EncoderPositionType, type Encoder } from './encoder';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Encoder component.
|
|
7
7
|
*
|
|
@@ -12,9 +12,8 @@ export declare class EncoderClient implements Encoder {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
private get encoderService();
|
|
16
15
|
resetPosition(extra?: {}): Promise<void>;
|
|
17
|
-
getProperties(extra?: {}): Promise<
|
|
18
|
-
getPosition(positionType?: EncoderPositionType, extra?: {}): Promise<readonly [number,
|
|
19
|
-
doCommand(command:
|
|
16
|
+
getProperties(extra?: {}): Promise<import("../../gen/component/encoder/v1/encoder_pb").GetPropertiesResponse>;
|
|
17
|
+
getPosition(positionType?: EncoderPositionType, extra?: {}): Promise<readonly [number, import("../../gen/component/encoder/v1/encoder_pb").PositionType]>;
|
|
18
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
20
19
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
type
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
3
|
+
import * as encoderApi from '../../gen/component/encoder/v1/encoder_pb';
|
|
4
|
+
export type EncoderProperties = encoderApi.GetPropertiesResponse;
|
|
5
|
+
export type EncoderPositionType = encoderApi.PositionType;
|
|
6
|
+
export declare const EncoderProperties: typeof encoderApi.GetPropertiesResponse, EncoderPositionType: typeof encoderApi.PositionType;
|
|
7
7
|
/** Represents a physical encoder. */
|
|
8
8
|
export interface Encoder extends Resource {
|
|
9
9
|
/** Set the current position of the encoder as the new zero position. */
|
|
10
|
-
resetPosition(extra?:
|
|
10
|
+
resetPosition(extra?: Struct): Promise<void>;
|
|
11
11
|
/** Return the encoder's properties. */
|
|
12
|
-
getProperties(extra?:
|
|
12
|
+
getProperties(extra?: Struct): Promise<EncoderProperties>;
|
|
13
13
|
/**
|
|
14
14
|
* Return the current position either in relative units (ticks away from a
|
|
15
15
|
* zero position) or absolute units (degrees along a circle).
|
|
@@ -17,6 +17,5 @@ export interface Encoder extends Resource {
|
|
|
17
17
|
* @param positionType - The type of position the encoder returns (ticks or
|
|
18
18
|
* degrees)
|
|
19
19
|
*/
|
|
20
|
-
getPosition(positionType?: EncoderPositionType, extra?:
|
|
20
|
+
getPosition(positionType?: EncoderPositionType, extra?: Struct): Promise<readonly [number, EncoderPositionType]>;
|
|
21
21
|
}
|
|
22
|
-
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
3
4
|
import type { Gantry } from './gantry';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the Gantry component.
|
|
@@ -11,12 +12,11 @@ export declare class GantryClient implements Gantry {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
private get GantryService();
|
|
15
15
|
getPosition(extra?: {}): Promise<number[]>;
|
|
16
16
|
moveToPosition(positionsMm: number[], speedsMmPerSec: number[], extra?: {}): Promise<void>;
|
|
17
17
|
home(extra?: {}): Promise<boolean>;
|
|
18
18
|
getLengths(extra?: {}): Promise<number[]>;
|
|
19
19
|
stop(extra?: {}): Promise<void>;
|
|
20
20
|
isMoving(): Promise<boolean>;
|
|
21
|
-
doCommand(command:
|
|
21
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
22
22
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
2
3
|
/** Represents a physical gantry that exists in three-dimensional space. */
|
|
3
4
|
export interface Gantry extends Resource {
|
|
4
5
|
/**
|
|
@@ -9,9 +10,9 @@ export interface Gantry extends Resource {
|
|
|
9
10
|
* @param speedsMmPerSec - The desired speed for each axis to move to the
|
|
10
11
|
* respective position in positionsMm.
|
|
11
12
|
*/
|
|
12
|
-
moveToPosition: (positionsMm: number[], speedsMmPerSec: number[], extra?:
|
|
13
|
+
moveToPosition: (positionsMm: number[], speedsMmPerSec: number[], extra?: Struct) => Promise<void>;
|
|
13
14
|
/** @returns The current position of each axis. */
|
|
14
|
-
getPosition: (extra?:
|
|
15
|
+
getPosition: (extra?: Struct) => Promise<number[]>;
|
|
15
16
|
/**
|
|
16
17
|
* Runs the homing sequence to find the start and end positions of the gantry
|
|
17
18
|
* axis.
|
|
@@ -19,11 +20,11 @@ export interface Gantry extends Resource {
|
|
|
19
20
|
* @returns A bool representing whether the gantry has run the homing sequence
|
|
20
21
|
* successfully.
|
|
21
22
|
*/
|
|
22
|
-
home: (extra?:
|
|
23
|
+
home: (extra?: Struct) => Promise<boolean>;
|
|
23
24
|
/** @returns The lengths of the axes of the gantry in millimeters. */
|
|
24
|
-
getLengths: (extra?:
|
|
25
|
+
getLengths: (extra?: Struct) => Promise<number[]>;
|
|
25
26
|
/** Stops the motion of the gantry. */
|
|
26
|
-
stop: (extra?:
|
|
27
|
+
stop: (extra?: Struct) => Promise<void>;
|
|
27
28
|
/** Get if the gantry is currently moving. */
|
|
28
29
|
isMoving: () => Promise<boolean>;
|
|
29
30
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
3
4
|
import type { Generic } from './generic';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the Generic component.
|
|
@@ -11,6 +12,5 @@ export declare class GenericClient implements Generic {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
|
|
15
|
-
doCommand(command: StructType): Promise<StructType>;
|
|
15
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
16
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
3
4
|
import type { Gripper } from './gripper';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the Gripper component.
|
|
@@ -11,10 +12,9 @@ export declare class GripperClient implements Gripper {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
private get gripperService();
|
|
15
15
|
open(extra?: {}): Promise<void>;
|
|
16
16
|
grab(extra?: {}): Promise<void>;
|
|
17
17
|
stop(extra?: {}): Promise<void>;
|
|
18
18
|
isMoving(): Promise<boolean>;
|
|
19
|
-
doCommand(command:
|
|
19
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
20
20
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
2
3
|
/** Represents a physical robotic gripper. */
|
|
3
4
|
export interface Gripper extends Resource {
|
|
4
5
|
/** Open a gripper of the underlying robot. */
|
|
5
|
-
open: (extra?:
|
|
6
|
+
open: (extra?: Struct) => Promise<void>;
|
|
6
7
|
/** Request a gripper of the underlying robot to grab. */
|
|
7
|
-
grab: (extra?:
|
|
8
|
+
grab: (extra?: Struct) => Promise<void>;
|
|
8
9
|
/** Stop a robot's gripper. */
|
|
9
|
-
stop: (extra?:
|
|
10
|
+
stop: (extra?: Struct) => Promise<void>;
|
|
10
11
|
/** Report if the gripper is in motion. */
|
|
11
12
|
isMoving: () => Promise<boolean>;
|
|
12
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
-
import {
|
|
2
|
+
import type { Options } from '../../types';
|
|
3
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
4
4
|
import type { InputController, InputControllerEvent } from './input-controller';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the Input Controller component.
|
|
@@ -12,8 +12,7 @@ export declare class InputControllerClient implements InputController {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
doCommand(command: StructType): Promise<StructType>;
|
|
15
|
+
getEvents(extra?: {}): Promise<import("../../gen/component/inputcontroller/v1/input_controller_pb").Event[]>;
|
|
16
|
+
triggerEvent(event: InputControllerEvent, extra?: {}): Promise<void>;
|
|
17
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
19
18
|
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import pb from '../../gen/component/inputcontroller/v1/input_controller_pb';
|
|
3
|
-
|
|
1
|
+
import type { PlainMessage, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import * as pb from '../../gen/component/inputcontroller/v1/input_controller_pb';
|
|
3
|
+
import type { Resource } from '../../types';
|
|
4
|
+
export type InputControllerEvent = PlainMessage<pb.Event>;
|
|
5
|
+
export declare const InputControllerEvent: typeof pb.Event;
|
|
4
6
|
/**
|
|
5
7
|
* Represents a human interface device like a mouse or keyboard that emits
|
|
6
8
|
* events for controls.
|
|
7
9
|
*/
|
|
8
10
|
export interface InputController extends Resource {
|
|
9
11
|
/** Returns a list of events representing the last event on each control. */
|
|
10
|
-
getEvents(extra?:
|
|
12
|
+
getEvents(extra?: Struct): Promise<InputControllerEvent[]>;
|
|
11
13
|
/**
|
|
12
14
|
* TriggerEvent, where supported, injects an InputControllerEvent into an
|
|
13
15
|
* input controller to (virtually) generate events like button presses or axis
|
|
14
16
|
* movements
|
|
15
17
|
*/
|
|
16
|
-
triggerEvent(event: InputControllerEvent, extra?:
|
|
18
|
+
triggerEvent(event: InputControllerEvent, extra?: Struct): Promise<void>;
|
|
17
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
3
4
|
import type { Motor } from './motor';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the Motor component.
|
|
@@ -11,7 +12,6 @@ export declare class MotorClient implements Motor {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
private get motorService();
|
|
15
15
|
setPower(power: number, extra?: {}): Promise<void>;
|
|
16
16
|
goFor(rpm: number, revolutions: number, extra?: {}): Promise<void>;
|
|
17
17
|
goTo(rpm: number, positionRevolutions: number, extra?: {}): Promise<void>;
|
|
@@ -24,5 +24,5 @@ export declare class MotorClient implements Motor {
|
|
|
24
24
|
getPosition(extra?: {}): Promise<number>;
|
|
25
25
|
isPowered(extra?: {}): Promise<readonly [boolean, number]>;
|
|
26
26
|
isMoving(): Promise<boolean>;
|
|
27
|
-
doCommand(command:
|
|
27
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
28
28
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
2
3
|
export interface Properties {
|
|
3
4
|
/** Whether a motor supports position reporting. */
|
|
4
5
|
positionReporting: boolean;
|
|
@@ -11,7 +12,7 @@ export interface Motor extends Resource {
|
|
|
11
12
|
* @param power - A value between -1 and 1 where negative values indicate a
|
|
12
13
|
* backwards direction and positive values a forward direction.
|
|
13
14
|
*/
|
|
14
|
-
setPower(power: number, extra?:
|
|
15
|
+
setPower(power: number, extra?: Struct): Promise<void>;
|
|
15
16
|
/**
|
|
16
17
|
* Turn the motor at a specified speed for either a specified number of
|
|
17
18
|
* revolutions or indefinitely. Raise an error if position reporting is not
|
|
@@ -23,7 +24,7 @@ export interface Motor extends Resource {
|
|
|
23
24
|
* indefinitely. If this value is nonzero, this will block until the number
|
|
24
25
|
* of revolutions has been completed or another operation comes in.
|
|
25
26
|
*/
|
|
26
|
-
goFor(rpm: number, revolutions: number, extra?:
|
|
27
|
+
goFor(rpm: number, revolutions: number, extra?: Struct): Promise<void>;
|
|
27
28
|
/**
|
|
28
29
|
* Move the motor to a specific position relative to its home position at a
|
|
29
30
|
* specified speed. Raise an error if position reporting is not supported.
|
|
@@ -32,32 +33,32 @@ export interface Motor extends Resource {
|
|
|
32
33
|
* @param positionRevolutions - Number of revolutions relative to the motor's
|
|
33
34
|
* home position.
|
|
34
35
|
*/
|
|
35
|
-
goTo(rpm: number, positionRevolutions: number, extra?:
|
|
36
|
+
goTo(rpm: number, positionRevolutions: number, extra?: Struct): Promise<void>;
|
|
36
37
|
/**
|
|
37
38
|
* Move the motor indefinitely at a specified speed. Raise an error if
|
|
38
39
|
* position reporting is not supported.
|
|
39
40
|
*
|
|
40
41
|
* @param rpm - Speed in revolutions per minute.
|
|
41
42
|
*/
|
|
42
|
-
setRPM(rpm: number, extra?:
|
|
43
|
+
setRPM(rpm: number, extra?: Struct): Promise<void>;
|
|
43
44
|
/**
|
|
44
45
|
* Set the current position of the motor as the new zero position, offset by a
|
|
45
46
|
* given position. Raise an error if position reporting is not supported.
|
|
46
47
|
*
|
|
47
48
|
* @param offset - Position from which to offset the current position.
|
|
48
49
|
*/
|
|
49
|
-
resetZeroPosition(offset: number, extra?:
|
|
50
|
+
resetZeroPosition(offset: number, extra?: Struct): Promise<void>;
|
|
50
51
|
/** Turn the motor off. */
|
|
51
|
-
stop(extra?:
|
|
52
|
+
stop(extra?: Struct): Promise<void>;
|
|
52
53
|
/** Return the motor's properties. */
|
|
53
|
-
getProperties(extra?:
|
|
54
|
+
getProperties(extra?: Struct): Promise<Properties>;
|
|
54
55
|
/**
|
|
55
56
|
* Return the position of the motor relative to its zero position. Raise an
|
|
56
57
|
* error if position reporting is not supported.
|
|
57
58
|
*/
|
|
58
|
-
getPosition(extra?:
|
|
59
|
+
getPosition(extra?: Struct): Promise<number>;
|
|
59
60
|
/** Return true if the motor is on. */
|
|
60
|
-
isPowered(extra?:
|
|
61
|
+
isPowered(extra?: Struct): Promise<readonly [boolean, number]>;
|
|
61
62
|
/** Return true if the motor is in motion. */
|
|
62
63
|
isMoving(): Promise<boolean>;
|
|
63
64
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
-
import pb from '../../gen/component/movementsensor/v1/movementsensor_pb';
|
|
3
|
+
import type { Options } from '../../types';
|
|
4
4
|
import type { MovementSensor } from './movement-sensor';
|
|
5
5
|
/**
|
|
6
6
|
* A gRPC-web client for the MovementSensor component.
|
|
@@ -12,15 +12,14 @@ export declare class MovementSensorClient implements MovementSensor {
|
|
|
12
12
|
private readonly name;
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
getAngularVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3.AsObject>;
|
|
15
|
+
getLinearVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3>;
|
|
16
|
+
getAngularVelocity(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3>;
|
|
18
17
|
getCompassHeading(extra?: {}): Promise<number>;
|
|
19
|
-
getOrientation(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Orientation
|
|
20
|
-
getPosition(extra?: {}): Promise<
|
|
21
|
-
getProperties(extra?: {}): Promise<
|
|
22
|
-
getAccuracy(extra?: {}): Promise<
|
|
23
|
-
getLinearAcceleration(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3
|
|
24
|
-
getReadings(extra?: {}): Promise<Record<string,
|
|
25
|
-
doCommand(command:
|
|
18
|
+
getOrientation(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Orientation>;
|
|
19
|
+
getPosition(extra?: {}): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetPositionResponse>;
|
|
20
|
+
getProperties(extra?: {}): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetPropertiesResponse>;
|
|
21
|
+
getAccuracy(extra?: {}): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetAccuracyResponse>;
|
|
22
|
+
getLinearAcceleration(extra?: {}): Promise<import("../../gen/common/v1/common_pb").Vector3>;
|
|
23
|
+
getReadings(extra?: {}): Promise<Record<string, JsonValue>>;
|
|
24
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
26
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
1
|
+
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Orientation, Resource, Vector3 } from '../../types';
|
|
3
|
+
import * as sensorApi from '../../gen/component/movementsensor/v1/movementsensor_pb';
|
|
4
|
+
export type MovementSensorAccuracy = sensorApi.GetAccuracyResponse;
|
|
5
|
+
export type MovementSensorPosition = sensorApi.GetPositionResponse;
|
|
6
|
+
export type MovementSensorProperties = sensorApi.GetPropertiesResponse;
|
|
7
|
+
export declare const MovementSensorAccuracy: typeof sensorApi.GetAccuracyResponse, MovementSensorPosition: typeof sensorApi.GetPositionResponse, MovementSensorProperties: typeof sensorApi.GetPropertiesResponse;
|
|
6
8
|
/**
|
|
7
9
|
* Represents any sensor that reports information about the robot's direction,
|
|
8
10
|
* position, and/or speed.
|
|
9
11
|
*/
|
|
10
12
|
export interface MovementSensor extends Resource {
|
|
11
13
|
/** Get linear velocity across x/y/z axes */
|
|
12
|
-
getLinearVelocity(extra?:
|
|
14
|
+
getLinearVelocity(extra?: Struct): Promise<Vector3>;
|
|
13
15
|
/** Get the angular velocity across x/y/z axes */
|
|
14
|
-
getAngularVelocity(extra?:
|
|
16
|
+
getAngularVelocity(extra?: Struct): Promise<Vector3>;
|
|
15
17
|
/**
|
|
16
18
|
* Get the compass heading, which is a number from 0-359 where 0 is North, 90
|
|
17
19
|
* is East, 180 is South, and 270 is West
|
|
18
20
|
*/
|
|
19
|
-
getCompassHeading(extra?:
|
|
21
|
+
getCompassHeading(extra?: Struct): Promise<number>;
|
|
20
22
|
/**
|
|
21
23
|
* Get the compass heading, which is a number from 0-359 where 0 is North, 90
|
|
22
24
|
* is East, 180 is South, and 270 is West
|
|
23
25
|
*/
|
|
24
|
-
getOrientation(extra?:
|
|
26
|
+
getOrientation(extra?: Struct): Promise<Orientation>;
|
|
25
27
|
/** Get the current position latitude, longitude, and altitude */
|
|
26
|
-
getPosition(extra?:
|
|
28
|
+
getPosition(extra?: Struct): Promise<MovementSensorPosition>;
|
|
27
29
|
/** Get the properties of this movement sensor */
|
|
28
|
-
getProperties(extra?:
|
|
30
|
+
getProperties(extra?: Struct): Promise<MovementSensorProperties>;
|
|
29
31
|
/** Get the accuracy of various sensors */
|
|
30
|
-
getAccuracy(extra?:
|
|
32
|
+
getAccuracy(extra?: Struct): Promise<MovementSensorAccuracy>;
|
|
31
33
|
/** Get linear acceleration across x/y/z axes */
|
|
32
|
-
getLinearAcceleration(extra?:
|
|
34
|
+
getLinearAcceleration(extra?: Struct): Promise<Vector3>;
|
|
33
35
|
/** Return the readings of a sensor. */
|
|
34
|
-
getReadings(extra?:
|
|
36
|
+
getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
|
|
35
37
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { MovementSensorPosition, MovementSensorProperties, MovementSensorAccuracy, MovementSensor, } from './movement-sensor/movement-sensor';
|
|
2
1
|
export { MovementSensorClient } from './movement-sensor/client';
|
|
2
|
+
export { MovementSensorAccuracy, MovementSensorPosition, MovementSensorProperties, type MovementSensor, } from './movement-sensor/movement-sensor';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
3
4
|
import type { PowerSensor } from './power-sensor';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the PowerSensor component.
|
|
@@ -11,10 +12,9 @@ export declare class PowerSensorClient implements PowerSensor {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
private get powersensorService();
|
|
15
15
|
getVoltage(extra?: {}): Promise<readonly [number, boolean]>;
|
|
16
16
|
getCurrent(extra?: {}): Promise<readonly [number, boolean]>;
|
|
17
17
|
getPower(extra?: {}): Promise<number>;
|
|
18
|
-
getReadings(extra?: {}): Promise<Record<string,
|
|
19
|
-
doCommand(command:
|
|
18
|
+
getReadings(extra?: {}): Promise<Record<string, JsonValue>>;
|
|
19
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
20
20
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Sensor } from '../sensor';
|
|
3
3
|
/** Represents any sensor that reports voltage, current, and/or power */
|
|
4
4
|
export interface PowerSensor extends Sensor {
|
|
5
5
|
/** Get Voltage in volts and a boolean that returns true if AC */
|
|
6
|
-
getVoltage(extra?:
|
|
6
|
+
getVoltage(extra?: Struct): Promise<readonly [number, boolean]>;
|
|
7
7
|
/** Get Current in amps and a boolean that returns true if AC */
|
|
8
|
-
getCurrent(extra?:
|
|
8
|
+
getCurrent(extra?: Struct): Promise<readonly [number, boolean]>;
|
|
9
9
|
/** Get Power in watts */
|
|
10
|
-
getPower(extra?:
|
|
10
|
+
getPower(extra?: Struct): Promise<number>;
|
|
11
11
|
/** Return the readings of a sensor. */
|
|
12
|
-
getReadings(extra?:
|
|
12
|
+
getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
2
|
+
import type { Options } from '../../types';
|
|
3
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
3
4
|
import type { Sensor } from './sensor';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the Sensor component.
|
|
@@ -11,7 +12,6 @@ export declare class SensorClient implements Sensor {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
doCommand(command: StructType): Promise<StructType>;
|
|
15
|
+
getReadings(extra?: {}): Promise<Record<string, JsonValue>>;
|
|
16
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
17
17
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsonValue, Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
2
3
|
/** Represents a physical sensing device that can provide measurement readings. */
|
|
3
4
|
export interface Sensor extends Resource {
|
|
4
5
|
/** Return the readings of a sensor. */
|
|
5
|
-
getReadings(extra?:
|
|
6
|
+
getReadings(extra?: Struct): Promise<Record<string, JsonValue>>;
|
|
6
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
1
2
|
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
3
4
|
import type { Servo } from './servo';
|
|
4
5
|
/**
|
|
5
6
|
* A gRPC-web client for the Servo component.
|
|
@@ -11,10 +12,9 @@ export declare class ServoClient implements Servo {
|
|
|
11
12
|
private readonly name;
|
|
12
13
|
private readonly options;
|
|
13
14
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
getPosition(extra?: StructType): Promise<number>;
|
|
15
|
+
move(angleDeg: number, extra?: {}): Promise<void>;
|
|
16
|
+
getPosition(extra?: {}): Promise<number>;
|
|
17
17
|
stop(extra?: {}): Promise<void>;
|
|
18
18
|
isMoving(): Promise<boolean>;
|
|
19
|
-
doCommand(command:
|
|
19
|
+
doCommand(command: Struct): Promise<JsonValue>;
|
|
20
20
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Struct } from '@bufbuild/protobuf';
|
|
2
|
+
import type { Resource } from '../../types';
|
|
2
3
|
/** Represents a physical servo. */
|
|
3
4
|
export interface Servo extends Resource {
|
|
4
5
|
/** Move the servo by a given angle in degrees. */
|
|
5
|
-
move(angleDeg: number, extra?:
|
|
6
|
+
move(angleDeg: number, extra?: Struct): Promise<void>;
|
|
6
7
|
/** Return the current set angle of the servo in degrees. */
|
|
7
|
-
getPosition(extra?:
|
|
8
|
+
getPosition(extra?: Struct): Promise<number>;
|
|
8
9
|
/** Stop the servo. */
|
|
9
|
-
stop(extra?:
|
|
10
|
+
stop(extra?: Struct): Promise<void>;
|
|
10
11
|
/** Return true if the servo is in motion. */
|
|
11
12
|
isMoving(): Promise<boolean>;
|
|
12
13
|
}
|
|
@@ -12,7 +12,6 @@ export declare class StreamClient extends EventDispatcher implements Stream {
|
|
|
12
12
|
private readonly options;
|
|
13
13
|
private streams;
|
|
14
14
|
constructor(client: RobotClient, options?: Options);
|
|
15
|
-
private get streamService();
|
|
16
15
|
add(name: string): Promise<void>;
|
|
17
16
|
remove(name: string): Promise<void>;
|
|
18
17
|
private STREAM_TIMEOUT;
|