WorldViz User Forum  

Go Back   WorldViz User Forum > Plug-in development

 
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-07-2008, 02:30 PM
dudey12 dudey12 is offline
Member
 
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: simple.py

import viz

viz.go()

#Add a grounds
viz.add('tut_ground.wrl')

#The number of markers to connect to
NUM_MARKERS = 1

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

#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
ball.link(marker)

#Move the viewpoint back 8 meters
viz.move(0,0,-8)


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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vicon Plugin Micheal Plug-in development 2 08-29-2007 04:03 AM


All times are GMT -7. The time now is 08:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC