Adding an orientation function to graphicalObject and using it in ogre and robot