-
Notifications
You must be signed in to change notification settings - Fork 501
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
Put hybrid planning actions under a common namespace #932
Conversation
Codecov Report
@@ Coverage Diff @@
## main #932 +/- ##
==========================================
- Coverage 57.91% 57.90% -0.01%
==========================================
Files 310 310
Lines 26069 26091 +22
==========================================
+ Hits 15095 15105 +10
- Misses 10974 10986 +12
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes a lot of sense to use a common namespace here. Using private topics like suggested in the comment is really an option that we should consider, but not strictly necessary here
...ros/hybrid_planning/global_planner/global_planner_component/src/global_planner_component.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GLOBAL_PLANNING_ACTION_NAME
, LOCAL_PLANNING_ACTION_NAME
, and RUN_HYBRID_PLANNING_ACTION_NAME
are being duplicated in different files, should we move them to a new header file and include that file ?
that would make a lot of sense |
Where would you suggest putting that header file? It doesn't belong in any of the folders that exist right now: |
good question, the directory structure doesn't really allow common resources. Thinking about this more, it could make sense to move the directories into top-level |
OK, I put the namespace stuff in a common header file. I find the
|
...anning/hybrid_planning_common/include/moveit/hybrid_planning_common/hybrid_planning_common.h
Outdated
Show resolved
Hide resolved
Co-authored-by: Jafar Abdi <cafer.abdi@gmail.com>
The
So I'm going to suggest we pass an action_namespace parameter from the launch files. |
021fe79
to
7aada5b
Compare
OK, I moved the action name parameters to a common config file. I think this is nice, it fits well with the other config files that already exist:
|
This groups the hybrid planning action names together so they are easy to find, for example, with
ros2 action list
.We're starting to use hybrid planning with a dual arm setup, so cleaning up the interface is becoming more important to me.
Test with the usual hybrid planning demo:
ros2 launch moveit_hybrid_planning hybrid_planning_demo.launch.py