@viamrobotics/sdk 0.8.0 → 0.8.1-next.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.
@@ -21,5 +21,6 @@ export declare class NavigationClient implements Navigation {
21
21
  addWayPoint(location: GeoPoint, extra?: {}): Promise<void>;
22
22
  removeWayPoint(id: string, extra?: {}): Promise<void>;
23
23
  getObstacles(extra?: {}): Promise<import("../../gen/common/v1/common_pb").GeoObstacle.AsObject[]>;
24
+ getPaths(extra?: {}): Promise<pb.Path.AsObject[]>;
24
25
  doCommand(command: StructType): Promise<StructType>;
25
26
  }
@@ -1,5 +1,5 @@
1
1
  import type { GeoObstacle, GeoPoint, Resource, StructType } from '../../types';
2
- import type { ModeMap, Waypoint, NavigationPosition } from './types';
2
+ import type { ModeMap, Waypoint, NavigationPosition, Path } from './types';
3
3
  /**
4
4
  * A service that uses GPS to automatically navigate a robot to user defined
5
5
  * endpoints.
@@ -33,4 +33,6 @@ export interface Navigation extends Resource {
33
33
  removeWayPoint: (id: string, extra?: StructType) => Promise<void>;
34
34
  /** Get a list of obstacles. */
35
35
  getObstacles: (extra?: StructType) => Promise<GeoObstacle[]>;
36
+ /** Gets the list of paths known to the navigation service. */
37
+ getPaths: (extra?: StructType) => Promise<Path[]>;
36
38
  }
@@ -2,3 +2,4 @@ import pb from '../../gen/service/navigation/v1/navigation_pb';
2
2
  export type ModeMap = pb.ModeMap;
3
3
  export type Waypoint = pb.Waypoint.AsObject;
4
4
  export type NavigationPosition = pb.GetLocationResponse.AsObject;
5
+ export type Path = pb.Path.AsObject;
@@ -1,3 +1,3 @@
1
1
  export type { Navigation } from './navigation/navigation';
2
- export type { ModeMap, Waypoint, NavigationPosition } from './navigation/types';
2
+ export type { ModeMap, Waypoint, NavigationPosition, Path, } from './navigation/types';
3
3
  export { NavigationClient } from './navigation/client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.8.1-next.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",