@viamrobotics/sdk 0.0.40-alpha.1 → 0.0.40
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/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { RobotClient } from '../../robot';
|
|
2
|
-
import type { Options } from '../../types';
|
|
3
|
-
import type { Gripper } from './Gripper';
|
|
4
|
-
/**
|
|
5
|
-
* A gRPC-web client for the Gripper component.
|
|
6
|
-
*
|
|
7
|
-
* @group Clients
|
|
8
|
-
*/
|
|
9
|
-
export declare class GripperClient implements Gripper {
|
|
10
|
-
private client;
|
|
11
|
-
private readonly name;
|
|
12
|
-
private readonly options;
|
|
13
|
-
constructor(client: RobotClient, name: string, options?: Options);
|
|
14
|
-
private get GripperService();
|
|
15
|
-
open(extra?: {}): Promise<void>;
|
|
16
|
-
grab(extra?: {}): Promise<void>;
|
|
17
|
-
stop(extra?: {}): Promise<void>;
|
|
18
|
-
isMoving(): Promise<boolean>;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Extra } from '../../types';
|
|
2
|
-
/** Represents a physical robotic gripper. */
|
|
3
|
-
export interface Gripper {
|
|
4
|
-
/** Open a gripper of the underlying robot. */
|
|
5
|
-
open: (extra?: Extra) => Promise<void>;
|
|
6
|
-
/** Request a gripper of the underlying robot to grab. */
|
|
7
|
-
grab: (extra?: Extra) => Promise<void>;
|
|
8
|
-
/** Stop a robot's gripper. */
|
|
9
|
-
stop: (extra?: Extra) => Promise<void>;
|
|
10
|
-
/** Report if a component is in motion. */
|
|
11
|
-
isMoving: () => Promise<boolean>;
|
|
12
|
-
}
|