Skip to content

Commit b7958ec

Browse files
committed
feat: Add ProbabilisticKeyPoint3D and ProbabilisticKeyLine3D
1 parent 2bcb53d commit b7958ec

File tree

6 files changed

+555
-48
lines changed

6 files changed

+555
-48
lines changed

dgp/proto/annotations.proto

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,22 @@ message KeyPoint3D {
252252
float z = 3;
253253
}
254254

255+
// 3D point with uncertainty information.
256+
message ProbabilisticKeyPoint3D {
257+
// (x, y, z) point (in 3D Cartesian coordinates).
258+
float x = 1;
259+
float y = 2;
260+
float z = 3;
261+
262+
// The correlation terms in the 3x3 covariance matrix.
263+
float var_x = 4;
264+
float cov_xy = 5;
265+
float cov_xz = 6;
266+
float var_y = 7;
267+
float cov_yz = 8;
268+
float var_z = 9;
269+
}
270+
255271
// 3D point annotation.
256272
message KeyPoint3DAnnotation {
257273
// Class identifier (should be in [0, num_classes - 1]),
@@ -290,6 +306,24 @@ message KeyLine3DAnnotation{
290306
string key = 4;
291307
}
292308

309+
message ProbabilisticKeyLine3DAnnotation {
310+
// Class identifier (should be in [0, num_classes - 1]),
311+
// where num_classes is the total number of classes in your ontology.
312+
uint32 class_id = 1;
313+
314+
// 3D line.
315+
repeated ProbabilisticKeyPoint3D vertices = 2;
316+
317+
// A map of attribute names to their values.
318+
// Add only key/value pairs that are stored in a project document accessible
319+
// to project contributors.
320+
map<string, string> attributes = 3;
321+
322+
// An identifier key. Used to link with other annotations, which specify
323+
// this key in their instance to link to corresponding KeyLine3DAnnotation.
324+
string key = 4;
325+
}
326+
293327
message PolygonPoint3D {
294328
// (x, y, z) point (in 3D Cartesian coordinates).
295329
float x = 1;
@@ -406,6 +440,10 @@ message KeyLine3DAnnotations {
406440
repeated KeyLine3DAnnotation annotations = 1;
407441
}
408442

443+
message ProbabilisticKeyLine3DAnnotations {
444+
repeated ProbabilisticKeyLine3DAnnotation annotations = 1;
445+
}
446+
409447
// List of Polygon3DAnnotation.
410448
message Polygon3DAnnotations {
411449
repeated Polygon3DAnnotation annotations = 1;

0 commit comments

Comments
 (0)