changing default vision sensor orientation
Posted: 04 Jun 2017, 09:15
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
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