Use ament_cmake instead of ament_cmake_auto to improve stability#27
Draft
bmchalenv wants to merge 1 commit intoNVIDIA-ISAAC-ROS:mainfrom
Draft
Use ament_cmake instead of ament_cmake_auto to improve stability#27bmchalenv wants to merge 1 commit intoNVIDIA-ISAAC-ROS:mainfrom
bmchalenv wants to merge 1 commit intoNVIDIA-ISAAC-ROS:mainfrom
Conversation
Signed-off-by: Blake McHale <bmchale@nvidia.com>
Greptile OverviewGreptile SummaryAdded explicit
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant CMake as CMake Build System
participant AC as ament_cmake
participant ACA as ament_cmake_auto
participant PkgXML as package.xml
Dev->>CMake: Run colcon build
CMake->>CMake: Read CMakeLists.txt
CMake->>PkgXML: Check buildtool_depend declarations
PkgXML-->>CMake: ament_cmake + ament_cmake_auto declared
CMake->>AC: find_package(ament_cmake REQUIRED)
AC-->>CMake: Load ament_cmake macros
Note over AC: ament_target_dependencies()<br/>ament_package()<br/>ament_add_pytest_test()<br/>ament_add_gtest()
CMake->>ACA: find_package(ament_cmake_auto REQUIRED)
ACA-->>CMake: Load ament_cmake_auto macros
Note over ACA: ament_auto_find_build_dependencies()
CMake->>ACA: ament_auto_find_build_dependencies()
ACA->>PkgXML: Read <depend> tags
PkgXML-->>ACA: rclcpp, std_msgs, diagnostic_msgs, etc.
ACA->>CMake: Auto-find all dependencies
CMake->>Dev: Build succeeds with all dependencies resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build farm is erroring because of
ament_target_dependenciesnot being recognized. My current assumption is ament_cmake_auto is not properly callingfind_package(ament_cmake)and its not loading that macro. This works locally but has seen errors in the Build Farm.Most other major OSS ROS packages (nav2, ros2-control, etc) avoid the use of ament_cmake_auto so moving away it from it may make this project more stable for releases.