-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix ROS2 launch file install rule not installing launch subfolder #243
Conversation
ROS2 launch file snippet had incorrect path to foxglove bridge launch file (../../launch/foxglove_bridge_launch instead of ../../foxglove_bridge_launch)
Fixes #242 |
Is this a foxglove_bridge bug? |
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.
Thanks for the contribution!
While this change is technically correct, I think it would be better to fix the install rule by removing the trailing slash on line 258. The launch file should be installed in the launch
directory, but the current install rules installed it in the package share root directory.
ros-foxglove-bridge/CMakeLists.txt
Lines 258 to 260 in e336bbc
install(DIRECTORY ros2_foxglove_bridge/launch/ | |
DESTINATION share/${PROJECT_NAME}/ | |
) |
No, this is due to Edit: Merged a PR that fixes melodic CI builds |
### Public-Facing Changes Use `--include-eol-distros` for `rosdep` to fix melodic builds ### Description Fixes melodic CI builds since melodic is EOL See also #243 (comment)
I've updated my branch with that change |
Change might have made the CI tests failed, investigating |
CMakeLists.txt
Outdated
@@ -256,7 +256,7 @@ elseif(ROS_BUILD_TYPE STREQUAL "ament_cmake") | |||
RUNTIME DESTINATION bin | |||
) | |||
install(DIRECTORY ros2_foxglove_bridge/launch/ | |||
DESTINATION share/${PROJECT_NAME}/ | |||
DESTINATION share/${PROJECT_NAME} |
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.
I think you have to remove the trailing slash one line above (L258)
I have added the required change. Thanks for your contribution @memtech3! |
Thanks! Can you explain the cmake behavior? I'm a little new to C++ and ROS2 |
Public-Facing Changes
Fix ROS2 launch file install rule not installing launch subfolder
Description
ROS2 launch file snippet in README.md had incorrect path to foxglove bridge launch file
<include file="$(find-pkg-share foxglove_bridge)/launch/foxglove_bridge_launch.xml">
. Path should be<include file="$(find-pkg-share foxglove_bridge)/foxglove_bridge_launch.xml">
Fixes #242
Fixes FG-4181