ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.13k stars 1.28k forks source link

How to access the transformation matrix between the raw world coordinate system and the calibrated coordinate system #617

Open skriabineSop opened 7 years ago

skriabineSop commented 7 years ago

Hi I would like to set manually the position of a fake controller, using the api. However it seems that the coordinates I entered are by default expressed in the raw world coordinate system that seems to be centered on one of the lighthouse. Is there a way to access the transformation matrix between this raw coordinate system and the one set during the calibration of the vive system (headset on the floor) ?

Thanks

TTimo commented 7 years ago

I think GetRawZeroPoseToStandingAbsoluteTrackingPose in IVRSystem does what you are looking for. Otherwise you could infer it by getting both raw and calibrated coordinates for the headest.

SteffanDonal commented 7 years ago

GetRawZeroPoseToStandingAbsoluteTrackingPose appears to always return empty.

JoeLudwig commented 7 years ago

What hardware are you on, @SteffanDonal ?

SteffanDonal commented 7 years ago

@JoeLudwig HTC Vive that's had room setup completed!

On 4 Oct 2017 18:18, "Joe Ludwig" notifications@github.com wrote:

What hardware are you on, @SteffanDonal https://github.com/steffandonal ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/openvr/issues/617#issuecomment-334333124, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXYEgFa55eOHmemMrCuvlMc0AU6OxR2ks5spC5ygaJpZM4PIjm8 .

skriabineSop commented 7 years ago

actually, there is a json config file on the steam folder/config named something like "chaperonne.vrchap" which contain the coordinate of the standing setup in the raw coordinate system and the yaw. So you can simply get everything from there