Fixes for compiling with clang on macOS (arm64)#3831
Fixes for compiling with clang on macOS (arm64)#3831SteveMacenski merged 34 commits intoros-navigation:mainfrom
Conversation
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
|
@srmainwaring, your PR has failed to build. Please check CI outputs and resolve issues. |
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
…oolean Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
|
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 <[email protected]>
|
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 <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
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. |
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
Signed-off-by: Rhys Mainwaring <[email protected]>
…onstructor Signed-off-by: Rhys Mainwaring <[email protected]>
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 <[email protected]> * amcl: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * behavior_tree: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * behaviors: add missing override specifier Signed-off-by: Rhys Mainwaring <[email protected]> * bt_navigator: add missing override specifier Signed-off-by: Rhys Mainwaring <[email protected]> * collision_monitor: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * collision_monitor: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * constrained_smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: add missing override specifier Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: fix link issue for order_layer Signed-off-by: Rhys Mainwaring <[email protected]> * dwb_controller: fix clang compile issue, replace ulong with uint32_t Signed-off-by: Rhys Mainwaring <[email protected]> * map_server: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <[email protected]> * map_server: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <[email protected]> * waypoint_follower: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * waypoint_follower: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <[email protected]> * waypoint_follower: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <[email protected]> * smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * smoother: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * system_tests: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <[email protected]> * rotation_shim_controller: update percentage arg in setSpeedLimit to boolean Signed-off-by: Rhys Mainwaring <[email protected]> * planner: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * mppi_controller: replace use of auto as function param with templates Signed-off-by: Rhys Mainwaring <[email protected]> * mppi_controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: resolve clang issue with std::pair non-const copy Signed-off-by: Rhys Mainwaring <[email protected]> * smac_planner: suppress unused parameter warnings Signed-off-by: Rhys Mainwaring <[email protected]> * behavior_tree: fix code style Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: fix code style Signed-off-by: Rhys Mainwaring <[email protected]> * mppi_controller: revert reindexing of for-loop Signed-off-by: Rhys Mainwaring <[email protected]> * smoother: remove commented code Signed-off-by: Rhys Mainwaring <[email protected]> * system_tests: remove commented target link library Signed-off-by: Rhys Mainwaring <[email protected]> * collision_monitor: revert parameter type to vector and use explicit constructor Signed-off-by: Rhys Mainwaring <[email protected]> --------- Signed-off-by: Rhys Mainwaring <[email protected]> Signed-off-by: enricosutera <[email protected]>
* amcl: declare void parameter for functions with no args Signed-off-by: Rhys Mainwaring <[email protected]> * amcl: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * behavior_tree: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * behaviors: add missing override specifier Signed-off-by: Rhys Mainwaring <[email protected]> * bt_navigator: add missing override specifier Signed-off-by: Rhys Mainwaring <[email protected]> * collision_monitor: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * collision_monitor: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * constrained_smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: add missing override specifier Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: fix link issue for order_layer Signed-off-by: Rhys Mainwaring <[email protected]> * dwb_controller: fix clang compile issue, replace ulong with uint32_t Signed-off-by: Rhys Mainwaring <[email protected]> * map_server: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <[email protected]> * map_server: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <[email protected]> * waypoint_follower: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * waypoint_follower: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <[email protected]> * waypoint_follower: replace std::experimental::filesystem Signed-off-by: Rhys Mainwaring <[email protected]> * smoother: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * smoother: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * system_tests: remove dependency on stdc++fs Signed-off-by: Rhys Mainwaring <[email protected]> * rotation_shim_controller: update percentage arg in setSpeedLimit to boolean Signed-off-by: Rhys Mainwaring <[email protected]> * planner: remove unused variables Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * mppi_controller: replace use of auto as function param with templates Signed-off-by: Rhys Mainwaring <[email protected]> * mppi_controller: address clang compilation issues Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: resolve clang issue with std::pair non-const copy Signed-off-by: Rhys Mainwaring <[email protected]> * smac_planner: suppress unused parameter warnings Signed-off-by: Rhys Mainwaring <[email protected]> * behavior_tree: fix code style Signed-off-by: Rhys Mainwaring <[email protected]> * costmap_2d: fix code style Signed-off-by: Rhys Mainwaring <[email protected]> * mppi_controller: revert reindexing of for-loop Signed-off-by: Rhys Mainwaring <[email protected]> * smoother: remove commented code Signed-off-by: Rhys Mainwaring <[email protected]> * system_tests: remove commented target link library Signed-off-by: Rhys Mainwaring <[email protected]> * collision_monitor: revert parameter type to vector and use explicit constructor Signed-off-by: Rhys Mainwaring <[email protected]> --------- Signed-off-by: Rhys Mainwaring <[email protected]>
Basic Info
Description of contribution in a few bullet points
std::experimental::filesystemwithstd::filesystem).humblebranch.mainand 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: