-
Notifications
You must be signed in to change notification settings - Fork 9
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
unify CMakeLists.txt files #381
Conversation
WalkthroughThe recent changes across the Changes
Sequence Diagram(s)sequenceDiagram
participant CMake as CMakeLists.txt
participant FindPkg as find_package
participant Target as Target Executable
participant Install as Install
participant Include as Include Directories
CMake->>FindPkg: Define PACKAGE_DEPENDENCIES
loop for each dependency
FindPkg->>CMake: find_package(dependency)
end
CMake->>Target: ament_target_dependencies(Target, PACKAGE_DEPENDENCIES)
CMake->>Include: ament_export_include_directories(include)
CMake->>Install: install(DIRECTORY ...)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (11)
- panther_battery/CMakeLists.txt (8 hunks)
- panther_controller/CMakeLists.txt (1 hunks)
- panther_description/CMakeLists.txt (1 hunks)
- panther_diagnostics/CMakeLists.txt (2 hunks)
- panther_diagnostics/cmake/SuperBuild.cmake (1 hunks)
- panther_gazebo/CMakeLists.txt (2 hunks)
- panther_hardware_interfaces/CMakeLists.txt (12 hunks)
- panther_lights/CMakeLists.txt (3 hunks)
- panther_localization/CMakeLists.txt (1 hunks)
- panther_manager/CMakeLists.txt (6 hunks)
- panther_utils/CMakeLists.txt (2 hunks)
Files skipped from review due to trivial changes (5)
- panther_battery/CMakeLists.txt
- panther_controller/CMakeLists.txt
- panther_diagnostics/cmake/SuperBuild.cmake
- panther_gazebo/CMakeLists.txt
- panther_localization/CMakeLists.txt
Additional comments not posted (21)
panther_description/CMakeLists.txt (1)
11-11
: LGTM! The addition ofament_package()
is correct.The inclusion of
ament_package()
enhances the package's integration within the ROS framework.panther_diagnostics/CMakeLists.txt (4)
18-27
: LGTM! The renaming and restructuring of dependencies are correct.The changes improve clarity and maintainability by consolidating dependencies into a single variable.
29-30
: LGTM! The update to theforeach
loop is correct.The loop now iterates over
PACKAGE_DEPENDENCIES
, aligning with the renamed variable.
46-46
: LGTM! The update toament_target_dependencies
is correct.The call now uses the renamed
PACKAGE_DEPENDENCIES
variable.
64-64
: LGTM! The update toament_target_dependencies
in the test block is correct.The call now uses the renamed
PACKAGE_DEPENDENCIES
variable.panther_utils/CMakeLists.txt (3)
8-15
: LGTM! The creation ofPACKAGE_DEPENDENCIES
is correct.The consolidation of dependencies into a single variable improves clarity and maintainability.
17-19
: LGTM! The update to theforeach
loop is correct.The loop now iterates over
PACKAGE_DEPENDENCIES
, aligning with the consolidated variable.
76-78
: LGTM! The update toament_python_install_package
is correct.The command now uses
${PROJECT_NAME}
, enhancing flexibility and consistency.panther_lights/CMakeLists.txt (3)
8-19
: LGTM! Consolidation of package dependencies improves maintainability.The use of a single variable to list all required packages enhances readability and maintainability.
21-23
: LGTM! Theforeach
loop reduces redundancy.Using a loop to call
find_package
for each package inPACKAGE_DEPENDENCIES
enhances maintainability.
210-211
: LGTM! Improved structure for export commands.The structured format for exporting include directories and libraries enhances visibility and accessibility.
panther_hardware_interfaces/CMakeLists.txt (5)
Line range hint
18-37
: LGTM! Renaming variable to reflect broader scope.The renaming of
PACKAGE_INCLUDE_DEPENDS
toPACKAGE_DEPENDENCIES
enhances clarity by reflecting a broader scope of dependencies.
38-39
: LGTM! Consistent update offoreach
loop.Updating the
foreach
loop to iterate overPACKAGE_DEPENDENCIES
ensures consistency with the new variable name.
42-42
: LGTM! Ensuring necessary include paths.Specifying include directories using
include_directories(include)
ensures that the necessary include paths are available during compilation.
67-67
: LGTM! Correctly referencing updated dependency list.Updating
ament_target_dependencies
to usePACKAGE_DEPENDENCIES
ensures that the build system references the correct dependency list.
233-233
: LGTM! Correctly referencing export dependencies.Updating
ament_export_dependencies
to usePACKAGE_DEPENDENCIES
ensures that the export dependencies are correctly referenced.panther_manager/CMakeLists.txt (5)
Line range hint
8-21
: LGTM! Renaming variable to reflect broader scope.The renaming of
PACKAGE_INCLUDE_DEPENDS
toPACKAGE_DEPENDENCIES
enhances clarity by reflecting a broader scope of dependencies.
22-23
: LGTM! Consistent update offoreach
loop.Updating the
foreach
loop to iterate overPACKAGE_DEPENDENCIES
ensures consistency with the new variable name.
60-60
: LGTM! Correctly referencing updated dependency list.Updating
ament_target_dependencies
to usePACKAGE_DEPENDENCIES
ensures that the build system references the correct dependency list.
102-107
: LGTM! Enhancing flexibility of include directories.Modifying
target_include_directories
to include both build and install interface paths improves modularity and reusability.
157-157
: LGTM! Correctly referencing updated dependency list for test targets.Updating
ament_target_dependencies
to usePACKAGE_DEPENDENCIES
ensures that the build system references the correct dependency list for the test targets.
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.
PACKAGE_DEPENDENCIES
in some files look like this:
dep1
dep2
dep3
And in other files:
dep1 dep2 dep3
* New format of documentation (#369) * Change 3 package for demo * Improve ROS_API * fix links * Update * Update * Table improvements * Format * Save work * Save work * update * fix * fix * fix * fix * fix * Add API warning * Improve links * lights simplify * Create CONFIGURATION.md files * Typos * pre-commit * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Save work * Final unification * Delete trash * typos * Update README.md * Update ROS_API.md * Update ROS_API.md * Update README.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Change initial warning to beta warning * improve warn rendering * rendering * Update Diagram * Add Dawid suggestions * Dot * Change diagram ext and typos * Do not describe external nodes * Add Dawid suggestons * Add last Dawid suggestions * Format * Pawel suggestions * Diagram improvements * Update * Diagram Visual --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Change scheme theme (#380) * unify CMakeLists.txt files (#381) * First working version * Ros2 increase bt service timeout (#382) * Parametrize and increase service timeout in managers * Format panther API drawio file * Add Estop GUI and docs --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Paweł Irzyk <108666440+pawelirh@users.noreply.github.com> Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com>
* Implement testing POC * Namespace refactor * Add EStop to Gazebo * unify CMakeLists.txt files * Add dependencies * Add remapping * Rename files in panther_diagnostics package * Update after changes in panther_diagnostics * Rename config and launch file in manager package * Correct include guards in manager package * Restructure files tree in manager tests * Ros2 estop sim gui (#384) * New format of documentation (#369) * Change 3 package for demo * Improve ROS_API * fix links * Update * Update * Table improvements * Format * Save work * Save work * update * fix * fix * fix * fix * fix * Add API warning * Improve links * lights simplify * Create CONFIGURATION.md files * Typos * pre-commit * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Save work * Final unification * Delete trash * typos * Update README.md * Update ROS_API.md * Update ROS_API.md * Update README.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Change initial warning to beta warning * improve warn rendering * rendering * Update Diagram * Add Dawid suggestions * Dot * Change diagram ext and typos * Do not describe external nodes * Add Dawid suggestons * Add last Dawid suggestions * Format * Pawel suggestions * Diagram improvements * Update * Diagram Visual --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Change scheme theme (#380) * unify CMakeLists.txt files (#381) * First working version * Ros2 increase bt service timeout (#382) * Parametrize and increase service timeout in managers * Format panther API drawio file * Add Estop GUI and docs --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Paweł Irzyk <108666440+pawelirh@users.noreply.github.com> Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com> * Update panther_gazebo/panther_hardware_plugins.xml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Add david suggestion and change gui layout * Typos in Readme + estop publish on service call * Reorganize files in panther_lights * UPdate include guards in panther_lights * Reorganize files in panther_battery * Move estop to plugins folder * add nmea gps * Rename battery driver files * Rename shutdown hosts config * Inherit from IgnitionSystem * Change to Estop -> EStop * Reorganize panther_hardware_interfaces files * Dawid suggestions part 1 * Rename PantherSystem -> GzPantherSystem * Update references to files * Rename battery exec * Fix links in documentations (#387) * Refer to header files * Update panther_gazebo/include/panther_gazebo/gz_panther_system.hpp Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com> * Update panther_gazebo/src/gz_panther_system.cpp Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com> * Update panther_gazebo/src/gz_panther_system.cpp Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com> * Dawid suggestions * delete typo * Minor modifications * Move BT plugins to src directory * Reorganize test utilities in hardware_interfaces * Merge remote-tracking branch 'origin/ros2-devel' into ros2-testing-poc * Add missing module configuration * Update panther_gazebo/include/panther_gazebo/gz_panther_system.hpp Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com> * Dawid suggestions * update docs * Extend filesystem responsibility * Update ROS_API.md Co-authored-by: Paweł Irzyk <108666440+pawelirh@users.noreply.github.com> * update names * Add new common utility functions * System monitor improvements * Round temperature precision * Implement filesystem unit tests * Formatting * Add integration tests condition * Update ROS_API.md * Review changes * Add pre-commit workflow (#395) --------- Co-authored-by: pawelirh <pawel.irzyk@husarion.com> Co-authored-by: rafal-gorecki <rafal.gorecki@husarion.com> Co-authored-by: Dawid <kmakd197@gmail.com> Co-authored-by: rafal-gorecki <126687345+rafal-gorecki@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Paweł Irzyk <108666440+pawelirh@users.noreply.github.com> Co-authored-by: Dawid Kmak <73443304+KmakD@users.noreply.github.com>
Description
[Summary of the changes]
Modifications
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores