Skip to content

Commit

Permalink
Fix vision messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Gold872 committed Jan 24, 2025
1 parent aa54e55 commit 3475b17
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions vision.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ syntax = "proto3";

import "geometry.proto";
import "video.proto";
import "version.proto";

enum DetectedObjectType {
DETECTION_TYPE_UNDEFINED = 0;
Expand All @@ -13,25 +14,33 @@ enum DetectedObjectType {
}

message PnpResult {
Pose3d pose = 1;
double error = 2;
Pose3d cameraToTarget = 1;
double reprojectionError = 2;
}

message DetectedObject {
// What was detected
DetectedObjectType objectType = 1;
int32 arucoTagId = 2;
CameraName camera = 3;

// Where it was detected
float xPosition = 4; // -1 to +1 (left to right)
float relativeSize = 5; // 0 to 1 (percent of frame)

// Experimental: Use pinhole model to find the object's position
float yaw = 6;
float pitch = 7;
int32 centerX = 6;
int32 centerY = 7;

// Experimental: Use pinhole camera model to find the object's position
float yaw = 8;
float pitch = 9;

// Experimental: Use PnP to determine the 3D pose
PnpResult bestPnpResult = 8;
PnpResult alternatePnpResult = 9;
PnpResult bestPnpResult = 10;
PnpResult alternatePnpResult = 11;
}

message VisionResult {
Version version = 1;
CameraName name = 2;
repeated DetectedObject objects = 3;
}

0 comments on commit 3475b17

Please sign in to comment.