andregilerson / rviz_vive Goto Github PK
View Code? Open in Web Editor NEWView RVIZ on the HTC Vive
View RVIZ on the HTC Vive
Hi,
Following the instructions on the readme I'm able to build the plugin, but whenever I try to add it to rviz the application crashes with a segmentation fault. Is there perhaps a step missing on the instructions?
Hello,
First of all thank you so much for making this plug in. I noticed that in this part of the code
if (_steamVrPose[vr::k_unTrackedDeviceIndex_Hmd].bPoseIsValid)
{
Ogre::Vector3 vivePos = _trackedDevicePose[vr::k_unTrackedDeviceIndex_Hmd].getTrans();
Ogre::Quaternion viveOri = _trackedDevicePose[vr::k_unTrackedDeviceIndex_Hmd].extractQuaternion();
_pCameraNode->setPosition(vivePos);
_pCameraNode->setOrientation(ori);
}
you use the vivePos for the pCameraNode but not the orientation. If you change the pCameranode Orientation to be the viveOri, that seems to track orientation as well.
Using this change Ogre::Quaternion viveOri = _trackedDevicePose[vr::k_unTrackedDeviceIndex_Hmd].extractQuaternion().Inverse();
getting the inverse of the quaternion, makes the vive sync up in Rviz.
The other issue I noticed is that rviz will not close after starting the plugin.
Thanks,
Akash Jinandra
Hi Andre,
I was wondering if you had the same issue and were able to solve it.
I followed your description to install the plugin and it's working in general. There are just two little things.
First: I expected the HTC Vive display to show the exact same Rviz than the monitor of my Computer. But there is an offset between Rvitz of the monitor and the HTC. When the perspective of the monitor is straight ahead, the same picture in the HTC shows not straight ahead but to the right. It's like the coordinates are shifted by 90°.
Second: It's probably linked to my first issue. There is a weird cut in the picture of the HTC. The coordinate system stops and then it's just black. That's not happening in Rviz of the computer monitor.
Do you have any ideas what this issue is about? Did you have the same problem? Do you have any idea how to solve it? Do you know where to look in the code to correct the offset and to get this cut away?
Thanks a lot for your answer and all the effort you put into the plugin!
Hi,
I have a HTC Vive Pro and I keep getting a seg fault error. Could I please have some guidance?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.