@viamrobotics/sdk 0.61.1 → 0.62.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/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Struct, type JsonValue, type PartialMessage } from '@bufbuild/protobuf';
2
2
  import type { CallOptions } from '@connectrpc/connect';
3
- import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, Geometry } from './gen/common/v1/common_pb';
3
+ import { DoCommandRequest, DoCommandResponse, GetKinematicsRequest, GetKinematicsResponse, GetGeometriesRequest, GetGeometriesResponse, Geometry, Mesh } from './gen/common/v1/common_pb';
4
4
  import type { Options, Vector3 } from './types';
5
5
  import type { Frame } from './gen/app/v1/robot_pb';
6
6
  export declare const clientHeaders: Headers;
@@ -25,9 +25,16 @@ export interface KinematicsData {
25
25
  }[];
26
26
  links: Frame[];
27
27
  }
28
+ /** Newer kinematics return shape that includes meshes */
29
+ export interface GetKinematicsResultWithMeshes {
30
+ kinematicsData: KinematicsData;
31
+ meshesByUrdfFilepath: Record<string, Mesh>;
32
+ }
33
+ /** Shared type for kinematics return value (legacy or with meshes) */
34
+ export type GetKinematicsResult = KinematicsData | GetKinematicsResultWithMeshes;
28
35
  type getKinematics = (request: PartialMessage<GetKinematicsRequest>, options?: CallOptions) => Promise<GetKinematicsResponse>;
29
36
  /** Get kinematics information using a resource client */
30
- export declare const getKinematicsFromClient: (getKinematicsMethod: getKinematics, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<KinematicsData>;
37
+ export declare const getKinematicsFromClient: (getKinematicsMethod: getKinematics, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<GetKinematicsResult>;
31
38
  type getGeometries = (request: PartialMessage<GetGeometriesRequest>, options?: CallOptions) => Promise<GetGeometriesResponse>;
32
39
  /** Get geometries information using a resource client */
33
40
  export declare const getGeometriesFromClient: (getGeometriesMethod: getGeometries, name: string, extra?: Struct, callOptions?: CallOptions) => Promise<Geometry[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viamrobotics/sdk",
3
- "version": "0.61.1",
3
+ "version": "0.62.0",
4
4
  "description": "",
5
5
  "main": "./dist/main.umd.js",
6
6
  "module": "./dist/main.es.js",