Repository navigation
Proper cleanup in asymmetric_inflation_tests - #6487
Merged
nirwester merged 1 commit intoSep 13, 2026
Merged
Conversation
…ource cleanup Signed-off-by: Tony Najjar <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
8 tasks
SteveMacenski
pushed a commit
that referenced
this pull request
Sep 14, 2026
…ource cleanup (#6487) (#6508) (cherry picked from commit f31c7f4) Signed-off-by: Tony Najjar <[email protected]> Co-authored-by: Tony Najjar <[email protected]>
8 tasks
mbloechli
pushed a commit
to Duatic/navigation2
that referenced
this pull request
Oct 23, 2026
Backport of ros-navigation#6487. The integration tests initialised and shut down rclcpp from a global fixture, which ran at process exit and hung under Zenoh. main() now owns rclcpp::init and rclcpp::shutdown, and the fixture's TearDown releases the layer, costmap, TF buffer and node first. Resolved against Jazzy's nav2_util::LifecycleNode and tf2_ros::Buffer members. (cherry picked from commit f31c7f4) Signed-off-by: mbloechli <[email protected]>
8 tasks
mbloechli
pushed a commit
to Duatic/navigation2
that referenced
this pull request
Oct 23, 2026
Backport of ros-navigation#6487. The integration tests initialised and shut down rclcpp from a global fixture, which ran at process exit and hung under Zenoh. main() now owns rclcpp::init and rclcpp::shutdown, and the fixture's TearDown releases the layer, costmap, TF buffer and node first. Resolved against Kilted's nav2_util::LifecycleNode and tf2_ros::Buffer members. (cherry picked from commit f31c7f4) Signed-off-by: mbloechli <[email protected]>
SteveMacenski
pushed a commit
that referenced
this pull request
Oct 27, 2026
…-aware lane-keeping (backport #6118 & #6487) (#6688) * feat(nav2_costmap_2d): backport AsymmetricInflationLayer to Jazzy Backport of #6118. Upstream builds the layer on the distance transform InflationLayer from #5933, which Jazzy does not have, so the layer is ported onto Jazzy's InflationLayer instead: * Pass 1 uses Jazzy's InflationLayer::updateCosts for the symmetric baseline. Pass 2 matches upstream and uses distance_transform.hpp, taken unchanged from #5933. Nothing else from #5933 is backported, so Jazzy's InflationLayer keeps its implementation and class layout. * Parameters are declared with Layer::declareParameter, and a single on-set callback validates and applies them, as in Jazzy's other layers. * num_threads and the OpenMP loop are dropped, since Jazzy builds the layers without OpenMP. * plan_topic is resolved in the costmap's parent namespace inside the layer, because Jazzy's Layer has no joinWithParentNamespace. * Includes the null check on the first path message from #6281. * The benchmark is dropped, as Jazzy has no costmap benchmark suite. The tests follow the same changes: nav2_util::LifecycleNode, no activate, deactivate or num_threads cases, and a new case for rejecting negative parameters. (cherry picked from commit 6a8161e) Signed-off-by: mbloechli <[email protected]> * test(nav2_costmap_2d): clean up rclcpp in asymmetric inflation tests Backport of #6487. The integration tests initialised and shut down rclcpp from a global fixture, which ran at process exit and hung under Zenoh. main() now owns rclcpp::init and rclcpp::shutdown, and the fixture's TearDown releases the layer, costmap, TF buffer and node first. Resolved against Jazzy's nav2_util::LifecycleNode and tf2_ros::Buffer members. (cherry picked from commit f31c7f4) Signed-off-by: mbloechli <[email protected]> --------- Signed-off-by: mbloechli <[email protected]> Co-authored-by: Tony Najjar <[email protected]>
SteveMacenski
pushed a commit
that referenced
this pull request
Oct 27, 2026
…-aware lane-keeping (backport #6118 & #6487) (#6689) * feat(nav2_costmap_2d): backport AsymmetricInflationLayer to Kilted Backport of #6118. Upstream builds the layer on the distance transform InflationLayer from #5933, which Kilted does not have, so the layer is ported onto Kilted's InflationLayer instead, as in the Jazzy backport: * Pass 1 uses Kilted's InflationLayer::updateCosts for the symmetric baseline. Pass 2 matches upstream and uses distance_transform.hpp, taken unchanged from #5933. Nothing else from #5933 is backported, so Kilted's InflationLayer keeps its implementation and class layout. * distance_transform.hpp needs Eigen, so Eigen3 is added as a dependency of the layers library and exported, as #5933 does upstream. * Parameters are declared with Layer::declareParameter, and a single on-set callback validates and applies them, as in Kilted's other layers. * num_threads and the OpenMP loop are dropped, since Kilted builds the layers without OpenMP. * Includes the null check on the first path message from #6281. * The benchmark is dropped, as Kilted has no costmap benchmark suite. The tests follow the same changes: nav2_util::LifecycleNode, no activate, deactivate or num_threads cases, a new case for rejecting negative parameters and one for resolving plan_topic. (cherry picked from commit 6a8161e) Signed-off-by: mbloechli <[email protected]> * test(nav2_costmap_2d): clean up rclcpp in asymmetric inflation tests Backport of #6487. The integration tests initialised and shut down rclcpp from a global fixture, which ran at process exit and hung under Zenoh. main() now owns rclcpp::init and rclcpp::shutdown, and the fixture's TearDown releases the layer, costmap, TF buffer and node first. Resolved against Kilted's nav2_util::LifecycleNode and tf2_ros::Buffer members. (cherry picked from commit f31c7f4) Signed-off-by: mbloechli <[email protected]> --------- Signed-off-by: mbloechli <[email protected]> Co-authored-by: Tony Najjar <[email protected]>
Rooteq
pushed a commit
to Rooteq/navigation2
that referenced
this pull request
Nov 9, 2026
…-aware lane-keeping (backport ros-navigation#6118 & ros-navigation#6487) (ros-navigation#6688) * feat(nav2_costmap_2d): backport AsymmetricInflationLayer to Jazzy Backport of ros-navigation#6118. Upstream builds the layer on the distance transform InflationLayer from ros-navigation#5933, which Jazzy does not have, so the layer is ported onto Jazzy's InflationLayer instead: * Pass 1 uses Jazzy's InflationLayer::updateCosts for the symmetric baseline. Pass 2 matches upstream and uses distance_transform.hpp, taken unchanged from ros-navigation#5933. Nothing else from ros-navigation#5933 is backported, so Jazzy's InflationLayer keeps its implementation and class layout. * Parameters are declared with Layer::declareParameter, and a single on-set callback validates and applies them, as in Jazzy's other layers. * num_threads and the OpenMP loop are dropped, since Jazzy builds the layers without OpenMP. * plan_topic is resolved in the costmap's parent namespace inside the layer, because Jazzy's Layer has no joinWithParentNamespace. * Includes the null check on the first path message from ros-navigation#6281. * The benchmark is dropped, as Jazzy has no costmap benchmark suite. The tests follow the same changes: nav2_util::LifecycleNode, no activate, deactivate or num_threads cases, and a new case for rejecting negative parameters. (cherry picked from commit 6a8161e) Signed-off-by: mbloechli <[email protected]> * test(nav2_costmap_2d): clean up rclcpp in asymmetric inflation tests Backport of ros-navigation#6487. The integration tests initialised and shut down rclcpp from a global fixture, which ran at process exit and hung under Zenoh. main() now owns rclcpp::init and rclcpp::shutdown, and the fixture's TearDown releases the layer, costmap, TF buffer and node first. Resolved against Jazzy's nav2_util::LifecycleNode and tf2_ros::Buffer members. (cherry picked from commit f31c7f4) Signed-off-by: mbloechli <[email protected]> --------- Signed-off-by: mbloechli <[email protected]> Co-authored-by: Tony Najjar <[email protected]>
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.
Basic Info
Description of contribution in a few bullet points
Without this fix it hangs for me with Zenoh
Description of documentation updates required from your changes
Description of how this change was tested
Future work that may be required in bullet points
For Maintainers:
backport-*.