@viamrobotics/sdk 0.2.1-next.0 → 0.2.1-rc.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/robot/client.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Credentials } from '@viamrobotics/rpc/src/dial';
|
|
2
|
-
import type { Duration } from 'google-protobuf/google/protobuf/duration_pb';
|
|
3
2
|
import type { grpc } from '@improbable-eng/grpc-web';
|
|
4
3
|
import proto from '../gen/robot/v1/robot_pb';
|
|
5
4
|
import type { PoseInFrame, ResourceName, Transform } from '../gen/common/v1/common_pb';
|
|
@@ -103,7 +102,7 @@ export declare class RobotClient implements Robot {
|
|
|
103
102
|
discoverComponents(queries: proto.DiscoveryQuery[]): Promise<proto.Discovery[]>;
|
|
104
103
|
resourceNames(): Promise<ResourceName.AsObject[]>;
|
|
105
104
|
resourceRPCSubtypes(): Promise<proto.ResourceRPCSubtype[]>;
|
|
106
|
-
getStatus(resourceNames
|
|
107
|
-
streamStatus(resourceNames
|
|
105
|
+
getStatus(resourceNames?: ResourceName.AsObject[]): Promise<proto.Status[]>;
|
|
106
|
+
streamStatus(resourceNames?: ResourceName.AsObject[], durationMs?: number): RobotStatusStream;
|
|
108
107
|
}
|
|
109
108
|
export {};
|
package/dist/robot/robot.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Duration } from 'google-protobuf/google/protobuf/duration_pb';
|
|
2
1
|
import type { PoseInFrame, ResourceName, Transform } from '../gen/common/v1/common_pb';
|
|
3
2
|
import type { StructType } from '../types';
|
|
4
3
|
import type proto from '../gen/robot/v1/robot_pb';
|
|
@@ -105,15 +104,16 @@ export interface Robot {
|
|
|
105
104
|
* @group Status
|
|
106
105
|
* @alpha
|
|
107
106
|
*/
|
|
108
|
-
getStatus(resourceNames
|
|
107
|
+
getStatus(resourceNames?: ResourceName.AsObject[]): Promise<proto.Status[]>;
|
|
109
108
|
/**
|
|
110
109
|
* Periodically receive the status of all statuses requested. An empty request
|
|
111
110
|
* signifies all resources.
|
|
112
111
|
*
|
|
113
112
|
* @param resourceNames - The list of resources for which to receive statuses.
|
|
114
|
-
*
|
|
113
|
+
* Default is [].
|
|
114
|
+
* @param duration - How often to send a new status. Default is 0.5 seconds.
|
|
115
115
|
* @group Status
|
|
116
116
|
* @alpha
|
|
117
117
|
*/
|
|
118
|
-
streamStatus(resourceNames
|
|
118
|
+
streamStatus(resourceNames?: ResourceName.AsObject[], durationMs?: number): RobotStatusStream;
|
|
119
119
|
}
|