Closed StetroF closed 3 months ago
Hey @StetroF
Thanks for reporting the issue. I guess you are using one of the smac planners if I'm not wrong. This plugin was always tested with the NavFn planner while I developed it. I oversaw this issue, since NavFn planner for some reason has the same timestamps.
The solution for this is simply straightforward, would you be interested in sending us a PR? I will be happy to review it for you.
That seems sensible - just change to old_path.poses.back().pose == new_path.poses.back().pose
@StetroF are you open to submitting the PR to resolve :smile: I'd love to have you contribute your own patch in!
@StetroF are you open to submitting the PR to resolve 😄 I'd love to have you contribute your own patch in!
Sure! It's my first time to pull request. I will have try https://github.com/ros-navigation/navigation2/pull/4344
Thanks for the fix @StetroF :-)
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Return true if path is update
Actual behavior
return false because in this line:
old_path.poses.back() == new_path.poses.back();
It compare two different path's PoseStamped.But The PoseStamped's comparison contain time's compare and position's compare:Old path's last point's position is same as the new path's last point's position. Meanwhile, their timestamped is obviously different as i observed. So that even if the new path has updated. It will still return false.Which cause PathLongerOnApproach plugin out of action. By the way. I tested it in the situation that
use_sim_time : false