@viamrobotics/sdk 0.48.0 → 0.49.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.
@@ -748,7 +748,7 @@ export declare class DataClient {
748
748
  * appropriate sensor.
749
749
  * @returns The binary data ID of the uploaded data
750
750
  */
751
- binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[]): Promise<string>;
751
+ binaryDataCaptureUpload(binaryData: Uint8Array, partId: string, componentType: string, componentName: string, methodName: string, fileExtension: string, dataRequestTimes: [Date, Date], tags?: string[], datasetIds?: string[]): Promise<string>;
752
752
  createFilter(options: FilterOptions): Filter;
753
753
  /**
754
754
  * Gets the most recent tabular data captured from the specified data source,
@@ -0,0 +1,19 @@
1
+ import { type JsonValue, Struct } from '@bufbuild/protobuf';
2
+ import type { CallOptions } from '@connectrpc/connect';
3
+ import type { RobotClient } from '../../robot';
4
+ import type { Options } from '../../types';
5
+ import type { PoseTracker } from './pose-tracker';
6
+ /**
7
+ * A gRPC-web client for the Generic component.
8
+ *
9
+ * @group Clients
10
+ */
11
+ export declare class PoseTrackerClient implements PoseTracker {
12
+ private client;
13
+ readonly name: string;
14
+ private readonly options;
15
+ callOptions: CallOptions;
16
+ constructor(client: RobotClient, name: string, options?: Options);
17
+ getGeometries(extra?: {}, callOptions?: CallOptions): Promise<import("../../gen/common/v1/common_pb").Geometry[]>;
18
+ doCommand(command: Struct, callOptions?: CallOptions): Promise<JsonValue>;
19
+ }
@@ -0,0 +1,25 @@
1
+ import type { Geometry } from '../../gen/common/v1/common_pb';
2
+ import type { Struct, Resource } from '../../types';
3
+ /** Represents a generic component. */
4
+ export interface PoseTracker extends Resource {
5
+ /**
6
+ * Get the geometries of the component in their current configuration.
7
+ *
8
+ * @example
9
+ *
10
+ * ```ts
11
+ * const generic = new VIAM.GenericComponentClient(
12
+ * machine,
13
+ * 'my_generic_component'
14
+ * );
15
+ *
16
+ * // Get the geometries of this component
17
+ * const geometries = await generic.getGeometries();
18
+ * console.log('Geometries:', geometries);
19
+ * ```
20
+ *
21
+ * For more information, see [Generic
22
+ * API](https://docs.viam.com/dev/reference/apis/components/generic/#getgeometries).
23
+ */
24
+ getGeometries: (extra?: Struct) => Promise<Geometry[]>;
25
+ }
@@ -0,0 +1,2 @@
1
+ export { PoseTrackerClient } from './pose-tracker/client';
2
+ export type { PoseTracker } from './pose-tracker/pose-tracker';
package/dist/main.d.ts CHANGED
@@ -203,6 +203,7 @@ export { SwitchClient, type Switch } from './components/switch';
203
203
  */
204
204
  export * as switchApi from './gen/component/switch/v1/switch_pb';
205
205
  export { GenericClient as GenericComponentClient, type Generic as GenericComponent, } from './components/generic';
206
+ export { PoseTrackerClient, type PoseTracker } from './components/posetracker';
206
207
  /**
207
208
  * Raw Protobuf interfaces for a Generic component.
208
209
  *