
PPT User’s Manual
52
Here is an example vizsetupcfg.py that you can edit and then save to your desktop
or to your local application directory:
# Setup option Input --> Manufacturer: Keyboard Type: Mouse LR /
PageUpDn
# Setup option Tracker --> Manufacturer: WorldViz Type: PPT w/Local
Intersense
# Setup option Display --> Manufacturer: Generic Type: Default
Window
# Setup option Avatar --> Manufacturer: Generic Type: No Avatar
# This file must be loaded by the correct version of viztracker.py
included with Vizard
import
viz
viz.requireVersion(
"3.16.0010"
)
# Source code that defines the composite. This is user editable but
changes will be lost if this file is regenerated
from
vizuniverse
import
*
import
__main__
import
hand
# Create a custom composite that handles tracking, display, and input
devices all together
def
createCustomComposite
(id=
0
):
# ---- Trackers ----
# Initialize an empty composite object to store all the trackers
# The composite.storeTracker() method is used to combine the
individual trackers for the user's body within the composite
composite = VUCompositeTrackers()
vrpn7 = viz.add(
'vrpn7.dle'
)
hostname =
'localhost'
headpos = vrpn7.addTracker(
'PPT0@'
+hostname,
0
)
isense = viz.add(
'intersense.dle'
)
headori = isense.addTracker(port=
0
)
magneticzero =
0.0
if
magneticzero ==
0
:
onkeydownspecial (
'r'
, headori.reset)
# Assign Alt-R to reset
the magnetic offset
else
:
output = viz.addGroup()
link = viz.link (headori, output, enabled=False)
vizact.onupdate(viz.PRIORITY_
1
, link.update)
link.postEuler ([-magneticzero,
0
,
0
])
# Apply fixed
magnetic offset
headori = output
Содержание PPT-E
Страница 1: ...WorldViz Precision Position Tracker Operating Instructions WorldViz 2011...
Страница 2: ......
Страница 6: ......
Страница 8: ......
Страница 37: ...Hardware Installation 31...
Страница 40: ...PPT User s Manual 34...
Страница 52: ...PPT User s Manual 46...
Страница 64: ...PPT User s Manual 58 USING THE 3D VIEW...
Страница 99: ...Usage Scenarios 93...
Страница 138: ...PPT User s Manual 132...
Страница 150: ...PPT User s Manual 144...