Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

actionlib_msgs deprecation warning when building ros1_bridge #267

Closed
nuclearsandwich opened this issue Feb 25, 2020 · 4 comments · Fixed by ros2/ros1_bridge#245
Closed
Assignees

Comments

@nuclearsandwich
Copy link
Member

Affected jobs

Introduced by ros2/common_interfaces#75

The warning is generated in ament_cmake which handles the deprecated state from package.xml.

Possible resolutions:

  • Un-deprecate the package
  • Update ament_cmake to allow a consuming package to skip the warning. CMake has a separate DEPRECATION message class which may be useful there https://cmake.org/cmake/help/v3.0/command/message.html
  • Suppress this specific deprecation warning in ROS 2 CI configurations as we do for unused variable warnings.

Suppressing the deprecation in situ in ros1_bridge's CMakeLists.txt holds the most appeal to me. How practical that is depends on how we design the ament_cmake change.

@jacobperron
Copy link
Member

+1 for the second option, switching to a DEPRECATION message in ament_cmake. I'll look into how straight forward this can be ignored in the consuming package (ros1_bridge).

@dirk-thomas
Copy link
Member

dirk-thomas commented Feb 25, 2020

I don't think that we want to blindly hide all CMake deprecation messages. So 👎 for doing that.

I prefer option 3 2: ros1_bridge sets a flag to explicitly skip the deprecation message from actionlib_msgs and only that message.

@jacobperron
Copy link
Member

jacobperron commented Feb 26, 2020

I prefer option 3 2: ros1_bridge sets a flag to explicitly skip the deprecation message from actionlib_msgs and only that message.

This is what I was thinking; I guess it should be possible.

Edit: err, but potentially skipping all deprecation warnings coming from actionlib_msgs, not just the one coming from ament_cmake.

@nuclearsandwich
Copy link
Member Author

Thanks @jacobperron 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants