Skip to content

Commit 9269686

Browse files
committed
wip
1 parent 18ac7a6 commit 9269686

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

proto/viam/component/camera/v1/camera.proto

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,25 @@ message ReadingsRequest {
140140
}
141141

142142
message ReadingsResponse {
143-
// timestamp all sensor readings were taken
144-
google.protobuf.Timestamp captured_at = 1;
145143
// map of camera sensor names to camera sensor readings returned from the
146144
// camera at the captured_at time
147-
map<string, Reading> readings = 2;
145+
// if there is only a single reading a key of empty string may be used to
146+
// represent an unlabeled sensor reading
147+
map<string, Reading> readings = 1;
148+
149+
// contains timestamp data
150+
common.v1.ResponseMetadata response_metadata = 84260;
148151
}
149152

150153
message Reading {
151-
// image_metadata is set if data contains an image, mutually exclusive with
154+
// image_metadata is set if data contains an image, mutually exclusive with
152155
// all other _metadata fields
153156
ImageMetadata image_metadata = 1;
154-
// bitmap_metadata is set if data contains an bitmap, mutually exclusive with
157+
// bitmap_metadata is set if data contains an bitmap, mutually exclusive with
155158
// all other _metadata fields
156159
BitmapMetadata bitmap_metadata = 2;
157-
// pointcloud_metadata is set if data contains an pointcloud, mutually exclusive with
158-
// all other _metadata fields
160+
// pointcloud_metadata is set if data contains an pointcloud, mutually
161+
// exclusive with all other _metadata fields
159162
PointCloudMetadata pointcloud_metadata = 3;
160163

161164
// the reading's data
@@ -164,14 +167,14 @@ message Reading {
164167

165168
enum ImageType {
166169
IMAGE_TYPE_UNSPECIFIED = 0;
167-
IMAGE_TYPE_IMAGE_JPEG = 1;
168-
IMAGE_TYPE_IMAGE_PNG = 2;
170+
IMAGE_TYPE_JPEG = 1;
171+
IMAGE_TYPE_PNG = 2;
169172
}
170173

171174
enum BitmapType {
172175
BITMAP_TYPE_UNSPECIFIED = 0;
173-
BITMAP_TYPE_BITMAP_VIAM_RAW_RGBA = 1;
174-
BITMAP_TYPE_BITMAP_VIAM_RAW_DEPTH = 2;
176+
BITMAP_TYPE_VIAM_RAW_RGBA = 1;
177+
BITMAP_TYPE_VIAM_RAW_DEPTH = 2;
175178
}
176179

177180
enum PointCloudType {
@@ -191,16 +194,16 @@ message Dimensions {
191194
uint32 y = 3;
192195
}
193196

194-
message BitmapMetadata {
197+
message BitmapMetadata {
195198
// type of the bitmap
196-
BitmapType type = 1;
199+
BitmapType type = 1;
197200
// pixel dimensions of the bitmap
198201
Dimensions pixel_dimensions = 2;
199202
}
200203

201-
message PointCloudMetadata {
204+
message PointCloudMetadata {
202205
// type of the pointcloud
203-
PointCloudType type = 1;
206+
PointCloudType type = 1;
204207
}
205208

206209
message GetPropertiesRequest {

0 commit comments

Comments
 (0)