Gray screen for Real Robot Lab simulation on ROS Basics project (gzclient)

Ok, the “problem” is that the user_camera on the GUI was just too close to the simulation.

It can be solved in two ways:

  1. Zoom out (just by zooming out you should be able to see the simulation properly)
  2. Change the user_camera position in the realrobotlab_v1.world file if you don’t want to zoom out each time you open the simulation

To change the world file, just open the realrobotlab_simulation/realrobotlab/worlds/realrobotlab_v1.world file and look where the user_camera is defined by looking for camera name='user_camera'.

The correct position to show the simulation properly is:

<gui fullscreen='0'>
  <camera name='user_camera'>
    <pose>2.082248 0.691252 1.153800 0 0.509800 -2.815194</pose>
    <view_controller>orbit</view_controller>
  </camera>
</gui>

After changing the camera position it should load properly when you reopen the rosject:

4 Likes