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

Better PV Extrinsics #99

Open
nhahn opened this issue Apr 9, 2024 · 1 comment
Open

Better PV Extrinsics #99

nhahn opened this issue Apr 9, 2024 · 1 comment

Comments

@nhahn
Copy link

nhahn commented Apr 9, 2024

For the PV calibration -- there is an alternative that can be used to get the extrinsics from the Research Mode Rignode to the PV camera. By taking the RM Rignode locator and then locating that in the PV coordinate system, we get the consistent, correct extrinsics. This code solves that problem, and could be included in the calibration information for the PV, rather than having to run the separate calibration script.

static void PV_OnVideoFrameArrived_Intrinsics(MediaFrameReader const& sender, MediaFrameArrivedEventArgs const& args)
.....  
 GUID nodeId = ResearchMode_GetRigNodeId();
 SpatialLocator g_locator = SpatialGraphInteropPreview::CreateLocatorForNode(nodeId);
 int64_t timestamp = frame.SystemRelativeTime().Value().count();
 float4x4 extrinsics = Locator_Locate(QPCTimestampToPerceptionTimestamp(timestamp), Locator_GetLocator(), frame.CoordinateSystem());

Thanks for the great library!

@jdibenes
Copy link
Owner

That is very cool.
Thanks for sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants