Thread: Vicon plug-in
View Single Post
Old 02-07-2008, 01:30 PM
dudey12 dudey12 is offline
Join Date: Feb 2008
Posts: 5
Send a message via MSN to dudey12
Vicon plug-in

I'm trying to use the vicon plug-in to access tracking data that vicon is spitting out.
I'm using the code provided in the example:

import viz


#Add a grounds

#The number of markers to connect to

#Specify the IP address of the Vicon server. Default port is 800.
#If you wanted to specify port 803, you would do the following:

#Add the specified number of markers
for x in range(NUM_MARKERS):
#Add a vicon marker
marker = viz.add('vicon.dls')
#Add a 3d ball to represent the marker
ball = viz.add('white_ball.wrl')
#Link the 3d ball to the marker

#Move the viewpoint back 8 meters

I'm finding that I'm only able to add two markers. The code works perfectly for two markers but if a third or fourth marker is added, I get an error message that says that the maximum number of markers has been reached.

Any help would be greatly appreciated!
Reply With Quote