![]() |
|
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Perfect, that's exactly what was needed. Thanks!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Vicon Plugin | Micheal | Plug-in development | 2 | 08-29-2007 04:03 AM |