ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

What does the export tag mean?

asked 2017-01-13 03:43:33 -0500

kaldo gravatar image

I am not sure what the export tag (and what you put inside) imply.

For instance :

<name>my_pkg</name>
...
<export>
    <gazebo_ros gazebo_model_path="${prefix}/models"/>
</export>

Is it some kind of argument that is passed to gazebo_ros, each time gazebo_ros is called from my_pkg ? For instance, like this :

(example.launch, from my_pkg:)

<launch>
    <node name="node" pkg="gazebo_ros" type="script.sh" />
</launch>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-01-13 04:33:30 -0500

gvdhoorn gravatar image

updated 2017-01-13 04:35:40 -0500

Is it some kind of argument that is passed to gazebo_ros, each time gazebo_ros is called from my_pkg ?

Almost, but no (at least not directly).

From REP-140: Package Manifest Format Two Specification - Data Representation - export:

This tag serves as a container for additional information various packages and subsystems need to embed. To avoid potential collisions, an export tag should have the same name as the package which is meant to process it. The content of that tag is up to the package to define and use.

It basically allows packages to provide extra or required information to packages they "extend" (and here I use that term to mean: for which they provide additional functionality, artefacts, anything, beyond the restricted OOP definition). In this case, Gazebo will know how to use the information you put in the gazebo_ros child element (but it has to go and fetch that information itself (via rospkg fi), that is why I wrote "not directly").

You can see the gazebo_ros_paths_plugin plugin doing that here.

edit flag offensive delete link more

Comments

It's much clearer now, thanks!

kaldo gravatar image kaldo  ( 2017-01-13 14:02:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-13 03:43:33 -0500

Seen: 807 times

Last updated: Jan 13 '17