Page 1 of 1

changing default vision sensor orientation

Posted: 04 Jun 2017, 09:15
by marcofe
Hi,
When I add a vision sensor object on a scene, it is oriented with the x-axis towards left and y-axis upward, but I would like to put in the conventional orientation used in literature (i.e., x-axis on the right and y-axis downward). So, I change the orientation of the sensor by rotation around the z-axis of 180°. However, this results in a flipped image, because the image plane rotates with the sensor, and I need to restore its original view programmatically (e.g., using the function `cv::flip` of OpenCV libraries). I wonder if there is a way to change the default orientation of the vision sensor, and avoid to explicitly handle the image view in my code.
Thank you

Re: changing default vision sensor orientation

Posted: 05 Jun 2017, 09:38
by coppelia
Hello,

you cannot change the way the reference frame of a vision sensor is oriented. But you can always build the vision sensor on top of a dummy object with the orientation you wish. Then, instead of reading/writing the position/orientation of the vision sensor, read/write the position/orientation of the dummy instead.

Cheers