Home | Tutorials | Wiki | Issues
Ask Your Question
0

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

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

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
0

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

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:

<include>
  <name>camera_1</name>
  <pose>1 0 0 0 0 0</pose>
  <uri>model://camera</uri>
</include>
<include>
  <name>camera_2</name>
  <pose>2 0 0 0 0 0</pose>
  <uri>model://camera</uri>
</include>

model://

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

Stats

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

Seen: 306 times

Last updated: Jan 31 '17