@viamrobotics/sdk 0.77.0 → 0.78.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/README.md +1 -1
- package/dist/api-version.d.ts +1 -1
- package/dist/app/app-client.d.ts +85 -102
- package/dist/app/billing-client.d.ts +4 -5
- package/dist/app/data-client.d.ts +31 -31
- package/dist/app/ml-training-client.d.ts +6 -6
- package/dist/components/arm/arm.d.ts +8 -9
- package/dist/components/base/base.d.ts +8 -8
- package/dist/components/board/board.d.ts +12 -13
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/camera/camera.d.ts +2 -2
- package/dist/components/encoder/encoder.d.ts +4 -4
- package/dist/components/gantry/gantry.d.ts +8 -8
- package/dist/components/generic/generic.d.ts +1 -1
- package/dist/components/gripper/gripper.d.ts +6 -6
- package/dist/components/input-controller/input-controller.d.ts +3 -3
- package/dist/components/motor/motor.d.ts +11 -11
- package/dist/components/movement-sensor/movement-sensor.d.ts +10 -10
- package/dist/components/pose-tracker/pose-tracker.d.ts +1 -1
- package/dist/components/power-sensor/power-sensor.d.ts +4 -4
- package/dist/components/sensor/sensor.d.ts +1 -1
- package/dist/components/servo/servo.d.ts +5 -5
- package/dist/components/switch/switch.d.ts +3 -3
- package/dist/gen/app/v1/app_pb.d.ts +14 -0
- package/dist/gen/app/v1/billing_pb.d.ts +5 -0
- package/dist/gen/common/v1/common_pb.d.ts +588 -6
- package/dist/gen/google/api/field_behavior_pb.d.ts +1 -1
- package/dist/gen/proto/rpc/webrtc/v1/grpc_pb.d.ts +9 -0
- package/dist/gen/proto/rpc/webrtc/v1/signaling_pb.d.ts +25 -0
- package/dist/gen/robot/v1/robot_pb.d.ts +66 -2
- package/dist/gen/service/motion/v1/motion_pb.d.ts +8 -0
- package/dist/gen/service/navigation/v1/navigation_connect.d.ts +324 -43
- package/dist/gen/service/navigation/v1/navigation_pb.d.ts +2350 -229
- package/dist/main.d.ts +1 -1
- package/dist/main.es.js +6631 -4829
- package/dist/main.umd.js +9 -9
- package/dist/robot/client.d.ts +156 -30
- package/dist/services/data-manager/client.d.ts +2 -2
- package/dist/services/motion/motion.d.ts +7 -7
- package/dist/services/navigation/client.d.ts +32 -11
- package/dist/services/navigation/navigation.d.ts +162 -110
- package/dist/services/navigation/types.d.ts +36 -5
- package/dist/services/navigation.d.ts +1 -1
- package/dist/services/slam/slam.d.ts +4 -4
- package/dist/services/vision/vision.d.ts +8 -8
- package/package.json +1 -1
package/dist/robot/client.d.ts
CHANGED
|
@@ -1122,16 +1122,10 @@ export declare class RobotClient extends EventDispatcher<RobotClientDispatchEven
|
|
|
1122
1122
|
get navigationService(): Client<{
|
|
1123
1123
|
readonly typeName: "viam.service.navigation.v1.NavigationService";
|
|
1124
1124
|
readonly methods: {
|
|
1125
|
-
readonly
|
|
1126
|
-
readonly name: "
|
|
1127
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1128
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1129
|
-
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1130
|
-
};
|
|
1131
|
-
readonly setMode: {
|
|
1132
|
-
readonly name: "SetMode";
|
|
1133
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").SetModeRequest;
|
|
1134
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").SetModeResponse;
|
|
1125
|
+
readonly addLocation: {
|
|
1126
|
+
readonly name: "AddLocation";
|
|
1127
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").AddLocationRequest;
|
|
1128
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").AddLocationResponse;
|
|
1135
1129
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1136
1130
|
};
|
|
1137
1131
|
readonly getLocation: {
|
|
@@ -1140,34 +1134,160 @@ export declare class RobotClient extends EventDispatcher<RobotClientDispatchEven
|
|
|
1140
1134
|
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetLocationResponse;
|
|
1141
1135
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1142
1136
|
};
|
|
1143
|
-
readonly
|
|
1144
|
-
readonly name: "
|
|
1145
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1146
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1137
|
+
readonly listLocations: {
|
|
1138
|
+
readonly name: "ListLocations";
|
|
1139
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").ListLocationsRequest;
|
|
1140
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").ListLocationsResponse;
|
|
1141
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1142
|
+
};
|
|
1143
|
+
readonly updateLocation: {
|
|
1144
|
+
readonly name: "UpdateLocation";
|
|
1145
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").UpdateLocationRequest;
|
|
1146
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").UpdateLocationResponse;
|
|
1147
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1148
|
+
};
|
|
1149
|
+
readonly deleteLocation: {
|
|
1150
|
+
readonly name: "DeleteLocation";
|
|
1151
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").DeleteLocationRequest;
|
|
1152
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").DeleteLocationResponse;
|
|
1153
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1154
|
+
};
|
|
1155
|
+
readonly addRoute: {
|
|
1156
|
+
readonly name: "AddRoute";
|
|
1157
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").AddRouteRequest;
|
|
1158
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").AddRouteResponse;
|
|
1159
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1160
|
+
};
|
|
1161
|
+
readonly getRoute: {
|
|
1162
|
+
readonly name: "GetRoute";
|
|
1163
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetRouteRequest;
|
|
1164
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetRouteResponse;
|
|
1165
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1166
|
+
};
|
|
1167
|
+
readonly listRoutes: {
|
|
1168
|
+
readonly name: "ListRoutes";
|
|
1169
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").ListRoutesRequest;
|
|
1170
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").ListRoutesResponse;
|
|
1171
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1172
|
+
};
|
|
1173
|
+
readonly updateRoute: {
|
|
1174
|
+
readonly name: "UpdateRoute";
|
|
1175
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").UpdateRouteRequest;
|
|
1176
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").UpdateRouteResponse;
|
|
1177
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1178
|
+
};
|
|
1179
|
+
readonly deleteRoute: {
|
|
1180
|
+
readonly name: "DeleteRoute";
|
|
1181
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").DeleteRouteRequest;
|
|
1182
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").DeleteRouteResponse;
|
|
1183
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1184
|
+
};
|
|
1185
|
+
readonly addZone: {
|
|
1186
|
+
readonly name: "AddZone";
|
|
1187
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").AddZoneRequest;
|
|
1188
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").AddZoneResponse;
|
|
1189
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1190
|
+
};
|
|
1191
|
+
readonly getZone: {
|
|
1192
|
+
readonly name: "GetZone";
|
|
1193
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetZoneRequest;
|
|
1194
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetZoneResponse;
|
|
1195
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1196
|
+
};
|
|
1197
|
+
readonly listZones: {
|
|
1198
|
+
readonly name: "ListZones";
|
|
1199
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").ListZonesRequest;
|
|
1200
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").ListZonesResponse;
|
|
1201
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1202
|
+
};
|
|
1203
|
+
readonly updateZone: {
|
|
1204
|
+
readonly name: "UpdateZone";
|
|
1205
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").UpdateZoneRequest;
|
|
1206
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").UpdateZoneResponse;
|
|
1147
1207
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1148
1208
|
};
|
|
1149
|
-
readonly
|
|
1150
|
-
readonly name: "
|
|
1151
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1152
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1209
|
+
readonly deleteZone: {
|
|
1210
|
+
readonly name: "DeleteZone";
|
|
1211
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").DeleteZoneRequest;
|
|
1212
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").DeleteZoneResponse;
|
|
1153
1213
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1154
1214
|
};
|
|
1155
|
-
readonly
|
|
1156
|
-
readonly name: "
|
|
1157
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1158
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1215
|
+
readonly navigateToLocation: {
|
|
1216
|
+
readonly name: "NavigateToLocation";
|
|
1217
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").NavigateToLocationRequest;
|
|
1218
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").NavigateToLocationResponse;
|
|
1159
1219
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1160
1220
|
};
|
|
1161
|
-
readonly
|
|
1162
|
-
readonly name: "
|
|
1163
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1164
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1221
|
+
readonly navigateToPoint: {
|
|
1222
|
+
readonly name: "NavigateToPoint";
|
|
1223
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").NavigateToPointRequest;
|
|
1224
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").NavigateToPointResponse;
|
|
1165
1225
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1166
1226
|
};
|
|
1167
|
-
readonly
|
|
1168
|
-
readonly name: "
|
|
1169
|
-
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1170
|
-
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").
|
|
1227
|
+
readonly navigateRoute: {
|
|
1228
|
+
readonly name: "NavigateRoute";
|
|
1229
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").NavigateRouteRequest;
|
|
1230
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").NavigateRouteResponse;
|
|
1231
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1232
|
+
};
|
|
1233
|
+
readonly planToPoint: {
|
|
1234
|
+
readonly name: "PlanToPoint";
|
|
1235
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").PlanToPointRequest;
|
|
1236
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").PlanToPointResponse;
|
|
1237
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1238
|
+
};
|
|
1239
|
+
readonly planToLocation: {
|
|
1240
|
+
readonly name: "PlanToLocation";
|
|
1241
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").PlanToLocationRequest;
|
|
1242
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").PlanToLocationResponse;
|
|
1243
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1244
|
+
};
|
|
1245
|
+
readonly executePlan: {
|
|
1246
|
+
readonly name: "ExecutePlan";
|
|
1247
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").ExecutePlanRequest;
|
|
1248
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").ExecutePlanResponse;
|
|
1249
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1250
|
+
};
|
|
1251
|
+
readonly goToLocation: {
|
|
1252
|
+
readonly name: "GoToLocation";
|
|
1253
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GoToLocationRequest;
|
|
1254
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GoToLocationResponse;
|
|
1255
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1256
|
+
};
|
|
1257
|
+
readonly goToPoint: {
|
|
1258
|
+
readonly name: "GoToPoint";
|
|
1259
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GoToPointRequest;
|
|
1260
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GoToPointResponse;
|
|
1261
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1262
|
+
};
|
|
1263
|
+
readonly suspend: {
|
|
1264
|
+
readonly name: "Suspend";
|
|
1265
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").SuspendRequest;
|
|
1266
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").SuspendResponse;
|
|
1267
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1268
|
+
};
|
|
1269
|
+
readonly resume: {
|
|
1270
|
+
readonly name: "Resume";
|
|
1271
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").ResumeRequest;
|
|
1272
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").ResumeResponse;
|
|
1273
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1274
|
+
};
|
|
1275
|
+
readonly cancel: {
|
|
1276
|
+
readonly name: "Cancel";
|
|
1277
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").CancelRequest;
|
|
1278
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").CancelResponse;
|
|
1279
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1280
|
+
};
|
|
1281
|
+
readonly getPosition: {
|
|
1282
|
+
readonly name: "GetPosition";
|
|
1283
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetPositionRequest;
|
|
1284
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetPositionResponse;
|
|
1285
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1286
|
+
};
|
|
1287
|
+
readonly getNavigationStatus: {
|
|
1288
|
+
readonly name: "GetNavigationStatus";
|
|
1289
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetNavigationStatusRequest;
|
|
1290
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetNavigationStatusResponse;
|
|
1171
1291
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1172
1292
|
};
|
|
1173
1293
|
readonly getProperties: {
|
|
@@ -1176,6 +1296,12 @@ export declare class RobotClient extends EventDispatcher<RobotClientDispatchEven
|
|
|
1176
1296
|
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetPropertiesResponse;
|
|
1177
1297
|
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1178
1298
|
};
|
|
1299
|
+
readonly getCostmap: {
|
|
1300
|
+
readonly name: "GetCostmap";
|
|
1301
|
+
readonly I: typeof import("../gen/service/navigation/v1/navigation_pb").GetCostmapRequest;
|
|
1302
|
+
readonly O: typeof import("../gen/service/navigation/v1/navigation_pb").GetCostmapResponse;
|
|
1303
|
+
readonly kind: import("@bufbuild/protobuf").MethodKind.Unary;
|
|
1304
|
+
};
|
|
1179
1305
|
readonly doCommand: {
|
|
1180
1306
|
readonly name: "DoCommand";
|
|
1181
1307
|
readonly I: typeof import("../gen/common/v1/common_pb").DoCommandRequest;
|
|
@@ -21,7 +21,7 @@ export declare class DataManagerClient implements DataManager {
|
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* For more information, see [Data Manager
|
|
24
|
-
* API](https://docs.viam.com/
|
|
24
|
+
* API](https://docs.viam.com/reference/apis/services/data/#sync).
|
|
25
25
|
*
|
|
26
26
|
* @param extra - Extra arguments to pass to the sync request.
|
|
27
27
|
* @param callOptions - Call options for the sync request.
|
|
@@ -38,7 +38,7 @@ export declare class DataManagerClient implements DataManager {
|
|
|
38
38
|
* ```
|
|
39
39
|
*
|
|
40
40
|
* For more information, see [Data Manager
|
|
41
|
-
* API](https://docs.viam.com/
|
|
41
|
+
* API](https://docs.viam.com/reference/apis/services/data/#docommand).
|
|
42
42
|
*
|
|
43
43
|
* @param command - The command to do.
|
|
44
44
|
* @param callOptions - Call options for the command.
|
|
@@ -34,7 +34,7 @@ export interface Motion extends Resource {
|
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* For more information, see [Motion
|
|
37
|
-
* API](https://docs.viam.com/
|
|
37
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#move).
|
|
38
38
|
*
|
|
39
39
|
* @param destination - Destination to move to, which can a pose in the reference frame of any
|
|
40
40
|
* frame in the robot's frame system.
|
|
@@ -77,7 +77,7 @@ export interface Motion extends Resource {
|
|
|
77
77
|
* ```
|
|
78
78
|
*
|
|
79
79
|
* For more information, see [Motion
|
|
80
|
-
* API](https://docs.viam.com/
|
|
80
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#moveonmap).
|
|
81
81
|
*
|
|
82
82
|
* @param destination - Specify a destination to, which can be any `Pose` with respect to the SLAM
|
|
83
83
|
* map's origin.
|
|
@@ -118,7 +118,7 @@ export interface Motion extends Resource {
|
|
|
118
118
|
* ```
|
|
119
119
|
*
|
|
120
120
|
* For more information, see [Motion
|
|
121
|
-
* API](https://docs.viam.com/
|
|
121
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#moveonglobe).
|
|
122
122
|
*
|
|
123
123
|
* @param destination - Destination for the component to move to, represented as a `GeoPoint`.
|
|
124
124
|
* @param componentName - The name of the component to move.
|
|
@@ -144,7 +144,7 @@ export interface Motion extends Resource {
|
|
|
144
144
|
* ```
|
|
145
145
|
*
|
|
146
146
|
* For more information, see [Motion
|
|
147
|
-
* API](https://docs.viam.com/
|
|
147
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#stopplan).
|
|
148
148
|
*
|
|
149
149
|
* @param componentName - The component to stop
|
|
150
150
|
*/
|
|
@@ -173,7 +173,7 @@ export interface Motion extends Resource {
|
|
|
173
173
|
* ```
|
|
174
174
|
*
|
|
175
175
|
* For more information, see [Motion
|
|
176
|
-
* API](https://docs.viam.com/
|
|
176
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#getplan).
|
|
177
177
|
*
|
|
178
178
|
* @param componentName - The component to query
|
|
179
179
|
* @param destinationFrame - The reference frame in which the component's `Pose` should be
|
|
@@ -201,7 +201,7 @@ export interface Motion extends Resource {
|
|
|
201
201
|
* ```
|
|
202
202
|
*
|
|
203
203
|
* For more information, see [Motion
|
|
204
|
-
* API](https://docs.viam.com/
|
|
204
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#listplanstatuses).
|
|
205
205
|
*
|
|
206
206
|
* @param onlyActivePlans - If true, the response will only return plans which are executing.
|
|
207
207
|
*/
|
|
@@ -222,7 +222,7 @@ export interface Motion extends Resource {
|
|
|
222
222
|
* ```
|
|
223
223
|
*
|
|
224
224
|
* For more information, see [Motion
|
|
225
|
-
* API](https://docs.viam.com/
|
|
225
|
+
* API](https://docs.viam.com/reference/apis/services/motion/#getpose).
|
|
226
226
|
*
|
|
227
227
|
* @param componentName - The component whose `Pose` is being requested.
|
|
228
228
|
* @param destinationFrame - The reference frame in which the component's `Pose` should be
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Struct, type JsonValue } from '@bufbuild/protobuf';
|
|
2
2
|
import type { CallOptions } from '@connectrpc/connect';
|
|
3
3
|
import { type RobotClient } from '../../robot';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Options } from '../../types';
|
|
5
5
|
import type { Navigation } from './navigation';
|
|
6
|
-
import type {
|
|
6
|
+
import type { NavigateRouteOptions, Plan, Position, Waypoint } from './types';
|
|
7
7
|
/**
|
|
8
8
|
* A gRPC-web client for a Navigation service.
|
|
9
9
|
*
|
|
@@ -15,15 +15,36 @@ export declare class NavigationClient implements Navigation {
|
|
|
15
15
|
private readonly options;
|
|
16
16
|
callOptions: CallOptions;
|
|
17
17
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
18
|
+
addLocation(locationName: string, position?: Position, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Location>;
|
|
19
|
+
getLocation(locationName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Location>;
|
|
20
|
+
listLocations(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Location[]>;
|
|
21
|
+
updateLocation(locationName: string, position?: Position, newName?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Location>;
|
|
22
|
+
deleteLocation(locationName: string, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
23
|
+
addRoute(routeName: string, waypoints: Waypoint[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Route>;
|
|
24
|
+
getRoute(routeName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Route>;
|
|
25
|
+
listRoutes(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Route[]>;
|
|
26
|
+
updateRoute(routeName: string, newName?: string, waypoints?: Waypoint[], extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Route>;
|
|
27
|
+
deleteRoute(routeName: string, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
28
|
+
addZone(zoneName: string, type: string, geometry: Struct, maxSpeed?: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Zone>;
|
|
29
|
+
getZone(zoneName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Zone>;
|
|
30
|
+
listZones(type?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Zone[]>;
|
|
31
|
+
updateZone(zoneName: string, type?: string, geometry?: Struct, maxSpeed?: number, newName?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Zone>;
|
|
32
|
+
deleteZone(zoneName: string, extra?: {}, callOptions?: CallOptions): Promise<void>;
|
|
33
|
+
navigateToLocation(locationName: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
34
|
+
navigateToPoint(destination: Position, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
35
|
+
navigateRoute({ routeName, waypoints, startIndex, startNearest, loop, wait, }: NavigateRouteOptions, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
36
|
+
planToPoint(destination: Position, start?: Position, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Plan>;
|
|
37
|
+
planToLocation(locationName: string, start?: Position, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Plan>;
|
|
38
|
+
executePlan(plan: Plan, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
39
|
+
goToLocation(locationName: string, wait?: boolean, linearMPerSec?: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
40
|
+
goToPoint(destination: Position, wait?: boolean, linearMPerSec?: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
41
|
+
suspend(reason?: string, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
42
|
+
resume(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
43
|
+
cancel(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
44
|
+
getPosition(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Position>;
|
|
45
|
+
getNavigationStatus(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Status>;
|
|
46
|
+
getProperties(callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").Properties>;
|
|
47
|
+
getCostmap(layer?: string, stride?: number, extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/service/navigation/v1/navigation_pb").GetCostmapResponse>;
|
|
27
48
|
getStatus(callOptions?: CallOptions): Promise<JsonValue>;
|
|
28
49
|
doCommand(command: Struct | Record<string, JsonValue>, callOptions?: CallOptions): Promise<JsonValue>;
|
|
29
50
|
}
|