@viamrobotics/sdk 0.9.3 → 0.10.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/gen/app/agent/v1/agent_pb.d.ts +13 -0
- package/dist/gen/app/v1/app_pb.d.ts +20 -0
- package/dist/gen/component/movementsensor/v1/movementsensor_pb.d.ts +3 -17
- package/dist/gen/service/generic/v1/generic_pb.d.ts +7 -0
- package/dist/gen/service/generic/v1/generic_pb_service.d.ts +64 -0
- package/dist/gen/service/motion/v1/motion_pb.d.ts +9 -3
- package/dist/gen/service/slam/v1/slam_pb.d.ts +0 -43
- package/dist/gen/service/slam/v1/slam_pb_service.d.ts +0 -19
- package/dist/main.es.js +289 -404
- package/dist/main.umd.js +2 -2
- package/dist/services/motion/client.d.ts +1 -1
- package/dist/services/motion/motion.d.ts +32 -20
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export declare class MotionClient implements Motion {
|
|
|
15
15
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
16
16
|
private get service();
|
|
17
17
|
move(destination: PoseInFrame, componentName: ResourceName, worldState?: WorldState, constraints?: Constraints, extra?: {}): Promise<boolean>;
|
|
18
|
-
moveOnMap(destination: Pose, componentName: ResourceName, slamServiceName: ResourceName, extra?: {}): Promise<
|
|
18
|
+
moveOnMap(destination: Pose, componentName: ResourceName, slamServiceName: ResourceName, motionConfig?: MotionConfiguration, extra?: {}): Promise<string>;
|
|
19
19
|
moveOnGlobe(destination: GeoPoint, componentName: ResourceName, movementSensorName: ResourceName, heading?: number, obstaclesList?: GeoObstacle[], motionConfig?: MotionConfiguration, extra?: {}): Promise<string>;
|
|
20
20
|
stopPlan(componentName: ResourceName, extra?: {}): Promise<null>;
|
|
21
21
|
getPlan(componentName: ResourceName, lastPlanOnly?: boolean, executionId?: string, extra?: {}): Promise<pb.GetPlanResponse.AsObject>;
|
|
@@ -20,7 +20,13 @@ export interface Motion extends Resource {
|
|
|
20
20
|
*/
|
|
21
21
|
move: (destination: PoseInFrame, componentName: ResourceName, worldState?: WorldState, constraints?: Constraints, extra?: StructType) => Promise<boolean>;
|
|
22
22
|
/**
|
|
23
|
-
* Move a component to a `Pose` in respect to the origin of the SLAM map
|
|
23
|
+
* Move a component to a `Pose` in respect to the origin of the SLAM map,
|
|
24
|
+
* using a `SLAM` service to check the location. moveOnMap()`is non blocking,
|
|
25
|
+
* meaning the motion service will move the component to the destination Pose
|
|
26
|
+
* after`moveOnMap()`returns. Each successful`moveOnMap()`call retuns a unique
|
|
27
|
+
* ExectionID which you can use to identify all plans generated durring
|
|
28
|
+
* the`moveOnMap()`call. You can monitor the progress of the`moveOnMap()`call
|
|
29
|
+
* by querying`getPlan()`and`listPlanStatuses()`.
|
|
24
30
|
*
|
|
25
31
|
* @param destination - Specify a destination to, which can be any `Pose` with
|
|
26
32
|
* respect to the SLAM map's origin.
|
|
@@ -28,8 +34,9 @@ export interface Motion extends Resource {
|
|
|
28
34
|
* destination.
|
|
29
35
|
* @param slamServiceName - Name of the `SLAM` service from which the SLAM map
|
|
30
36
|
* is requested
|
|
37
|
+
* @param motionConfiguration - Optional motion configuration options.
|
|
31
38
|
*/
|
|
32
|
-
moveOnMap: (destination: Pose, componentName: ResourceName, slamServiceName: ResourceName, extra?: StructType) => Promise<
|
|
39
|
+
moveOnMap: (destination: Pose, componentName: ResourceName, slamServiceName: ResourceName, motionConfiguration?: MotionConfiguration, extra?: StructType) => Promise<string>;
|
|
33
40
|
/**
|
|
34
41
|
* Move a component to a specific latitude and longitude, using a
|
|
35
42
|
* `MovementSensor` to check the location. `moveOnGlobe()` is non blocking,
|
|
@@ -51,23 +58,25 @@ export interface Motion extends Resource {
|
|
|
51
58
|
*/
|
|
52
59
|
moveOnGlobe: (destination: GeoPoint, componentName: ResourceName, movementSensorName: ResourceName, heading?: number, obstaclesList?: GeoObstacle[], motionConfiguration?: MotionConfiguration, extra?: StructType) => Promise<string>;
|
|
53
60
|
/**
|
|
54
|
-
* Stop a component being moved by an in progress `moveOnGlobe()`
|
|
61
|
+
* Stop a component being moved by an in progress `moveOnGlobe()` or
|
|
62
|
+
* `moveOnMap()` call.
|
|
55
63
|
*
|
|
56
64
|
* @param componentName - The component to stop
|
|
57
65
|
*/
|
|
58
66
|
stopPlan: (componentName: ResourceName, extra?: StructType) => Promise<null>;
|
|
59
67
|
/**
|
|
60
|
-
* By default: returns the plan history of the most recent
|
|
61
|
-
* `
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
68
|
+
* By default: returns the plan history of the most recent `moveOnGlobe()` or
|
|
69
|
+
* `moveOnMap()` call to move a component. The plan history for executions
|
|
70
|
+
* before the most recent can be requested by providing an ExecutionID in the
|
|
71
|
+
* request. Returns a result if both of the following conditions are met:
|
|
72
|
+
*
|
|
73
|
+
* - The execution (call to `moveOnGlobe()` or `moveOnMap()`) is still executing
|
|
74
|
+
* **or** changed state within the last 24 hours
|
|
75
|
+
* - The robot has not reinitialized
|
|
65
76
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* new plans. Replans share the ExecutionID of the previously executing
|
|
70
|
-
* plan. All repeated fields are in time ascending order.
|
|
77
|
+
* Plans never change. Replans always create new plans. Replans share the
|
|
78
|
+
* ExecutionID of the previously executing plan. All repeated fields are in
|
|
79
|
+
* chronological order.
|
|
71
80
|
*
|
|
72
81
|
* @param componentName - The component to query
|
|
73
82
|
* @param destinationFrame - The reference frame in which the component's
|
|
@@ -78,14 +87,17 @@ export interface Motion extends Resource {
|
|
|
78
87
|
*/
|
|
79
88
|
getPlan: (componentName: ResourceName, lastPlanOnly?: boolean, executionId?: string, extra?: StructType) => Promise<GetPlanResponse>;
|
|
80
89
|
/**
|
|
81
|
-
*
|
|
90
|
+
* Returns the statuses of plans created by MoveOnGlobe calls that meet at
|
|
91
|
+
* least one of the following conditions since the motion service
|
|
92
|
+
* initialized:
|
|
82
93
|
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
94
|
+
* - The plan’s status is in progress
|
|
95
|
+
* - The plan’s status changed state within the last 24 hours
|
|
96
|
+
*
|
|
97
|
+
* All repeated fields are in chronological order.
|
|
98
|
+
*
|
|
99
|
+
* @param onlyActivePlans - If true, the response will only return plans which
|
|
100
|
+
* are executing.
|
|
89
101
|
*/
|
|
90
102
|
listPlanStatuses: (onlyActivePlans?: boolean, extra?: StructType) => Promise<ListPlanStatusesResponse>;
|
|
91
103
|
/**
|