changing default vision sensor orientation

Typically: "How do I... ", "How can I... " questions
Post Reply
marcofe
Posts: 16
Joined: 27 Apr 2015, 14:25

changing default vision sensor orientation

Post 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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: changing default vision sensor orientation

Post 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

Post Reply