-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fixes for compiling with clang on macOS (arm64) #3831
Fixes for compiling with clang on macOS (arm64) #3831
Conversation
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
@srmainwaring, your PR has failed to build. Please check CI outputs and resolve issues. |
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
…oolean Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
The build failure looks like an API difference in Humble vs rolling. Its a trivial change, but one that would need to be made to compile |
I'm working through these now and will force push the changes once I've got a clean build. A couple of libraries in Rolling on macOS are proving tricky. Will shift back from draft once it's clear. |
2ed8fd9
to
1ec29db
Compare
What is the preferred treatment for unused parameters? float NodeLattice::getHeuristicCost(
const Coordinates & node_coords,
const Coordinates & goal_coords,
[[maybe_unused]] const nav2_costmap_2d::Costmap2D * costmap)
{ or float NodeLattice::getHeuristicCost(
const Coordinates & node_coords,
const Coordinates & goal_coords,
const nav2_costmap_2d::Costmap2D * /*costmap*/)
{ |
Second one. The C++98 in me will die kicking and screaming |
There's one error in the tests - it looks like a code style conflict from a test I edited, but still trying to interpret the CI message. |
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
I see 8 failing messages and if you click on each in the "Tests" tab, it shows you exactly the failure and where it is (and in some cases, what to do to fix it explicitly) |
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3831 +/- ##
===========================================
+ Coverage 64.15% 90.37% +26.21%
===========================================
Files 413 413
Lines 18241 18239 -2
===========================================
+ Hits 11703 16483 +4780
+ Misses 6538 1756 -4782
☔ View full report in Codecov by Sentry. |
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.
Overall LGTM!
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
…onstructor Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Yes, and on inspection from the line below my change I can see the data is a vector as well. This was the clang error: [ 97%] Building CXX object test/CMakeFiles/collision_monitor_node_test.dir/collision_monitor_node_test.cpp.o
/Users/rhys/Code/ros2/rolling/ros2-nav/src/navigation2/nav2_collision_monitor/test/collision_monitor_node_test.cpp:1026:61: error: braces around scalar initializer [-Werror,-Wbraced-scalar-init]
cm_->declare_parameter("polygons", rclcpp::ParameterValue({"Stop",}));
^~~~~~~~~
1 error generated. Not sure why it's not resolving the list to a |
btw - to build on macOS (and fully close #3828) there is a change needed to the |
* amcl: declare void parameter for functions with no args Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * amcl: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * behavior_tree: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * behaviors: add missing override specifier Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * bt_navigator: add missing override specifier Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * collision_monitor: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * collision_monitor: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * constrained_smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: add missing override specifier Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: fix link issue for order_layer Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * dwb_controller: fix clang compile issue, replace ulong with uint32_t Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * map_server: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * map_server: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * waypoint_follower: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * waypoint_follower: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * waypoint_follower: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smoother: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * system_tests: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * rotation_shim_controller: update percentage arg in setSpeedLimit to boolean Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * planner: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * mppi_controller: replace use of auto as function param with templates Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * mppi_controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: resolve clang issue with std::pair non-const copy Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smac_planner: suppress unused parameter warnings Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * behavior_tree: fix code style Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: fix code style Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * mppi_controller: revert reindexing of for-loop Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smoother: remove commented code Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * system_tests: remove commented target link library Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * collision_monitor: revert parameter type to vector and use explicit constructor Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> --------- Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> Signed-off-by: enricosutera <enricosutera@outlook.com>
* amcl: declare void parameter for functions with no args Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * amcl: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * behavior_tree: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * behaviors: add missing override specifier Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * bt_navigator: add missing override specifier Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * collision_monitor: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * collision_monitor: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * constrained_smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: add missing override specifier Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: fix link issue for order_layer Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * dwb_controller: fix clang compile issue, replace ulong with uint32_t Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * map_server: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * map_server: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * waypoint_follower: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * waypoint_follower: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * waypoint_follower: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smoother: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * system_tests: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * rotation_shim_controller: update percentage arg in setSpeedLimit to boolean Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * planner: remove unused variables Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * mppi_controller: replace use of auto as function param with templates Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * mppi_controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: resolve clang issue with std::pair non-const copy Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smac_planner: suppress unused parameter warnings Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * behavior_tree: fix code style Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * costmap_2d: fix code style Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * mppi_controller: revert reindexing of for-loop Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * smoother: remove commented code Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * system_tests: remove commented target link library Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> * collision_monitor: revert parameter type to vector and use explicit constructor Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com> --------- Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
Basic Info
Description of contribution in a few bullet points
std::experimental::filesystem
withstd::filesystem
).humble
branch.main
and built against ROS Rolling (the port of ROS Rolling to macOS is ongoing, so cannot fully test all nav2 libraries on macOS until that is complete).Description of documentation updates required from your changes
Future work that may be required in bullet points
For Maintainers: