Is it possible to add custom texture file?
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.
Asked by Kei Okada on 2015-01-09 09:13:15 UTC
Answers
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.
Asked by Jim Rothrock on 2015-01-12 13:52:46 UTC
Comments
+1 This worked, the workaround mentioned in OP was no longer needed for me. I still had to specify GAZEBO_MODEL_PATH
though.
Asked by IsaacS on 2015-01-13 03:02:25 UTC
Drawback is that this is a ROS package local solution. It'd be still ideal if there's Gazebo global solution.
Asked by IsaacS on 2015-01-13 11:05:00 UTC
Comments