Skip to content

Commit 7397c29

Browse files
viambotgithub-actions[bot]
authored andcommitted
[WORKFLOW] AI update based on proto changes from commit 987dd70
1 parent a29bdea commit 7397c29

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/camera/camera.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type {
44
DistortionParameters,
55
IntrinsicParameters,
66
} from '../../gen/component/camera/v1/camera_pb';
7+
import type { Annotations } from '../../gen/app/data/v1/data_pb';
78
import type { Resource } from '../../types';
89
import type { Geometry } from '../../gen/common/v1/common_pb';
910

@@ -22,6 +23,7 @@ export interface NamedImage {
2223
sourceName: string;
2324
image: Uint8Array;
2425
mimeType: string;
26+
annotations?: Annotations;
2527
}
2628

2729
export interface ResponseMetadata {
@@ -145,4 +147,4 @@ export interface Camera extends Resource {
145147
* API](https://docs.viam.com/dev/reference/apis/components/camera/#getproperties).
146148
*/
147149
getProperties: () => Promise<Properties>;
148-
}
150+
}

src/components/camera/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type { Options } from '../../types';
1414
import { doCommandFromClient } from '../../utils';
1515
import type { Camera, MimeType, ResponseMetadata } from './camera';
1616
import { GetGeometriesRequest } from '../../gen/common/v1/common_pb';
17+
import { Annotations } from '../../gen/app/data/v1/data_pb';
1718

1819
const PointCloudPCD: MimeType = 'pointcloud/pcd';
1920

@@ -100,6 +101,7 @@ export class CameraClient implements Camera {
100101
sourceName: image.sourceName,
101102
image: image.image,
102103
mimeType: image.mimeType || formatToMimeType(image.format),
104+
annotations: image.annotations,
103105
}));
104106
const metadata: ResponseMetadata = {
105107
capturedAt: resp.responseMetadata?.capturedAt ?? new Timestamp(),
@@ -160,4 +162,4 @@ export class CameraClient implements Camera {
160162
callOptions
161163
);
162164
}
163-
}
165+
}

0 commit comments

Comments
 (0)