@viamrobotics/sdk 0.0.40-alpha.1 → 0.0.40-alpha.2
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 +4 -3
- package/dist/components/arm/Client.d.ts +4 -11
- package/dist/main.d.ts +19 -20
- package/dist/main.es.js +502 -452
- package/dist/main.umd.js +9 -9
- package/dist/services/motion/Client.d.ts +16 -0
- package/dist/services/motion/Motion.d.ts +51 -0
- package/dist/services/motion.d.ts +2 -0
- package/package.json +2 -1
- package/dist/components/gripper/Client.d.ts +0 -19
- package/dist/components/gripper/Gripper.d.ts +0 -12
- package/dist/components/gripper.d.ts +0 -2
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { JointPositions } from '../../gen/component/arm/v1/arm_pb';
|
|
2
|
-
import type { Extra
|
|
2
|
+
import type { Extra } from '../../types';
|
|
3
|
+
import { Pose } from '../../gen/common/v1/common_pb';
|
|
3
4
|
/** Represents a physical robot arm that exists in three-dimensional space. */
|
|
4
5
|
export interface Arm {
|
|
5
6
|
/** Get the position of the end of the arm expressed as a pose */
|
|
6
|
-
getEndPosition: (extra?: Extra) => Promise<Pose>;
|
|
7
|
+
getEndPosition: (extra?: Extra) => Promise<Pose.AsObject>;
|
|
7
8
|
/**
|
|
8
9
|
* Move the end of the arm to the pose.
|
|
9
10
|
*
|
|
10
11
|
* @param pose - The destination pose for the arm.
|
|
11
12
|
*/
|
|
12
|
-
moveToPosition: (pose: Pose, extra?: Extra) => Promise<void>;
|
|
13
|
+
moveToPosition: (pose: Pose.AsObject, extra?: Extra) => Promise<void>;
|
|
13
14
|
/**
|
|
14
15
|
* Move each joint of the arm based on the angles on the joint poisitons.
|
|
15
16
|
* parameter
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { RobotClient } from '../../robot';
|
|
2
2
|
import pb from '../../gen/component/arm/v1/arm_pb';
|
|
3
|
-
import type { Options
|
|
3
|
+
import type { Options } from '../../types';
|
|
4
4
|
import type { Arm } from './Arm';
|
|
5
|
+
import { Pose } from '../../gen/common/v1/common_pb';
|
|
5
6
|
/**
|
|
6
7
|
* A gRPC-web client for the Arm component.
|
|
7
8
|
*
|
|
@@ -13,16 +14,8 @@ export declare class ArmClient implements Arm {
|
|
|
13
14
|
private readonly options;
|
|
14
15
|
constructor(client: RobotClient, name: string, options?: Options);
|
|
15
16
|
private get ArmService();
|
|
16
|
-
getEndPosition(extra?: {}): Promise<
|
|
17
|
-
|
|
18
|
-
y: number;
|
|
19
|
-
z: number;
|
|
20
|
-
ox: number;
|
|
21
|
-
oy: number;
|
|
22
|
-
oz: number;
|
|
23
|
-
theta: number;
|
|
24
|
-
}>;
|
|
25
|
-
moveToPosition(pose: Pose, extra?: {}): Promise<void>;
|
|
17
|
+
getEndPosition(extra?: {}): Promise<Pose.AsObject>;
|
|
18
|
+
moveToPosition(pose: Pose.AsObject, extra?: {}): Promise<void>;
|
|
26
19
|
moveToJointPositions(jointPositionsList: number[], extra?: {}): Promise<void>;
|
|
27
20
|
getJointPositions(extra?: {}): Promise<pb.JointPositions>;
|
|
28
21
|
stop(extra?: {}): Promise<void>;
|
package/dist/main.d.ts
CHANGED
|
@@ -192,18 +192,6 @@ export { default as genericApi } from './gen/component/generic/v1/generic_pb';
|
|
|
192
192
|
*
|
|
193
193
|
* Generated with https://github.com/improbable-eng/grpc-web
|
|
194
194
|
*
|
|
195
|
-
*
|
|
196
|
-
* @deprecated Use {@link GripperClient} instead.
|
|
197
|
-
* @alpha
|
|
198
|
-
* @group Raw Protobufs
|
|
199
|
-
*/
|
|
200
|
-
export { default as gripperApi } from './gen/component/gripper/v1/gripper_pb';
|
|
201
|
-
export { type Gripper, GripperClient } from './components/gripper';
|
|
202
|
-
/**
|
|
203
|
-
* Raw Protobuf interfaces for an InputController component.
|
|
204
|
-
*
|
|
205
|
-
* Generated with https://github.com/improbable-eng/grpc-web
|
|
206
|
-
*
|
|
207
195
|
* @example
|
|
208
196
|
*
|
|
209
197
|
* ```ts
|
|
@@ -211,10 +199,10 @@ export { type Gripper, GripperClient } from './components/gripper';
|
|
|
211
199
|
*
|
|
212
200
|
* const client = {}; // replace with a connected robot client
|
|
213
201
|
*
|
|
214
|
-
* const request = new
|
|
215
|
-
* request.setName('
|
|
202
|
+
* const request = new gripperApi.IsMovingRequest();
|
|
203
|
+
* request.setName('mygripper');
|
|
216
204
|
*
|
|
217
|
-
* client.
|
|
205
|
+
* client.gripperService.isMoving(
|
|
218
206
|
* request,
|
|
219
207
|
* new grpc.Metadata(),
|
|
220
208
|
* (error, response) => {
|
|
@@ -226,9 +214,9 @@ export { type Gripper, GripperClient } from './components/gripper';
|
|
|
226
214
|
* @alpha
|
|
227
215
|
* @group Raw Protobufs
|
|
228
216
|
*/
|
|
229
|
-
export { default as
|
|
217
|
+
export { default as gripperApi } from './gen/component/gripper/v1/gripper_pb';
|
|
230
218
|
/**
|
|
231
|
-
* Raw Protobuf interfaces for
|
|
219
|
+
* Raw Protobuf interfaces for an InputController component.
|
|
232
220
|
*
|
|
233
221
|
* Generated with https://github.com/improbable-eng/grpc-web
|
|
234
222
|
*
|
|
@@ -239,10 +227,10 @@ export { default as inputControllerApi } from './gen/component/inputcontroller/v
|
|
|
239
227
|
*
|
|
240
228
|
* const client = {}; // replace with a connected robot client
|
|
241
229
|
*
|
|
242
|
-
* const request = new
|
|
243
|
-
* request.setName('
|
|
230
|
+
* const request = new inputControllerApi.GetControlsRequest();
|
|
231
|
+
* request.setName('myinput controller');
|
|
244
232
|
*
|
|
245
|
-
* client.
|
|
233
|
+
* client.inputControllerService.getControls(
|
|
246
234
|
* request,
|
|
247
235
|
* new grpc.Metadata(),
|
|
248
236
|
* (error, response) => {
|
|
@@ -254,7 +242,18 @@ export { default as inputControllerApi } from './gen/component/inputcontroller/v
|
|
|
254
242
|
* @alpha
|
|
255
243
|
* @group Raw Protobufs
|
|
256
244
|
*/
|
|
245
|
+
export { default as inputControllerApi } from './gen/component/inputcontroller/v1/input_controller_pb';
|
|
246
|
+
/**
|
|
247
|
+
* Raw Protobuf interfaces for a Motion service.
|
|
248
|
+
*
|
|
249
|
+
* Generated with https://github.com/improbable-eng/grpc-web
|
|
250
|
+
*
|
|
251
|
+
* @deprecated Use {@link MotionClient} instead.
|
|
252
|
+
* @alpha
|
|
253
|
+
* @group Raw Protobufs
|
|
254
|
+
*/
|
|
257
255
|
export { default as motionApi } from './gen/service/motion/v1/motion_pb';
|
|
256
|
+
export { type Motion, MotionClient } from './services/motion';
|
|
258
257
|
/**
|
|
259
258
|
* Raw Protobuf interfaces for a Navigation service.
|
|
260
259
|
*
|