-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Graceful Controller] Enhance approach goal logic #5947
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
Merged
SteveMacenski
merged 15 commits into
ros-navigation:main
from
sbgisen:feature/final-approach
Mar 4, 2026
+346
−23
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
00db7af
Enhance approach goal logic
Tacha-S 53706bc
Add test case for finding best approach
Tacha-S d789bc4
Cast static and validate safety_cost
Tacha-S b5635c2
Refactor max cost calculation
Tacha-S 95d38a0
Add validateTargetPoseOnApproach() and reduce unnecessary copies
Tacha-S 4637d96
Share speed limit
Tacha-S 26d1d52
Set lethal obstacle
Tacha-S a01e357
Spread risky cost to 0.5x0.5 region
Tacha-S 1994f1f
Remove shared max_velocity (managed inside smooth_control_law)
Tacha-S d356b00
Fix for reviews
Tacha-S 2bd3bdd
Suppress chattering
Tacha-S b65709f
Add comment
Tacha-S 72d9cfd
Refactor reuse condition
Tacha-S a2e5097
Fix redundancy
Tacha-S 3ae098b
Fix bug
Tacha-S File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,6 +76,10 @@ ParameterHandler::ParameterHandler( | |
| plugin_name_ + ".footprint_scaling_factor", 0.25); | ||
| params_.footprint_scaling_step = node->declare_or_get_parameter( | ||
| plugin_name_ + ".footprint_scaling_step", 0.1); | ||
| params_.obstacle_cost_margin = node->declare_or_get_parameter( | ||
| plugin_name_ + ".obstacle_cost_margin", 1); | ||
| params_.final_rotation_search_step = node->declare_or_get_parameter( | ||
| plugin_name_ + ".final_rotation_search_step", 0.1); | ||
|
Comment on lines
+79
to
+82
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sure to add a docs update for the configuration guide at docs.nav2.org |
||
| if (params_.initial_rotation && params_.allow_backward) { | ||
| RCLCPP_WARN( | ||
| logger_, "Initial rotation and allow backward parameters are both true, " | ||
|
|
@@ -172,6 +176,8 @@ ParameterHandler::updateParametersCallback( | |
| params_.footprint_scaling_factor = parameter.as_double(); | ||
| } else if (param_name == plugin_name_ + ".footprint_scaling_step") { | ||
| params_.footprint_scaling_step = parameter.as_double(); | ||
| } else if (param_name == plugin_name_ + ".final_rotation_search_step") { | ||
| params_.final_rotation_search_step = parameter.as_double(); | ||
| } | ||
| } else if (param_type == ParameterType::PARAMETER_BOOL) { | ||
| if (param_name == plugin_name_ + ".initial_rotation") { | ||
|
|
@@ -183,6 +189,10 @@ ParameterHandler::updateParametersCallback( | |
| } else if (param_name == plugin_name_ + ".use_collision_detection") { | ||
| params_.use_collision_detection = parameter.as_bool(); | ||
| } | ||
| } else if (param_type == ParameterType::PARAMETER_INTEGER) { | ||
| if (param_name == plugin_name_ + ".obstacle_cost_margin") { | ||
| params_.obstacle_cost_margin = parameter.as_int(); | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.