Home | Tutorials | Wiki | Issues
Ask Your Question
0

Gazebo 1.8.1 turns into black

asked 2013-06-01 14:05:42 -0500

bmenendez gravatar image

Hello,

I'm trying to launch my own world of a circuit but it is not possible, Gazebo turns into black and I cannot see my world with my robot. I can connect to the robot cameras but I don't see anything. The model of the circuit is the following:

<?xml version="1.0" ?>
<sdf version="1.4">
  <model name="heightmap">
    <static>true</static>
    <link name="link2">
      <visual name="visual">
        <geometry>
          <heightmap>     
            <texture>
              <diffuse>file://media/materials/textures/terrain_detail.jpg</diffuse>
              <normal>file://media/materials/textures/terrain_detail.jpg</normal>
              <size>50</size>
            </texture>
            <texture>
              <diffuse>file://media/materials/textures/flat_normal.png</diffuse>
              <normal>file://media/materials/textures/flat_normal.png</normal>
              <size>50</size>
            </texture>
            <texture>
              <diffuse>file://media/materials/textures/beigeWall.jpg</diffuse>
              <normal>file://media/materials/textures/flat_normal.png</normal>
              <size>20</size>
            </texture>  
            <blend>
              <min_height>0</min_height>
              <fade_dist>0</fade_dist>
            </blend>
            <blend>
              <min_height>0.01</min_height>
              <fade_dist>0</fade_dist>
            </blend>     
            <uri>model://jarama/images/jaramaCircuitoRetocado.png</uri>
            <size>50 50 1</size>
            <pos>0 0 0</pos>
          </heightmap>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

Basically it loads a black&white image with the circuit and constructs it with walls and a blue line. It is to do a follow-line behaviour based on the Pioneer 2DX.

I'm running Gazebo on Ubuntu 13.04 64bits. In Ubuntu 12.04 64bits I can load this world but it works so slowly because of not having drivers of my integrated graphic card (Intel HD4000), now developed for Ubuntu 13.04.

Do you know if I'm missing something or if I can fix that?

Thank you,

Borja.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-06-04 12:48:34 -0500

ffurrer gravatar image

Try loading another world or any models from the database (insert model) and see if you can see anything there. If a basic world or models from the model database work, you can try to load a height-map such as the one here.

Let me know if that worked

edit flag offensive delete link more

Comments

Hi ffurrer. First of all, thank you for your answer :) I tried before to load another world and that's ok, it loads the world properly (for example, I tried to load a world just with the Pioneer 2DX and some walls and it worked). I can also load the model you showed me, so I don't really know where it is failing. The image (jaramaCircuitoRetocado.png) is just a black&white image and it works in Ubuntu 12.04 without graphic drivers but not in Ubuntu 13.04 with graphic drivers :-/

bmenendez gravatar imagebmenendez ( 2013-06-05 13:44:37 -0500 )edit
0

answered 2013-06-05 13:47:57 -0500

bmenendez gravatar image

Ok, thanks to ffurrer I know what was the problem. In his example:

  <collision name="collision">
    <geometry>
      <heightmap>
        <uri>model://vrc_heightmap_1/materials/textures/heightmap.png</uri>
        <size>500 500 118</size>
        <pos>0 0 -15</pos>
      </heightmap>
    </geometry>
  </collision>

I didn't add the "collision".

Thank you!!!! :D

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-06-01 14:05:42 -0500

Seen: 542 times

Last updated: Jun 05 '13