@viamrobotics/sdk 0.9.3 → 0.10.0-rc.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.
@@ -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<boolean>;
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<boolean>;
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()` call.
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
- * `move_on_globe_new()` call to move a component. The plan history for
62
- * executions before the most recent can be requested by providing an
63
- * ExecutionID in the request. Returns a result if both of the following
64
- * conditions are met:
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
- * - The execution (call to `move_on_globe_new()`) is still executing **or**
67
- * changed state within the last 24 hours
68
- * - The robot has not reinitialized Plans never change. Replans always create
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
- * Get the current location and orientation of a component.
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
- * @param componentName - The component whose `Pose` is being requested.
84
- * @param destinationFrame - The reference frame in which the component's
85
- * `Pose` should be provided, if unset this defaults to the "world"
86
- * reference frame.
87
- * @param supplementalTransforms - `Pose` information on any additional
88
- * reference frames that are needed to compute the component's `Pose`.
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.9.3",
3
+ "version": "0.10.0-rc.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",