Gazebo | Ignition | Community
Ask Your Question

Is it possible to add custom texture file?

asked 2015-01-09 08:13:15 -0600

Kei Okada gravatar image

updated 2015-01-12 11:46:12 -0600

nkoenig gravatar image


Is I created model as follows apollo 15 landing site map and would like to use custom texture file. As far as I investigated, it seems I have to manually make symlink from gazebo installed directory as

sudo mkdir /usr/share/gazebo-2.2/models
cd /usr/share/gazebo-2.2/models
sudo ln -sf <pathto>/gazebo_models/apollo15_landing_site_1000x1000 .

Is it correct? is there any way to tell gazebo for custom media path? I'm using deb installed gazebo-2.2, with 14.04/indigo environment.

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-01-12 12:52:46 -0600

If you are running Gazebo from a ROS launch file, add the following to package.xml in the package that contains the launch file:

  <gazebo_ros gazebo_media_path="${prefix}"/>

This causes Gazebo to search <package directory>/models for models and <package directory>/media for materials.

edit flag offensive delete link more


+1 This worked, the workaround mentioned in OP was no longer needed for me. I still had to specify GAZEBO_MODEL_PATH though.

IsaacS gravatar imageIsaacS ( 2015-01-13 02:02:25 -0600 )edit

Drawback is that this is a ROS package local solution. It'd be still ideal if there's Gazebo global solution.

IsaacS gravatar imageIsaacS ( 2015-01-13 10:05:00 -0600 )edit
Login/Signup to Answer

Question Tools


Asked: 2015-01-09 08:13:15 -0600

Seen: 1,444 times

Last updated: Jan 12 '15