If your sensor contains both position and rotation data, then you need to apply a
preTrans operator on the link to apply the offset between the physical sensor and actual eye position.
Example:
Code:
view_link = viz.link(sensor,viz.MainView)
# Physical sensor is 0.05 m above and 0.02 m behind actual eye position
view_link.preTrans([0.0,-0.05,0.02])