File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff 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' ;
78import type { Resource } from '../../types' ;
89import 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
2729export 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+ }
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import type { Options } from '../../types';
1414import { doCommandFromClient } from '../../utils' ;
1515import type { Camera , MimeType , ResponseMetadata } from './camera' ;
1616import { GetGeometriesRequest } from '../../gen/common/v1/common_pb' ;
17+ import { Annotations } from '../../gen/app/data/v1/data_pb' ;
1718
1819const 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+ }
You can’t perform that action at this time.
0 commit comments