上图是gazebo中
在rviz中会将远处的空白处,显示成一堵墙
上图的左下角是深度图像,rviz中。
下图,将相机方向转向空白处,依旧会产生一堵墙,将远处空白显示为墙,
<!--////////////////////////////////////////////////camera ///////////////////////////////////////-->
<gazebo reference="laser_Link">
<sensor name="RGBD_camera" type="depth">
<update_rate>20</update_rate>
<camera>
<horizontal_fov>1.047198</horizontal_fov>
<image>
<width>640</width>
<height>280</height>
<format>R8G8B8</format>
</image>
<clip>
<near>0.05</near>
<far>20</far>
</clip>
</camera>
<plugin name="RGBD_controller" filename="libgazebo_ros_openni_kinect.so">
<baseline>0.1</baseline>
<alwaysOn>true</alwaysOn>
<updateRate>20</updateRate>
<cameraName>RGBD_ir</cameraName>
<imageTopicName>/RGBD/color/image_raw</imageTopicName>
<cameraInfoTopicName>/RGBD/color/camera_info</cameraInfoTopicName>
<depthImageTopicName>/RGBD/depth/image_raw</depthImageTopicName>
<depthImageInfoTopicName>/RGBD/depth/camera_info</depthImageInfoTopicName>
<pointCloudTopicName>/RGBD/depth/points</pointCloudTopicName>
<frameName>RGBD_link</frameName>
<pointCloudCutoff>0.5</pointCloudCutoff>
<distortionK1>0.00000001</distortionK1>
<distortionK2>0.00000001</distortionK2>
<distortionK3>0.00000001</distortionK3>
<distortionT1>0.00000001</distortionT1>
<distortionT2>0.00000001</distortionT2>
<CxPrime>0</CxPrime>
<Cx>0</Cx>
<Cy>0</Cy>
<focalLength>0</focalLength>
<hackBaseline>0</hackBaseline>
</plugin>
</sensor>
</gazebo>
<!--///////////////////////////set color /////////////////////-->
上面是代码,应该也没问题,
请求大佬解答,为什么会这样,该怎么解决这个问题??困扰了一天了!
相机的代码也是应该没问题,
第三方账号登入
QQ 微博 微信