Gazebo | Ignition | Community
Ask Your Question
2

Is it possible to add custom texture file?

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

Kei Okada gravatar image

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

nkoenig gravatar image

Hi

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
2

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

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

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

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

edit flag offensive delete link more

Comments

+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 -0500 )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 -0500 )edit

Question Tools

Stats

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

Seen: 1,499 times

Last updated: Jan 12 '15