You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consistent parameter loading for different motion planning pipelines #892
hybrid_planning and moveit_task_constructor are two components of MoveIt that are currently supposed to work with interchangeable planning pipelines, e.g. CHOMP and OMPL.
This gets tricky in ROS2 because CHOMP and OMPL have different parameters and we don't know what they will be ahead of time. So, hard-coded versions of declare_parameter are not really possible.
One way to get around this in some cases is to set node_options.automatically_declare_parameters_from_overrides(true);. Then, whatever you have in the yaml file will be automatically declared. I think this is a decent solution but it doesn't do any type or error catching.
node_options.automatically_declare_parameters_from_overrides(true); does not work for plugins because the constructor is passed a const node_options argument, e.g.
If each component/plugin that needs parameters declares and loads its own parameters then it should work. Is that what you mean when you say OMPL could load it's own parameters in the OMPL interface?
It is probably also worth reviewing what ros2_control is doing for this as they have a similar situation where they don't know what parameters they need until they load plugins.
changed the title [-]Consistent parameter loading for the different motion planning pipelines[/-][+]Consistent parameter loading for different motion planning pipelines[/+]on Dec 6, 2021
Activity
tylerjw commentedon Dec 6, 2021
If each component/plugin that needs parameters declares and loads its own parameters then it should work. Is that what you mean when you say OMPL could load it's own parameters in the OMPL interface?
tylerjw commentedon Dec 6, 2021
It is probably also worth reviewing what ros2_control is doing for this as they have a similar situation where they don't know what parameters they need until they load plugins.
[-]Consistent parameter loading for the different motion planning pipelines[/-][+]Consistent parameter loading for different motion planning pipelines[/+]