WorldViz User Forum

WorldViz User Forum (
-   Vizard (
-   -   Placing Object with Optotrak (

amir 08-09-2018 07:27 PM

Placing Object with Optotrak
For our study, people will walk on a balance beam. I want to stick an Optotrak rigid body onto the beam so that we can have it exactly matched in space with our virtual environment.

I'm currently adding the beam into the scene at the origin with the following code:
HTML Code:

# Add balance beam
beam = viz.add('beam.osgb')

And adding the following for Optotrak to send motion data for the HMD:
HTML Code:

opto = viz.add('optotrak.dle')
body = opto.getBody(0), viz.MainView)

How can I associate a second Optotrak rigid body with the virtual balance beam? My thoughts are to add:
HTML Code:

opto = viz.add('optotrak.dle')
body1 = opto.getBody(1), beam)


Jeff 08-09-2018 10:58 PM

I'm not sure how adding a tracker to the beam will help. If you place the physical beam at the same location in tracking coordinates as the position of the virtual beam in virtual world coordinates then the two should line up.

All times are GMT -7. The time now is 07:28 AM.

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