srmainwaring / asv_wave_sim

This package contains plugins that support the simulation of waves and surface vessels in Gazebo.
GNU General Public License v3.0
122 stars 34 forks source link

Link level buoyancy should not need top-level model scope #126

Open srmainwaring opened 1 year ago

srmainwaring commented 1 year ago

PR https://github.com/srmainwaring/asv_wave_sim/pull/65 introduced the ability to enable hydrodynamics at link level using an <enable> element.

Currently the link must be fully scoped in the namespace of the enclosing model. This limits the reusability of models containing the hydrodynamics plugin as when they are including with a <name> element, the scoped name of the link changes and the hydrodynamics is not applied.

The proposed change is to not require the immediate enclosing model's name in the scoping rules.

Examples:

where we suppose that the plugin is defined in the scope of model.

Questions: