Add dependency to action_msgs when generating action interfaces#369
Add dependency to action_msgs when generating action interfaces#369jacobperron merged 4 commits intomasterfrom
Conversation
|
The current patch didn't work if the action is defined in an |
Do you have a recommendation how to identify if an action is being defined in an |
|
Instead of checking the extension it can check the directory name the interface file is located in. |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
7de9ef7 to
0239dba
Compare
|
Now we are checking the directory instead of the extension to infer if the interface is an action. The current problem is ensuring that |
|
Since |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
See ros2/example_interfaces#6 for how this makes life a little easier for users. |
|
Also a note about this "magic" should be added to the docblock of the macro. |
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
|
Looks like builds with OpenSplice aren't happy with this solution: http://build.ros2.org/job/Ddev__example_interfaces__ubuntu_bionic_amd64/4/ 😨 Edit: False alarm. |
| find_package(action_msgs QUIET) | ||
| if(NOT ${action_msgs_FOUND}) | ||
| message(FATAL_ERROR "Unable to generate action interface for '${_tuple_file}'. " | ||
| "In order to generate action interfaces you must add a depend tag for 'action_msgs' " |
Fixes ros2/rcl_interfaces#75
I'm not sure if this is the correct thing to do. @dirk-thomas, maybe you can tell me otherwise.