Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vision messages #35

Merged
merged 4 commits into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions vision.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ enum DetectedObjectType {
}

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

message DetectedObject {
Expand All @@ -25,11 +25,14 @@ message DetectedObject {
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;
}