Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMPL "request adapters" parameter isn't read properly #1075

Closed
AndyZe opened this issue Feb 14, 2022 · 4 comments
Closed

OMPL "request adapters" parameter isn't read properly #1075

AndyZe opened this issue Feb 14, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@AndyZe
Copy link
Member

AndyZe commented Feb 14, 2022

Description

Modifying the "request adapter" in a MoveGroup launch file does not have any effect.

Your environment

  • ROS Distro: ROS2 Rolling
  • Source build, main branch

Steps to reproduce

Edit this line in panda_moveit_config/demo.launch.py:

"request_adapters": """default_planner_request_adapters/AddTimeOptimalParameterization default_planner_request_adapters/ResolveConstraintFrames default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStatePathConstraints""",

Change it to something invalid like this:

"request_adapters": """test""",

Then run the launch file:

ros2 launch moveit_resources_panda_moveit_config demo.launch.py

You should see some terminal output indicating it is still using the default request adapters:

[move_group-4] [INFO] [1644848949.048494917] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Add Time Parameterization'
[move_group-4] [INFO] [1644848949.048507989] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Resolve constraint frames to robot links'
[move_group-4] [INFO] [1644848949.048512591] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Workspace Bounds'
[move_group-4] [INFO] [1644848949.048516398] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Start State Bounds'
[move_group-4] [INFO] [1644848949.048519733] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Start State In Collision'
[move_group-4] [INFO] [1644848949.048523060] [moveit.ros_planning.planning_pipeline]: Using planning request adapter 'Fix Start State Path Constraints'
@AndyZe AndyZe added the bug Something isn't working label Feb 14, 2022
@AndyZe AndyZe changed the title OMPL "request adapters" parameters aren't read properly OMPL "request adapters" parameter isn't read properly Feb 14, 2022
@AndyZe
Copy link
Member Author

AndyZe commented Feb 14, 2022

This isn't caused by any recent commit. I went back to version 2.4.0 and it has the same issue.

In October 31 2021 it was working properly. (I know so because of this PR).

@henningkayser
Copy link
Member

henningkayser commented Feb 14, 2022

I'm not sure move_group is the right namespace here. I would imagine that the planning pipeline is simply initialized to ompl by default and the provided parameter does nothing. Please try using the mapped pipeline names to make sure that the parameters are loaded correctly, or better use moveit_configs_utils like in the tutorials https://github.com/ros-planning/moveit_resources/blob/ros2/panda_moveit_config/launch/demo.launch.py#L69 and configure the request adapters in the yaml file https://github.com/ros-planning/moveit_resources/blob/ros2/panda_moveit_config/config/ompl_planning.yaml#L2

@JafarAbdi should we update moveit_resources so that others don't run into this as well?

@AndyZe
Copy link
Member Author

AndyZe commented Feb 14, 2022

Yes, making the change I wanted in ompl_planning.yaml has the effect I wanted. 👍

So the demo.launch.py file is just deprecated?

@henningkayser
Copy link
Member

henningkayser commented Feb 14, 2022

Yes, making the change I wanted in ompl_planning.yaml has the effect I wanted. +1

Great!

So the demo.launch.py file is just deprecated?

The launch file should work in theory, but I really think the parameter namespace is broken. We should probably recommend using moveit_configs_utils moving forward, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants