You can get the forward vector of the tracker using the following code:
Code:
directionVector = itracker.getMatrix().getForward()
If you want to get the value directly from an euler angle, then you can use the following code:
Code:
directionVector = viz.Matrix.euler(eulerAngles).getForward()