gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.18k stars 479 forks source link

Heightmaps cannot be inserted using InsertModelWidget #481

Open osrf-migration opened 11 years ago

osrf-migration commented 11 years ago

Original report (archived issue) by Daniel Vaz (Bitbucket: danielvaz).

The original report had attachments: manifest.xml, model.sdf


When I try to add this model in gazebo-1.4.0 I can't see where I am going to put it. But if I click somewhere it appears in GUI. After I delete this model in tab "World", the GUI doesn't refresh, and if I try to add new instances of this model I can't see if it was added (and where it was added).

I attached the model file.

The steps to reproduce are:

1) Put the model in GAZEBO_MODEL_PATH

2) Start gazebo

3) Click in the insert tab and choose Terrain model (you can't see the model while move the cursor)

4) Click anywhere in the GUI (the model will be added)

5) In the tab World->Models, delete the terrain instance (the GUI will not refresh)

6) In the tab Insert, try to add another instance of terrain model (the other instance will not displayed)

osrf-migration commented 11 years ago

Original comment by Daniel Vaz (Bitbucket: danielvaz).


osrf-migration commented 11 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Until 2.0

osrf-migration commented 11 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


osrf-migration commented 10 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


Title updated after I spent some time trying to figure out why a heightmap could be loaded from a world file, but not through the InsertModelWidget.

When a heightmap is in the world file, the client requests a scene_info message from the World, which eventually leads to visual messages being processed by Scene::ProcessVisualMsg. Currently this function has tricks for loading heightmap visuals (see lines 2280-2303).

On the other hand, when using the InsertModelWidget, the Visual::Load function gets called by gui::ModelMaker::Init, but there are no Heightmap-specific hacks.

osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


While investigating this question, I was surprised to see that I was able to insert heightmaps from the model database such as the VRC Driving Terrain and Lunar Tranquilitatis Pit on Gazebo 7.7.