View Single Post
  #11  
Old 02-01-2005, 03:30 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
Hi,
I'm still trying without sucess.
If I try this isolated piece below, I'm still up in the roof (about 2 m from the floor).

At least it tracks!


Code:
import viz
import vizmat
import time
import math
EYE_HEIGHT			=1.8
viz.go(viz.PROMPT)
if viz.get(viz.TRACKER):
	myTracker = viz.add('vizppt.dls')
	myTracker.command(6,'',1,1,1)
	myTracker.command(3,'',2,1,2)
	v = viz.add('intersense.dls')
	myTracker.reset()  # Reset the tracker
	viz.tracker()
else:
	tracking = 0
viz.eyeheight(EYE_HEIGHT)

#Create a room
myroom = viz.add('../resources/models/room.wrl')
if I try other approaches, I'm on the floor but cannot track!
What do I need to change?

I also don't understand the following in the help-file

Average position by N samples

ppt.command(5,"",3) # Average over 3 samples


Does this steady the movement?


Set the reset mask for each axis

ppt.command(6,"",0,1,0) # Reset affect Y axis only

What is reset Mask - is it how it started?

and in gallery I found

factor = 5.0

guess this seems to make movements quicker (if I move 2 cm it tracks 10)??

Sorry for the many questions but I'm already trying to figure this out for some hours...

Johannes
Reply With Quote