View Full Version : steve setTracker not working anymore

11-10-2012, 05:57 PM
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
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?

11-12-2012, 04:34 PM
There was a change that broke the roboChase.py script in the latest version. To fix that replace:
player_matrix = viz.Matrix()
player_matrix = viz.addGroup()