Change clip of the Gazebo camera in file .world

asked 2022-10-14 07:19:33 -0500

I have a world file where the surface is very large - 9x9 km. But part of the map is invisible, because the camera cuts the image at a distance of 5km. image description

I tried to fix it by adding to the file .world this code, but it doesn't seem to work.

<?xml version="1.0" ?>
<sdf version="1.5">
  <world name="default">
    <gui>
      <camera name="gzclient_camera">
        <clip>
          <near>0.2</near>
          <far>15000</far>
        </clip>
        <pose>1 20 10 0 0 0</pose>
      </camera>
    </gui>
...

I looked at the SDF format and didn't find the <clip> tag there.

That's the result I want to get. What I need to add to the file .world to get it? image description

edit retag flag offensive close merge delete