gazebo_ros_openni_kinect plugin with roll + pitch orientation generates wrong depth image
In the following video you see the comparison between two RGBD sensors placed in different positions. http://youtu.be/asvv0S5KQvA
Both use the gazebo_ros_openni_kinect
plugin.
The one that is OK has only a roll rotation of 90 degrees:
<origin xyz=${base_rgbd_x} ${base_rgbd_y} ${base_rgbd_z}" rpy="${90 * deg_to_rad} ${0 * deg_to_rad} 0"/>
Meanwhile, the other has the same roll rotation and 30 degrees of pitch rotation:
<origin xyz=${base_rgbd_x} ${base_rgbd_y} ${base_rgbd_z}" rpy="${90 * deg_to_rad} ${30 * deg_to_rad} 0"/>
The point cloud is wrong. I've also found out that the depth images is wrong. The video compares them with rqtimageview. Apparently, instead of a pitch rotation, it seems that gazebo is using a yaw rotation. This is shown in the video.
I'm using gazebo 1.9.1; is this a known bug, probably fix in newer versions?