Home | Tutorials | Wiki | Issues
Ask Your Question
0

Hierarchy of model file lookup?

asked 2013-05-24 10:31:26 -0600

DRC_Justin gravatar image

I asked Brian this yesterday, but we couldn't figure it out by memory. What is the order of operations that Gazebo looks for files? Let's say there is a model file on my local machine and also a model file in the model database online, where does Gazebo go to look for the files? It seems like Gazebo is always trying to go online to download models, even if I have them stored locally. I'd like to know how to work around this, for times that I'm not online, and to manually enforce a particular model repository. This probably plays in with the difference between a <uri> call and a <model> call.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-05-25 00:41:44 -0600

scpeters gravatar image

The < uri > tags are resolved by gazebo::common::SystemPaths::FindFileUri, which iterates in order through the modelPaths list. This list is constructed with $HOME/.gazebo/models at the beginning followed by the paths listed in the GAZEBO_MODEL_PATH environment variable (see SystemPaths::UpdateModelPaths).

So if you have a model in ~/.gazebo/models, it will always take that one. If not, it will look through the rest of your model path, and eventually try to download it if it can't find it locally.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-05-24 10:31:26 -0600

Seen: 102 times

Last updated: May 25 '13