![]() |
|
#1
|
|||
|
|||
I have downloaded the latest version of Vizard and am using the DLE. Mysteriously the getBody() function is working now, but its information does not update. The information updates properly when individual markers are linked to objects.
|
#2
|
|||
|
|||
I've tested our plugin with all the sample files that came with the Vicon simulator and it works fine. Can you make a sample recording of your output to the .v format so I can simulate it here. You can post the file directly in the forum or email it to lashkari@worldviz.com
|
#3
|
|||
|
|||
Hello, my name is Stephen. I'm doing a little bit of work on this project for the time being.
I found out why the body positions weren't updating, and it was a particular setting on the vicon side (we needed to enable 'kinematic data' to be output in the real-time stream). Now, how do I get the orientation from the body? Is there a getOrientation()-like function or do I need to figure it out from the body position information? |
#4
|
|||
|
|||
You can use one of the following functions to get orientation data from a body:
Code:
quat = body.getQuat() #[x,y,z,w] quaternion rotation euler = body.getEuler() #[yaw,pitch,roll] euler rotation in degrees axisAngle = body.getAxisAngle() #[x,y,z,deg] axis-angle rotation mat = body.getMatrix() #4x4 transform matrix including position and rotation |
#5
|
|||
|
|||
Perfect, that's exactly what was needed. Thanks!
|
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vicon Plugin | Micheal | Plug-in development | 2 | 08-29-2007 03:03 AM |