-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix bt navigator feedback in looping path #5864
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
Changes from 4 commits
ed2c2b3
69a9013
ae75f66
f1797fc
934d99e
81884b2
d613c4c
95b1239
1c4cb61
72a65b3
28bab96
28607de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1084,6 +1084,9 @@ Nav2Panel::onNewGoal(double x, double y, double theta, QString frame) | |
| syncTabsWithAccumulatedPoses(); // Sync tabs with new pose | ||
| } else { | ||
| acummulated_poses_ = nav_msgs::msg::Goals(); | ||
| // Reset goal index for single goal navigation | ||
|
Collaborator
Author
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. There are some issues with the rviz panel when doing single goal navigation:
However, I am not sure if this is the best place to add these
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. Got it - I default to your judgement on this
Collaborator
Author
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. Sorry, it seems that this introduced a minor bug, will open a PR tomorrow |
||
| goal_index_ = 0; | ||
| store_poses_.goals.push_back(pose); | ||
| updateWpNavigationMarkers(); | ||
| std::cout << "Start navigation" << std::endl; | ||
| startNavigation(pose); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -219,4 +219,14 @@ unsigned int removePosesAfterFirstConstraint( | |
| return first_after_constraint; | ||
| } | ||
|
|
||
| bool isPathUpdated( | ||
|
SteveMacenski marked this conversation as resolved.
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. Add a test for this plz Otherwise this PR looks good to me. I merged the docs as well
Collaborator
Author
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. Added, waiting for the ci to run again |
||
| nav_msgs::msg::Path & new_path, | ||
| nav_msgs::msg::Path & old_path) | ||
| { | ||
| return old_path.poses.size() != 0 && | ||
| new_path.poses.size() != 0 && | ||
| new_path.poses.size() != old_path.poses.size() && | ||
| old_path.poses.back().pose.position == new_path.poses.back().pose.position; | ||
| } | ||
|
|
||
| } // namespace nav2_util | ||
Uh oh!
There was an error while loading. Please reload this page.