Gazebo camera distrortion
Hello everybody, I am trying to distort a camera mounted on my quadrotor according to the parameters of the sensor I have. I am using Gazebo 2.2.3 along with ROS Indigo under Ubuntu 14.04. I have my sdf set up in the following way:
<sensor name="base_link_camera_sensor" type="camera">
<pose>0 0 0 0 1.570793 0</pose>
<camera name="head">
<!--horizontal_fov is 60 degrees (approx 1.05 rad)-->
<horizontal_fov>1.047</horizontal_fov>
<image>
<!-- check the camera intrinsic parameters -->
<width>320</width>
<height>240</height>
<format>L8</format>
</image>
<clip>
<near>0.02</near>
<far>300</far>
</clip>
<noise>
<type>gaussian</type>
<!-- Noise is sampled independently per pixel on each frame.
That pixel's noise value is added to each of its color
channels, which at that point lie in the range [0,1]. -->
<mean>0.0</mean>
<stddev>0.02</stddev>
</noise>
</camera>
<plugin name="camera_controller" filename="libgazebo_ros_camera.so">
<robotNamespace>/vtol/camera</robotNamespace>
<alwaysOn>true</alwaysOn>
<updateRate>50.0</updateRate>
<imageTopicName>image_raw</imageTopicName>
<cameraInfoTopicName>camera_info</cameraInfoTopicName>
<frameName>camera_link</frameName>
<hackBaseline>0.07</hackBaseline>
<distortionK1>-0.43172</distortionK1>
<distortionK2> 0.17008</distortionK2>
<distortionK3> 0.00000</distortionK3>
<distortionT1> 0.00122</distortionT1>
<distortionT2>-0.00030</distortionT2>
</plugin>
</sensor>
However, the image is not distorted and I get the following message
[ WARN] [1431434020.115191249]: gazeboroscamera_ simulation does not support non-zero distortion parameters right now, your simulation maybe wrong.
But according to this tutorial seem to be supported. Is there something wrong?
Thank you very much
Andrea