WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Flock of birds extended range problem (https://forum.worldviz.com/showthread.php?t=1162)

theuberk 07-27-2007 01:58 PM

Flock of birds extended range problem
 
Hi,

I'm using an extended range flock of birds setup. The system is set up so the extended range unit (address 0) is attached to the host via a RS232 serial port and the extended range unit is then attached to the bird unit (address 1) that is receiving all the sensor data. The Extended range and bird units are connected via FBB. I checked the manual and realized that I need to send an "RS232 TO FBB" command to the extended range unit in order for the host to get the sensor data. Can this be accomplished in python? If so, how?

Thanks,

Robin

farshizzo 07-27-2007 02:34 PM

Hi,

Here is some sample code that we used to get the ERT working here:
Code:

import viz
viz.go()

NUM_FOB = 2
PORT_FOB = 1

#First tracker is the ERT, which does not contain tracking data
ert = viz.add('flockofbirds.dls')

#Second tracker is the actual sensor
bird = viz.add('flockofbirds.dls')

The trick is that the ERT is counted as a bird, so you need to set NUM_FOB to 2 and the first sensor returned by the flock of birds represents the ERT. The second sensor will contain the bird data.

theuberk 07-30-2007 08:51 AM

Thanks! It works now. I have another question though. Is there any way to make the bird only send position data? I have an inertia cube that Is used for orientation and I only need position data from the bird.

Thanks,
Robin

farshizzo 07-30-2007 09:19 AM

Hi,

Are you using the bird/intersense for head tracking? If so, then you can use the following code to use the bird position and intersense orientation for head tracking:
Code:

bird = viz.add('flockofbirds.dls')
isense = viz.add('intersense.dls')

#Create new tracker object that gets position from bird and rotation from isense
headTracker = viz.mergeLinkable(bird,isense)

#Link tracker to main view
viz.link(headTracker,viz.MainView)


theuberk 07-30-2007 09:31 AM

Perfect. Thanks a lot.


All times are GMT -7. The time now is 10:57 PM.

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