WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-27-2007, 02:58 PM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
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
Reply With Quote
  #2  
Old 07-27-2007, 03:34 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
  #3  
Old 07-30-2007, 09:51 AM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
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
Reply With Quote
  #4  
Old 07-30-2007, 10:19 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)
Reply With Quote
  #5  
Old 07-30-2007, 10:31 AM
theuberk theuberk is offline
Member
 
Join Date: Jul 2007
Posts: 44
Perfect. Thanks a lot.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -7. The time now is 07:36 AM.


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