Home | Tutorials | Wiki | Issues
Ask Your Question
1

How to add model of object from non default localisation?

asked 2014-11-17 15:24:20 -0500

green96 gravatar image

updated 2014-11-17 16:36:11 -0500

Hi,

could you tell me:

  • is there any option to add model of object from non default localisation? like: add different path to this GUI? http://snag.gy/Du37O.jpg

  • I am using ROS and Gazebo and I am a little bit confused, what is the extension of models (objects which can be added to the world)?
    .sdf, .world, .model, .dae?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-17 15:32:02 -0500

nkoenig gravatar image

The paths displayed in the Insert Model Tab correlate to the GAZEBO_MODEL_PATH environment variable.

SDF & URDF serve roughly the same purpose. Both are formats that describe robots (models). SDF has additional capabilities, such as supporting lights, terrain, sensors, etc. The extensions '.model' and '.world' are hold-overs from early versions of Gazebo. A '.model' file is an SDF file that contains one model, while a '.world' file is an SDF file that contains the description of an entire environment.

DAE files are used to describe 3D meshes and their textures.

edit flag offensive delete link more

Comments

Thank you for your answer. I add path to the .bashrc file, and this path appear in insert tag, but I can't choose anything. This folder which is linked to this variable consist *.model files. Do you have any idea what is wrong? http://snag.gy/HNwe5.jpg please check it: http://pastebin.com/mebhNW1R I am not sure but is this normal that when I call echo it gives ' : ' sign before path?

green96 gravatar imagegreen96 ( 2014-11-17 16:15:01 -0500 )edit

Is it a bug? when I call echo I get " : " before or after path... http://pastebin.com/HtVNj7M7

green96 gravatar imagegreen96 ( 2014-11-17 17:44:33 -0500 )edit

Gazebo expects models to be contained in directories. One directory per model. Each directory should have a `model.config` file along with your SDF file(s), textures, meshes, etc. Take a look in `~/.gazebo/models` for examples.

nkoenig gravatar imagenkoenig ( 2014-11-18 10:40:25 -0500 )edit

I know, I had checked it before but I have only *.models and *.dae files. I would like to add tag / mark to gazebo. I know that it was possible and it was working when ROS fuerte was released. Like here: https://www.youtube.com/watch?v=wG1OHN7ik3w Some time ago, there was different standard to add models to world?

green96 gravatar imagegreen96 ( 2014-11-18 11:15:04 -0500 )edit

The model.config file is used to tell Gazebo about a model. Make sure that you have a model.config in your model directory. Also make sure that the model.config refers to the correct SDF file, which should exist in the same directory as the model.config file.

nkoenig gravatar imagenkoenig ( 2014-11-18 11:38:19 -0500 )edit

Unfortunately I don't have any sdf file and model.config file. Should I create them? I spend some time and I found in google that few years ago people ad files like here: http://answers.ros.org/question/43809/unable-to-include-model-files-for-objects-in-world-file-for-simulation-in-ubuntu-1204-fuerte/ or like here: http://answers.ros.org/question/42529/how-to-import-collada-dae-files-into-gazebo-rosfuerte/ so what is the best solution? creation .sdf files or using URDF?

green96 gravatar imagegreen96 ( 2014-11-18 12:17:31 -0500 )edit

I am asking because posts which I linked are a little bit old. What should I do?

green96 gravatar imagegreen96 ( 2014-11-18 12:21:40 -0500 )edit
1

Can you take a look at this tutorial? It might help you.

nkoenig gravatar imagenkoenig ( 2014-11-18 12:38:55 -0500 )edit

Thank you for your support!

green96 gravatar imagegreen96 ( 2014-11-20 12:50:12 -0500 )edit

Sure thing.

nkoenig gravatar imagenkoenig ( 2014-11-20 17:42:16 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-11-17 15:24:20 -0500

Seen: 2,385 times

Last updated: Nov 17 '14