WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #1  
Old 01-04-2008, 10:41 PM
Atul Thakur Atul Thakur is offline
Member
 
Join Date: Oct 2007
Posts: 15
Wanda button events on flock of birds

Hi,
I am able to track the positions using my FOB (1 bird).
There are three buttons and a joystick control on the wanda.
Are there any functions in Vizard to use the events generated by these buttons and joysticks? I saw the documentation of flockofbirds plugin but couldn't find any. If not, do i need to write my own plugin <where to get information about writing my own plugin>?
Kindly point me to some sample codes if it exists.

Thank you,

sincerely,
-Atul
Reply With Quote
  #2  
Old 01-06-2008, 07:12 AM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
Hi Atul,

I believe there have been similar discussions before, please have a look at

http://www.worldviz.com/forum/showthread.php?t=678

and see if that helps.

Have fun!
Reply With Quote
  #3  
Old 01-06-2008, 04:50 PM
Atul Thakur Atul Thakur is offline
Member
 
Join Date: Oct 2007
Posts: 15
Thank you for the reply.
I followed the discussion you indicated. My problem is that my joystick is not working neither the wanda buttons. I can only retrieve the orientation of the wanda. Is there a method to access the joystick or wanda button action?
regards,
-Atul
Reply With Quote
  #4  
Old 01-07-2008, 09:36 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
According to Ascension, the Wanda is a standard plug-n-play joystick device. This means you should be able to use our joystick module to access the joystick/button data. There are a few example scripts that come with Vizard showing how to use the joystick module and they are also included in the documentation.
Reply With Quote
  #5  
Old 01-08-2008, 01:42 PM
Atul Thakur Atul Thakur is offline
Member
 
Join Date: Oct 2007
Posts: 15
Quote:
Originally Posted by farshizzo View Post
According to Ascension, the Wanda is a standard plug-n-play joystick device. This means you should be able to use our joystick module to access the joystick/button data. There are a few example scripts that come with Vizard showing how to use the joystick module and they are also included in the documentation.
Hi:
I tried using the joystick code into my fob code as follows

PHP Code:
import viz
import sid

viz
.go()
BAUD_FOB 38400
PORT_FOB 
1
sensor 
viz.add('flockofbirds.dls')
viz.tracker()
pos = [0,0,0]
room viz.add("room.wrl")
room.translate(0,0,3)
table viz.add("table.wrl")
table.translate(0,0,3)
def onkeydown(key):
    if 
key == 'a':
        
pos sensor.get()
        print 
pos
viz
.callback(viz.KEYDOWN_EVENT,onkeydown)

##to see whether joystick works o not
def joydown(button):
    print 
"Joystick worked!!" 
Joystick action is not printing anything
Moreover, I don't have any idea, how to use the buttons on the wanda.
Also, for the information, when I run winbird.exe <Ascension's program> The position and orientations are registered properly but joystick or buttons don't do anything.
I am not sure if the joystick and buttons are working alright or not. Please let me know if there is any method to test that.
Thank you,

-Atul
Reply With Quote
  #6  
Old 01-08-2008, 02:34 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If you can't get the joystick/buttons working with Ascension's software then you will need to contact them for support.
Reply With Quote
Reply


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
Flock of Birds recognized, but no data sent sjroorda Vizard 9 03-01-2016 08:48 PM
Flock of Birds Atul Thakur Vizard 6 12-20-2007 12:18 PM
Flock of Birds question (again) Elittdogg Vizard 24 12-04-2007 09:37 AM
Flock of Birds Elittdogg Vizard 9 10-02-2007 01:53 PM
Flock of birds extended range problem theuberk Vizard 4 07-30-2007 09:31 AM


All times are GMT -7. The time now is 05:33 AM.


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