@viamrobotics/sdk 0.65.0 → 0.66.1
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/api-version.d.ts +1 -1
- package/dist/components/arm/client.d.ts +1 -1
- package/dist/components/audio-in/audio-in.d.ts +1 -1
- package/dist/components/audio-in/client.d.ts +2 -2
- package/dist/components/audio-out/audio-out.d.ts +1 -1
- package/dist/components/audio-out/client.d.ts +2 -2
- package/dist/components/base/client.d.ts +1 -1
- package/dist/components/board/client.d.ts +1 -1
- package/dist/components/button/client.d.ts +1 -1
- package/dist/components/camera/client.d.ts +1 -1
- package/dist/components/encoder/client.d.ts +1 -1
- package/dist/components/gantry/client.d.ts +1 -1
- package/dist/components/generic/client.d.ts +1 -1
- package/dist/components/gripper/client.d.ts +1 -1
- package/dist/components/input-controller/client.d.ts +1 -1
- package/dist/components/motor/client.d.ts +1 -1
- package/dist/components/movement-sensor/client.d.ts +1 -1
- package/dist/components/pose-tracker/client.d.ts +1 -1
- package/dist/components/power-sensor/client.d.ts +1 -1
- package/dist/components/sensor/client.d.ts +1 -1
- package/dist/components/servo/client.d.ts +1 -1
- package/dist/components/switch/client.d.ts +1 -1
- package/dist/gen/app/datasync/v1/data_sync_pb.d.ts +7 -1
- package/dist/gen/component/camera/v1/camera_connect.d.ts +1 -1
- package/dist/gen/component/camera/v1/camera_pb.d.ts +45 -1
- package/dist/main.es.js +3610 -3604
- package/dist/main.umd.js +7 -7
- package/dist/services/data-manager/client.d.ts +1 -1
- package/dist/services/discovery/client.d.ts +1 -1
- package/dist/services/generic/client.d.ts +1 -1
- package/dist/services/motion/client.d.ts +1 -1
- package/dist/services/navigation/client.d.ts +1 -1
- package/dist/services/slam/client.d.ts +1 -1
- package/dist/services/video/client.d.ts +1 -1
- package/dist/services/video/video.d.ts +1 -1
- package/dist/services/vision/client.d.ts +1 -1
- package/dist/services/world-state-store/client.d.ts +1 -1
- package/dist/types.d.ts +10 -5
- package/dist/utils.d.ts +23 -2
- package/package.json +1 -1
package/dist/api-version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const apiVersion = "v0.1.
|
|
1
|
+
export declare const apiVersion = "v0.1.523";
|
|
@@ -26,5 +26,5 @@ export declare class ArmClient implements Arm {
|
|
|
26
26
|
getJointPositions(extra?: {}, callOptions?: CallOptions): Promise<JointPositions>;
|
|
27
27
|
stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
28
28
|
isMoving(callOptions?: CallOptions): Promise<boolean>;
|
|
29
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
29
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
30
30
|
}
|
|
@@ -10,10 +10,10 @@ export declare class AudioInClient implements AudioIn {
|
|
|
10
10
|
callOptions: CallOptions;
|
|
11
11
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
12
12
|
getAudio(codec: string, durationSeconds: number, previousTimestamp?: bigint, extra?: {}, callOptions?: CallOptions): AsyncIterable<AudioChunk>;
|
|
13
|
-
getProperties(callOptions?: CallOptions): Promise<{
|
|
13
|
+
getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
14
14
|
supportedCodecs: string[];
|
|
15
15
|
sampleRateHz: number;
|
|
16
16
|
numChannels: number;
|
|
17
17
|
}>;
|
|
18
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
19
|
}
|
|
@@ -16,10 +16,10 @@ export declare class AudioOutClient implements AudioOut {
|
|
|
16
16
|
callOptions: CallOptions;
|
|
17
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
18
18
|
play(audioData: Uint8Array, audioInfo?: AudioInfo, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
19
|
-
getProperties(callOptions?: CallOptions): Promise<{
|
|
19
|
+
getProperties(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
20
20
|
supportedCodecs: string[];
|
|
21
21
|
sampleRateHz: number;
|
|
22
22
|
numChannels: number;
|
|
23
23
|
}>;
|
|
24
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
24
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
25
25
|
}
|
|
@@ -21,6 +21,6 @@ export declare class BaseClient implements Base {
|
|
|
21
21
|
setVelocity(linear: Vector3, angular: Vector3, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
22
22
|
stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
23
23
|
isMoving(callOptions?: CallOptions): Promise<boolean>;
|
|
24
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
24
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
25
25
|
getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/base/v1/base_pb").GetPropertiesResponse>;
|
|
26
26
|
}
|
|
@@ -25,5 +25,5 @@ export declare class BoardClient implements Board {
|
|
|
25
25
|
getDigitalInterruptValue(digitalInterruptName: string, extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
26
26
|
streamTicks(interrupts: string[], queue: Tick[], extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
27
27
|
setPowerMode(powerMode: PowerMode, duration?: Duration, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
28
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
28
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
29
29
|
}
|
|
@@ -15,5 +15,5 @@ export declare class ButtonClient implements Button {
|
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
17
|
push(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
19
|
}
|
|
@@ -25,5 +25,5 @@ export declare class CameraClient implements Camera {
|
|
|
25
25
|
}>;
|
|
26
26
|
getPointCloud(extra?: {}, callOptions?: CallOptions): Promise<Uint8Array>;
|
|
27
27
|
getProperties(callOptions?: CallOptions): Promise<import("../../gen/component/camera/v1/camera_pb").GetPropertiesResponse>;
|
|
28
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
28
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
29
29
|
}
|
|
@@ -17,5 +17,5 @@ export declare class EncoderClient implements Encoder {
|
|
|
17
17
|
resetPosition(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
18
|
getProperties(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/encoder/v1/encoder_pb").GetPropertiesResponse>;
|
|
19
19
|
getPosition(positionType?: EncoderPositionType, extra?: {}, callOptions?: CallOptions): Promise<readonly [number, import("../../gen/component/encoder/v1/encoder_pb").PositionType]>;
|
|
20
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
20
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
21
|
}
|
|
@@ -23,5 +23,5 @@ export declare class GantryClient implements Gantry {
|
|
|
23
23
|
getLengths(extra?: {}, callOptions?: CallOptions): Promise<number[]>;
|
|
24
24
|
stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
25
25
|
isMoving(callOptions?: CallOptions): Promise<boolean>;
|
|
26
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
26
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
27
27
|
}
|
|
@@ -15,5 +15,5 @@ export declare class GenericClient implements Generic {
|
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
17
|
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
18
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
19
|
}
|
|
@@ -20,5 +20,5 @@ export declare class GripperClient implements Gripper {
|
|
|
20
20
|
stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
21
21
|
isMoving(callOptions?: CallOptions): Promise<boolean>;
|
|
22
22
|
isHoldingSomething(extra?: {}, callOptions?: CallOptions): Promise<boolean>;
|
|
23
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
23
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
24
24
|
}
|
|
@@ -16,5 +16,5 @@ export declare class InputControllerClient implements InputController {
|
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
17
|
getEvents(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/inputcontroller/v1/input_controller_pb").Event[]>;
|
|
18
18
|
triggerEvent(event: InputControllerEvent, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
19
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
20
20
|
}
|
|
@@ -26,5 +26,5 @@ export declare class MotorClient implements Motor {
|
|
|
26
26
|
getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
27
27
|
isPowered(extra?: {}, callOptions?: CallOptions): Promise<readonly [boolean, number]>;
|
|
28
28
|
isMoving(callOptions?: CallOptions): Promise<boolean>;
|
|
29
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
29
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
30
30
|
}
|
|
@@ -23,5 +23,5 @@ export declare class MovementSensorClient implements MovementSensor {
|
|
|
23
23
|
getAccuracy(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/component/movementsensor/v1/movementsensor_pb").GetAccuracyResponse>;
|
|
24
24
|
getLinearAcceleration(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Vector3>;
|
|
25
25
|
getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
|
|
26
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
26
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
27
27
|
}
|
|
@@ -15,5 +15,5 @@ export declare class PoseTrackerClient implements PoseTracker {
|
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
17
|
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
18
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
19
|
}
|
|
@@ -18,5 +18,5 @@ export declare class PowerSensorClient implements PowerSensor {
|
|
|
18
18
|
getCurrent(extra?: {}, callOptions?: CallOptions): Promise<readonly [number, boolean]>;
|
|
19
19
|
getPower(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
20
20
|
getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
|
|
21
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
22
22
|
}
|
|
@@ -15,5 +15,5 @@ export declare class SensorClient implements Sensor {
|
|
|
15
15
|
callOptions: CallOptions;
|
|
16
16
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
17
17
|
getReadings(extra?: {}, callOptions?: CallOptions): Promise<Record<string, JsonValue>>;
|
|
18
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
18
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
19
19
|
}
|
|
@@ -18,5 +18,5 @@ export declare class ServoClient implements Servo {
|
|
|
18
18
|
getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
19
19
|
stop(extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
20
20
|
isMoving(callOptions?: CallOptions): Promise<boolean>;
|
|
21
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
22
22
|
}
|
|
@@ -17,5 +17,5 @@ export declare class SwitchClient implements Switch {
|
|
|
17
17
|
setPosition(position: number, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
18
18
|
getPosition(extra?: {}, callOptions?: CallOptions): Promise<number>;
|
|
19
19
|
getNumberOfPositions(extra?: {}, callOptions?: CallOptions): Promise<[number, string[]]>;
|
|
20
|
-
doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
|
|
20
|
+
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
21
21
|
}
|
|
@@ -286,7 +286,8 @@ export declare class SensorMetadata extends Message<SensorMetadata> {
|
|
|
286
286
|
timeReceived?: Timestamp;
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
|
-
* @generated from field: viam.app.datasync.v1.MimeType mime_type = 3;
|
|
289
|
+
* @generated from field: viam.app.datasync.v1.MimeType mime_type = 3 [deprecated = true];
|
|
290
|
+
* @deprecated
|
|
290
291
|
*/
|
|
291
292
|
mimeType: MimeType;
|
|
292
293
|
|
|
@@ -537,6 +538,11 @@ export declare class DataCaptureMetadata extends Message<DataCaptureMetadata> {
|
|
|
537
538
|
*/
|
|
538
539
|
tags: string[];
|
|
539
540
|
|
|
541
|
+
/**
|
|
542
|
+
* @generated from field: string mime_type = 10;
|
|
543
|
+
*/
|
|
544
|
+
mimeType: string;
|
|
545
|
+
|
|
540
546
|
constructor(data?: PartialMessage<DataCaptureMetadata>);
|
|
541
547
|
|
|
542
548
|
static readonly runtime: typeof proto3;
|
|
@@ -62,7 +62,7 @@ export declare const CameraService: {
|
|
|
62
62
|
readonly kind: MethodKind.Unary,
|
|
63
63
|
},
|
|
64
64
|
/**
|
|
65
|
-
* GetProperties returns the camera intrinsic parameters
|
|
65
|
+
* GetProperties returns the camera intrinsic parameters, camera distortion parameters, and extrinsic parameters from a camera of the underlying robot, if available.
|
|
66
66
|
*
|
|
67
67
|
* @generated from rpc viam.component.camera.v1.CameraService.GetProperties
|
|
68
68
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
-
import type { ResponseMetadata } from "../../../common/v1/common_pb.js";
|
|
8
|
+
import type { Orientation, ResponseMetadata, Vector3 } from "../../../common/v1/common_pb.js";
|
|
9
9
|
import type { Annotations } from "../../../app/data/v1/data_pb.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -421,6 +421,14 @@ export declare class GetPropertiesResponse extends Message<GetPropertiesResponse
|
|
|
421
421
|
*/
|
|
422
422
|
frameRate?: number;
|
|
423
423
|
|
|
424
|
+
/**
|
|
425
|
+
* Parameters for the camera's position relative to a reference frame
|
|
426
|
+
* If camera does not provide extrinsic parameters, leave the field empty
|
|
427
|
+
*
|
|
428
|
+
* @generated from field: viam.component.camera.v1.ExtrinsicParameters extrinsic_parameters = 6;
|
|
429
|
+
*/
|
|
430
|
+
extrinsicParameters?: ExtrinsicParameters;
|
|
431
|
+
|
|
424
432
|
constructor(data?: PartialMessage<GetPropertiesResponse>);
|
|
425
433
|
|
|
426
434
|
static readonly runtime: typeof proto3;
|
|
@@ -639,3 +647,39 @@ export declare class DistortionParameters extends Message<DistortionParameters>
|
|
|
639
647
|
static equals(a: DistortionParameters | PlainMessage<DistortionParameters> | undefined, b: DistortionParameters | PlainMessage<DistortionParameters> | undefined): boolean;
|
|
640
648
|
}
|
|
641
649
|
|
|
650
|
+
/**
|
|
651
|
+
* ExtrinsicParameters define the position of the camera
|
|
652
|
+
* relative to a reference frame (the world or another sensor).
|
|
653
|
+
*
|
|
654
|
+
* @generated from message viam.component.camera.v1.ExtrinsicParameters
|
|
655
|
+
*/
|
|
656
|
+
export declare class ExtrinsicParameters extends Message<ExtrinsicParameters> {
|
|
657
|
+
/**
|
|
658
|
+
* The translation from the reference frame to the camera.
|
|
659
|
+
*
|
|
660
|
+
* @generated from field: viam.common.v1.Vector3 translation = 1;
|
|
661
|
+
*/
|
|
662
|
+
translation?: Vector3;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* The orientation from the reference frame to the camera.
|
|
666
|
+
*
|
|
667
|
+
* @generated from field: viam.common.v1.Orientation orientation = 2;
|
|
668
|
+
*/
|
|
669
|
+
orientation?: Orientation;
|
|
670
|
+
|
|
671
|
+
constructor(data?: PartialMessage<ExtrinsicParameters>);
|
|
672
|
+
|
|
673
|
+
static readonly runtime: typeof proto3;
|
|
674
|
+
static readonly typeName = "viam.component.camera.v1.ExtrinsicParameters";
|
|
675
|
+
static readonly fields: FieldList;
|
|
676
|
+
|
|
677
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtrinsicParameters;
|
|
678
|
+
|
|
679
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtrinsicParameters;
|
|
680
|
+
|
|
681
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtrinsicParameters;
|
|
682
|
+
|
|
683
|
+
static equals(a: ExtrinsicParameters | PlainMessage<ExtrinsicParameters> | undefined, b: ExtrinsicParameters | PlainMessage<ExtrinsicParameters> | undefined): boolean;
|
|
684
|
+
}
|
|
685
|
+
|