RNDF file path in World file

Issue #53 resolved
Agustin Alba Chicar created an issue

We need to change the file path of the RNDF file in the world file description, insde the plugin node, to use a relative path to the world file path.

Comments (12)

  1. Agustin Alba Chicar reporter

    @JChoclin @andres_fortier, reading the docs of Gazebo it has some predefined environment variables for this purpose. I think we should source the script <install_path>/share/gazebo/setup.sh this file in our docker image. Besides that, after sourcing that file, I think we can update the variable GAZEBO_RESOURCE_PATH with our samples directory from terminus and this repository for getting just the file names in the world samples. We should explain this in the README too. This is process is already done with the GAZEBO_PLUGIN_PATH variable. This change was introduced in this commit.

  2. Agustin Alba Chicar reporter

    @JChoclin @andres_fortier, researching in code a bit, we have an API provided by Gazebo to find files and retrieve the environment variables in code. This interface is provided in our Gazebo version too.

  3. Andrés Fortier

    I would try to keep this as much "Gazebo standard" as possible. From the docs it seems that GAZEBO_RESOURCE_PATH is the place where we should be putting the RNDFs, so that responsibility is on the user (we should however mention that in the README). Does that make sense to you? I would avoid wasting time on trying to append a new path to it, just make it clear to the user that this is the place where the rndf should go.

  4. Log in to comment