PDA

View Full Version : Manipulating Tracker View


Micha
02-25-2008, 07:47 AM
Hi There,

I use an Ascension FOB and I want to change the main view, i.g. rotate around the z-axis, so that the view for example looks always 90 deg rotated to the actual tracking view.

Any Ideas?

Thanks, Mike

Micha
02-25-2008, 08:50 AM
Ok, I got it!


data = tracker.get()

view = viz.get(viz.MAIN_VIEWPOINT)

view.reset(viz.BODY_ORI)

view.setEuler(data[3]+180,data[4],data[5], viz.BODY_ORI, viz.ABS_LOCAL)

farshizzo
02-25-2008, 10:00 AM
You can also use a link to have Vizard automatically perform this operation for you. Example:headLink = viz.link(tracker,viz.MainView,dstFlag=viz.LINK_BOD Y)
headLink.postEuler([180,0,0],target=viz.LINK_ORI_OP)

Micha
02-25-2008, 10:05 AM
Nice, thank you very much, works perfectly!!

Cheers Mike