Skip to content

Conversation

@david-wb
Copy link
Contributor

@david-wb david-wb commented Dec 5, 2024


Basic Info

Info Please fill out this column
Ticket(s) this addresses #4783
Primary OS tested on Ubuntu
Robotic platform tested on Gazebo sim of custom robot
Does this PR contain AI generated software? No

Description of contribution in a few bullet points

Adds a new bool param called no_collision_checks to the DriveOnHeading and BackUp actions. When the param is set to true, collision checking is disabled on these actions. This is useful, for example, when you want to push through known obstacles.

Description of documentation updates required from your changes

Updated the README for the commander API to include the flag in the listed example.

The new param needs to be added to the docs page.

Future work that may be required in bullet points

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

David Brown and others added 3 commits December 4, 2024 10:50
…lision checking

Signed-off-by: David Brown <david.brown@inria.fr>
Signed-off-by: David Brown <david.brown@inria.fr>
Signed-off-by: David Brown <davewbrwn@gmail.com>
@david-wb david-wb changed the title Disable collision checking param new param to disable collision checking in DriveOnHeading and BackUp actions Dec 5, 2024
Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise generally looks good to me! The BT node config guide pages need updating with the new port, migration guide to highlight this change

Signed-off-by: David Brown <davewbrwn@gmail.com>
Signed-off-by: David Brown <davewbrwn@gmail.com>
Signed-off-by: David Brown <davewbrwn@gmail.com>
@codecov
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
...v2_behavior_tree/plugins/action/back_up_action.hpp 100.00% <100.00%> (ø)
...or_tree/plugins/action/drive_on_heading_action.hpp 100.00% <100.00%> (ø)
.../nav2_behavior_tree/plugins/action/spin_action.hpp 100.00% <100.00%> (ø)
...v2_behavior_tree/plugins/action/back_up_action.cpp 90.00% <100.00%> (+0.71%) ⬆️
...or_tree/plugins/action/drive_on_heading_action.cpp 90.00% <100.00%> (+0.71%) ⬆️
...nclude/nav2_behaviors/plugins/drive_on_heading.hpp 93.24% <100.00%> (+0.28%) ⬆️
..._behaviors/include/nav2_behaviors/plugins/spin.hpp 100.00% <ø> (ø)
nav2_behaviors/plugins/back_up.cpp 86.66% <100.00%> (+0.95%) ⬆️
nav2_behaviors/plugins/spin.cpp 90.24% <100.00%> (+0.24%) ⬆️

... and 2 files with indirect coverage changes

@david-wb david-wb marked this pull request as ready for review December 6, 2024 08:10
@david-wb
Copy link
Contributor Author

david-wb commented Dec 6, 2024

Otherwise generally looks good to me! The BT node config guide pages need updating with the new port, migration guide to highlight this change

I'm not yet up to speed on the release process. Would this change be published as an update to the nav2 Jazzy package (ros-jazzy-navigation2 or will it not be available until the next ros2 release? I think I need to update the jazzy.rst migration guide, is that right?

Signed-off-by: David Brown <davewbrwn@gmail.com>
Signed-off-by: David Brown <davewbrwn@gmail.com>
@david-wb
Copy link
Contributor Author

david-wb commented Dec 6, 2024

Here is the corresponding docs PR: ros-navigation/docs.nav2.org#617

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small details - but otherwise LGTM!

Signed-off-by: David Brown <davewbrwn@gmail.com>
Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on CI + docs PR to be updated to a non-draft state

@david-wb
Copy link
Contributor Author

david-wb commented Dec 6, 2024

Looks like a couple opennav_docking tests are failing.

@SteveMacenski
Copy link
Member

I retriggered. I think its just a flaky test. I dont see why this would cause that. Please update the docs PR - I suspect it’ll pass this time 🙂

@SteveMacenski SteveMacenski merged commit 684a4d0 into ros-navigation:main Dec 10, 2024
11 checks passed
@SteveMacenski
Copy link
Member

@david-wb thanks, this is a great contribution!

masf7g pushed a commit to quasi-robotics/navigation2 that referenced this pull request Dec 19, 2024
…actions (ros-navigation#4785)

* add parameter to the DriveOnHeading and BackUp actions to disable collision checking

Signed-off-by: David Brown <david.brown@inria.fr>

* update commander api

Signed-off-by: David Brown <david.brown@inria.fr>

* use a less verbose param name

Signed-off-by: David Brown <davewbrwn@gmail.com>

* fix flake8 error

Signed-off-by: David Brown <davewbrwn@gmail.com>

* rename param

Signed-off-by: David Brown <davewbrwn@gmail.com>

* set defaults in action messages and popular instance field for param

Signed-off-by: David Brown <davewbrwn@gmail.com>

* populate field in backup action as well

Signed-off-by: David Brown <davewbrwn@gmail.com>

* also add the new param to the spin action

Signed-off-by: David Brown <davewbrwn@gmail.com>

* fix incorrect type

Signed-off-by: David Brown <davewbrwn@gmail.com>

---------

Signed-off-by: David Brown <david.brown@inria.fr>
Signed-off-by: David Brown <davewbrwn@gmail.com>
Co-authored-by: David Brown <david.brown@inria.fr>
cheriehu pushed a commit to cheriehu/navigation2 that referenced this pull request Dec 26, 2024
…actions (ros-navigation#4785)

* add parameter to the DriveOnHeading and BackUp actions to disable collision checking

Signed-off-by: David Brown <david.brown@inria.fr>

* update commander api

Signed-off-by: David Brown <david.brown@inria.fr>

* use a less verbose param name

Signed-off-by: David Brown <davewbrwn@gmail.com>

* fix flake8 error

Signed-off-by: David Brown <davewbrwn@gmail.com>

* rename param

Signed-off-by: David Brown <davewbrwn@gmail.com>

* set defaults in action messages and popular instance field for param

Signed-off-by: David Brown <davewbrwn@gmail.com>

* populate field in backup action as well

Signed-off-by: David Brown <davewbrwn@gmail.com>

* also add the new param to the spin action

Signed-off-by: David Brown <davewbrwn@gmail.com>

* fix incorrect type

Signed-off-by: David Brown <davewbrwn@gmail.com>

---------

Signed-off-by: David Brown <david.brown@inria.fr>
Signed-off-by: David Brown <davewbrwn@gmail.com>
Co-authored-by: David Brown <david.brown@inria.fr>
stevedanomodolor pushed a commit to stevedanomodolor/navigation2 that referenced this pull request Apr 29, 2025
…actions (ros-navigation#4785)

* add parameter to the DriveOnHeading and BackUp actions to disable collision checking

Signed-off-by: David Brown <david.brown@inria.fr>

* update commander api

Signed-off-by: David Brown <david.brown@inria.fr>

* use a less verbose param name

Signed-off-by: David Brown <davewbrwn@gmail.com>

* fix flake8 error

Signed-off-by: David Brown <davewbrwn@gmail.com>

* rename param

Signed-off-by: David Brown <davewbrwn@gmail.com>

* set defaults in action messages and popular instance field for param

Signed-off-by: David Brown <davewbrwn@gmail.com>

* populate field in backup action as well

Signed-off-by: David Brown <davewbrwn@gmail.com>

* also add the new param to the spin action

Signed-off-by: David Brown <davewbrwn@gmail.com>

* fix incorrect type

Signed-off-by: David Brown <davewbrwn@gmail.com>

---------

Signed-off-by: David Brown <david.brown@inria.fr>
Signed-off-by: David Brown <davewbrwn@gmail.com>
Co-authored-by: David Brown <david.brown@inria.fr>
Signed-off-by: stevedanomodolor <stevedan.o.omodolor@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants