|
#1
|
|||
|
|||
Sorry for the delay, we've been waiting to receive a simulator from Vicon. I believe the problem is that you are trying to retrieve marker data, where as the vicon plugin only outputs body data. I was able to simulate 17 bodies and connect to all of them through the Vizard plugin.
Now that we have a simulator for testing, we will be rewriting the Vicon plugin to support both marker and body data. This will be available in the next release. |
#2
|
|||
|
|||
Quote:
Code:
vicon = viz.add('vicon.dle',0,'192.168.0.114') body = vicon.getBody(0) marker = vicon.getMarker(0) print body.getName() print marker.getName() |
#3
|
|||
|
|||
Are you using the version of the Vicon plugin that came with the latest release? My guess is that you have some unofficial version. Please download the latest release and make sure you don't have an files called vicon.dle in your script directory.
|
#4
|
|||
|
|||
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.
|
#5
|
|||
|
|||
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
|
#6
|
|||
|
|||
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? |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
Perfect, that's exactly what was needed. Thanks!
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vicon Plugin | Micheal | Plug-in development | 2 | 08-29-2007 03:03 AM |