WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   steve setTracker not working anymore (https://forum.worldviz.com/showthread.php?t=4414)

tokola 11-10-2012 04:57 PM

steve setTracker not working anymore
 
Hi there,

I have been trying to use the robot (steve) in one of my projects, but I get the following error when calling the setTracker function
Code:

Traceback (most recent call last):
  File "C:\Program Files (x86)\WorldViz\Vizard4\python\vizact.py", line 3615, in _callGroup
    val = e.call(arg)
  File "C:\Program Files (x86)\WorldViz\Vizard4\python\vizact.py", line 3385, in _callStatic
    return func(*args,**kwargs)
  File "C:\Program Files (x86)\WorldViz\Vizard4\python\steve.py", line 190, in _updateBodyTrackYaw
    yaw,pitch,roll = self._tracker.getEuler(self._trackerFlag)
TypeError: getEuler() takes exactly 1 argument (2 given)

I am using the exact same code that there is in the networking example. I have also tested a project using steve which I made in Spring and it doesn't work either. I assume you have changed something in steve.py recently (I have the latest Viz4.0 update) that causes this error. Can you help please?

Also, is using the setTracker command the best way to connect steve with a view (i.e. setting the view's matrix as its tracker matrix) or there's a more efficient way?

Jeff 11-12-2012 03:34 PM

There was a change that broke the roboChase.py script in the latest version. To fix that replace:
Code:

player_matrix = viz.Matrix()
with:
Code:

player_matrix = viz.addGroup()


All times are GMT -7. The time now is 03:37 AM.

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