WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
  #1  
Old 03-01-2005, 03:31 AM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
Wireless InertiaCube3 with Vizard

The wireless IC3 is supported from Vizard version 2.51 on/

Here a couple of tricks:

A) IServer: The IServer application (version 1.40) that comes with the IC3 seems to be stable and functional and we recommend to use it. If several InertiaCubes are connected, the IServer application shows separate tabs for each.

B) Device Tool: The Device tool that comes with the IC3 is well documented. It allows configuration of wireless InertiaCube3 sender / receiver combinations.

C) Vizard: different InertiaCubes can be added one by one by using the commands:

tracker = viz.add('intersense.dls')
tracker2 = viz.add('intersense.dls')
etc.

If you want to specify which port is connected with which IC3, use

PORT_INTERSENSE = 13
tracker = viz.add('intersense.dls')

PORT_INTERSENSE = 14
tracker2 = viz.add('intersense.dls')

etc.

D) if the IC3 is not detected in Vizard or the IServer application, try unplugging senders (battery) and receivers (USB port), quit IServer or the Vizard application. Then plug back in and restart IServer or the Vizard application.

E) example for using two IC3-s for manipulating a simple envirnment:

import viz
viz.go()
#Add a ground plane and hedra
viz.add('tut_ground.wrl')
hedra = viz.add('tut_hedra.wrl')

#add Intersense tracker
tracker = viz.add('intersense.dls')
tracker2 = viz.add('intersense.dls')

# The timer function that will grab the
# tracker data and update the orientation
def mytimer(num):

#Get the data from the tracker
data = tracker.get()

#Only rotate the yaw of the body orientation
viz.reset(viz.BODY_ORI)
viz.rotate(viz.BODY_ORI,data[3],0,0)

hedra.rotate(tracker2.get()[3:6])

def mykeyboard(key):

#If the R key is pressed, reset the tracker
if key in ['R','r']:
tracker.reset()

#Create the keyboard and timer callbacks
viz.callback(viz.TIMER_EVENT,mytimer)
viz.callback(viz.KEYBOARD_EVENT,mykeyboard)

#Start the timer
viz.starttimer(0,0.01,-1)
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 08:37 PM.


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