Home | Tutorials | Wiki | Issues
Ask Your Question

where is <uri>model://camera</uri> ?

asked 2017-01-31 15:18:43 -0500

Vinh K gravatar image

I am working on adding 2 camera sensors to my quad, but it uses the same link. Eventhough, I rename the joint. I am thinking of creating another camera model folder and rename the model. However, I do not know where the camera model gets reference.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-31 15:33:39 -0500

I think there are a few things which need to be clarified.

Change name inside the include tag

The uri as you put in your question is used inside the <include> tag. If all you want is to have two cameras with different names, you can add a <name> tag inside the include as follows:

  <pose>1 0 0 0 0 0</pose>
  <pose>2 0 0 0 0 0</pose>


URIs beginning with model:// look for models in paths indicated by the environment variable GAZEBO_MODEL_PATH. See this tutorial for more information.

In case the model can't be found locally, Gazebo looks for it on the online model database. Here's the camera model in the database. Once Gazebo downloads it the first time, it places the model under the ~/.gazebo/models/ directory so it can be found locally in the future. If you check that directory in your computer, you should find the camera there.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-01-31 15:18:43 -0500

Seen: 367 times

Last updated: Jan 31 '17