@viamrobotics/sdk 0.54.0 → 0.55.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/components/arm/arm.d.ts +13 -1
- package/dist/components/arm/client.d.ts +2 -0
- package/dist/main.es.js +822 -815
- package/dist/main.umd.js +7 -7
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PlainMessage, Struct } from '@bufbuild/protobuf';
|
|
2
2
|
import type { Pose, Resource, Vector3 } from '../../types';
|
|
3
3
|
import * as armApi from '../../gen/component/arm/v1/arm_pb';
|
|
4
|
-
import type { Geometry } from '../../gen/common/v1/common_pb';
|
|
4
|
+
import type { Geometry, Mesh } from '../../gen/common/v1/common_pb';
|
|
5
5
|
import type { Frame } from '../../gen/app/v1/robot_pb';
|
|
6
6
|
export type ArmJointPositions = PlainMessage<armApi.JointPositions>;
|
|
7
7
|
export declare const ArmJointPositions: typeof armApi.JointPositions;
|
|
@@ -36,6 +36,18 @@ export interface Arm extends Resource {
|
|
|
36
36
|
* API](https://docs.viam.com/dev/reference/apis/components/arm/#getgeometries).
|
|
37
37
|
*/
|
|
38
38
|
getGeometries: (extra?: Struct) => Promise<Geometry[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Get the 3D models of the component
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
*
|
|
44
|
+
* ```ts
|
|
45
|
+
* const arm = new VIAM.ArmClient(machine, 'my_arm');
|
|
46
|
+
* const models = await arm.get3DModels();
|
|
47
|
+
* console.log(models);
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
get3DModels: (extra?: Struct) => Promise<Record<string, Mesh>>;
|
|
39
51
|
/**
|
|
40
52
|
* Get the kinematics information associated with the arm.
|
|
41
53
|
*
|
|
@@ -4,6 +4,7 @@ import { JointPositions } from '../../gen/component/arm/v1/arm_pb';
|
|
|
4
4
|
import type { RobotClient } from '../../robot';
|
|
5
5
|
import type { Options, Pose } from '../../types';
|
|
6
6
|
import type { Arm } from './arm';
|
|
7
|
+
import { Mesh } from '../../gen/common/v1/common_pb';
|
|
7
8
|
/**
|
|
8
9
|
* A gRPC-web client for the Arm component.
|
|
9
10
|
*
|
|
@@ -17,6 +18,7 @@ export declare class ArmClient implements Arm {
|
|
|
17
18
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
18
19
|
getEndPosition(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Pose>;
|
|
19
20
|
getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
|
|
21
|
+
get3DModels(extra?: {}, callOptions?: CallOptions): Promise<Record<string, Mesh>>;
|
|
20
22
|
getKinematics(extra?: {}, callOptions?: CallOptions): Promise<{
|
|
21
23
|
name: string;
|
|
22
24
|
kinematic_param_type: "SVA" | "URDF" | "UNSPECIFIED";
|