View Single Post
  #4  
Old 08-05-2016, 07:48 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The powerwall setting I'm referring to is in the Dtrack software. This determines the coordinate system of the data that's streamed out and is unrelated to any powerwall options in vizconnect.

The data still needs to be converted to match Vizard's coordinate system. In the trackers section of the vizconnect file you have trackers named 'dtrack' and 'dtrack2'. You can apply the conversions in the postInit section of the vizconnect file. So it will look like this:

Code:
def postInit():
	"""Add any code here which should be called after all of the initialization of this configuration is complete.
	Returned values can be obtained by calling getPostInitResult for this file's vizconnect.Configuration instance."""
	
	vizconnect.getTracker('dtrack').getRaw().swapPos([1,2,-3])
	vizconnect.getTracker('dtrack').getRaw().swapQuat([-1,-2,3,4])
	vizconnect.getTracker('dtrack2').getRaw().swapPos([1,2,-3])
	vizconnect.getTracker('dtrack2').getRaw().swapQuat([-1,-2,3,4])
	
	return None
Reply With Quote