@viamrobotics/sdk 0.32.0 → 0.33.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/api-version.d.ts +1 -1
- package/dist/gen/app/data/v1/data_pb.d.ts +6 -6
- package/dist/gen/app/v1/app_pb.d.ts +54 -0
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/gen/app/v1/robot_pb.d.ts +8 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +30 -0
- package/dist/main.d.ts +0 -28
- package/dist/main.es.js +2640 -2702
- package/dist/main.umd.js +7 -7
- package/dist/robot/client.d.ts +6 -29
- package/dist/robot/robot.d.ts +0 -20
- package/package.json +1 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -3,8 +3,7 @@ import { type PromiseClient } from '@connectrpc/connect';
|
|
|
3
3
|
import { type Credentials } from '../app/viam-transport';
|
|
4
4
|
import { EventDispatcher } from '../events';
|
|
5
5
|
import type { PoseInFrame, Transform } from '../gen/common/v1/common_pb';
|
|
6
|
-
import { DiscoveryQuery, RestartModuleRequest,
|
|
7
|
-
import type { ResourceName } from '../types';
|
|
6
|
+
import { DiscoveryQuery, RestartModuleRequest, TransformPCDRequest, TransformPoseRequest } from '../gen/robot/v1/robot_pb';
|
|
8
7
|
import type { Robot } from './robot';
|
|
9
8
|
interface WebRTCOptions {
|
|
10
9
|
enabled: boolean;
|
|
@@ -61,7 +60,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
61
60
|
private navigationServiceClient;
|
|
62
61
|
private motionServiceClient;
|
|
63
62
|
private visionServiceClient;
|
|
64
|
-
private sensorsServiceClient;
|
|
65
63
|
private servoServiceClient;
|
|
66
64
|
private slamServiceClient;
|
|
67
65
|
constructor(serviceHost: string, webrtcOptions?: WebRTCOptions, sessionOptions?: SessionOptions, directOptions?: DirectOptions);
|
|
@@ -228,7 +226,11 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
228
226
|
readonly I: typeof import("../gen/component/arm/v1/arm_pb").MoveToJointPositionsRequest;
|
|
229
227
|
readonly O: typeof import("../gen/component/arm/v1/arm_pb").MoveToJointPositionsResponse;
|
|
230
228
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
231
|
-
};
|
|
229
|
+
}; /**
|
|
230
|
+
* A gRPC-web client for a Robot.
|
|
231
|
+
*
|
|
232
|
+
* @group Clients
|
|
233
|
+
*/
|
|
232
234
|
readonly moveThroughJointPositions: {
|
|
233
235
|
readonly name: "MoveThroughJointPositions";
|
|
234
236
|
readonly I: typeof import("../gen/component/arm/v1/arm_pb").MoveThroughJointPositionsRequest;
|
|
@@ -950,29 +952,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
950
952
|
};
|
|
951
953
|
};
|
|
952
954
|
}>;
|
|
953
|
-
get sensorsService(): PromiseClient<{
|
|
954
|
-
readonly typeName: "viam.service.sensors.v1.SensorsService";
|
|
955
|
-
readonly methods: {
|
|
956
|
-
readonly getSensors: {
|
|
957
|
-
readonly name: "GetSensors";
|
|
958
|
-
readonly I: typeof import("../gen/service/sensors/v1/sensors_pb").GetSensorsRequest;
|
|
959
|
-
readonly O: typeof import("../gen/service/sensors/v1/sensors_pb").GetSensorsResponse;
|
|
960
|
-
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
961
|
-
};
|
|
962
|
-
readonly getReadings: {
|
|
963
|
-
readonly name: "GetReadings";
|
|
964
|
-
readonly I: typeof import("../gen/service/sensors/v1/sensors_pb").GetReadingsRequest;
|
|
965
|
-
readonly O: typeof import("../gen/service/sensors/v1/sensors_pb").GetReadingsResponse;
|
|
966
|
-
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
967
|
-
};
|
|
968
|
-
readonly doCommand: {
|
|
969
|
-
readonly name: "DoCommand";
|
|
970
|
-
readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
|
|
971
|
-
readonly O: typeof import("../gen/common/v1/common_pb").DoCommandResponse;
|
|
972
|
-
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
973
|
-
};
|
|
974
|
-
};
|
|
975
|
-
}>;
|
|
976
955
|
get servoService(): PromiseClient<{
|
|
977
956
|
readonly typeName: "viam.component.servo.v1.ServoService";
|
|
978
957
|
readonly methods: {
|
|
@@ -1066,8 +1045,6 @@ export declare class RobotClient extends EventDispatcher implements Robot {
|
|
|
1066
1045
|
getCloudMetadata(): Promise<import("../gen/robot/v1/robot_pb").GetCloudMetadataResponse>;
|
|
1067
1046
|
resourceNames(): Promise<import("../gen/common/v1/common_pb").ResourceName[]>;
|
|
1068
1047
|
resourceRPCSubtypes(): Promise<import("../gen/robot/v1/robot_pb").ResourceRPCSubtype[]>;
|
|
1069
|
-
getStatus(resourceNames?: ResourceName[]): Promise<Status[]>;
|
|
1070
|
-
streamStatus(resourceNames?: ResourceName[], durationMs?: number): AsyncIterable<Status[]>;
|
|
1071
1048
|
restartModule(moduleId?: string, moduleName?: string): Promise<void>;
|
|
1072
1049
|
}
|
|
1073
1050
|
export {};
|
package/dist/robot/robot.d.ts
CHANGED
|
@@ -105,26 +105,6 @@ export interface Robot {
|
|
|
105
105
|
* @alpha
|
|
106
106
|
*/
|
|
107
107
|
resourceRPCSubtypes(): Promise<proto.ResourceRPCSubtype[]>;
|
|
108
|
-
/**
|
|
109
|
-
* Get a list of all statuses requested. An empty request signifies all
|
|
110
|
-
* resources.
|
|
111
|
-
*
|
|
112
|
-
* @param resourceNames - The list of resources for which to receive statuses.
|
|
113
|
-
* @group Status
|
|
114
|
-
* @alpha
|
|
115
|
-
*/
|
|
116
|
-
getStatus(resourceNames?: ResourceName[]): Promise<proto.Status[]>;
|
|
117
|
-
/**
|
|
118
|
-
* Periodically receive the status of all statuses requested. An empty request
|
|
119
|
-
* signifies all resources.
|
|
120
|
-
*
|
|
121
|
-
* @param resourceNames - The list of resources for which to receive statuses.
|
|
122
|
-
* Default is [].
|
|
123
|
-
* @param duration - How often to send a new status. Default is 0.5 seconds.
|
|
124
|
-
* @group Status
|
|
125
|
-
* @alpha
|
|
126
|
-
*/
|
|
127
|
-
streamStatus(resourceNames?: ResourceName[], durationMs?: number): AsyncIterable<proto.Status[]>;
|
|
128
108
|
/**
|
|
129
109
|
* Call a function when a connection event occurs.
|
|
130
110
|
*
|