-
Notifications
You must be signed in to change notification settings - Fork 580
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
Exit loop when position can't change. #2307
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2307 +/- ##
==========================================
+ Coverage 50.71% 50.73% +0.02%
==========================================
Files 386 386
Lines 31914 31922 +8
==========================================
+ Hits 16182 16192 +10
+ Misses 15732 15730 -2
☔ View full report in Codecov by Sentry. |
moveit_core/trajectory_processing/src/time_optimal_trajectory_generation.cpp
Show resolved
Hide resolved
moveit_core/trajectory_processing/test/test_time_optimal_trajectory_generation.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, what happens in the case where time_step_
is zero? Should that be handled here as well?
Though I guess that will necessarily make path_vel
zero so it's probably okay.
Ah right! My original fix does not catch that because time_step==0 makes velocity, but not acceleration. I've added an extra case at the constructor to check for that. |
04b4f35
to
cd167e9
Compare
moveit_core/trajectory_processing/test/test_time_optimal_trajectory_generation.cpp
Outdated
Show resolved
Hide resolved
cd167e9
to
a67e15b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gah. The clang-tidy checks are failing because somehow MoveIt doesn't use the Google style of constant casing. Sorry :/
Oh, hahah. Linter-settled discussion. |
It's specifically that in the bodies of functions, where things aren't constants, you have to use So if you just use names like |
a67e15b
to
46b7944
Compare
done |
BTW, are you ok with inlining the instantiations of Path and Trajectory? |
That's fine! |
(cherry picked from commit 7c95367)
(cherry picked from commit 7c95367) # Conflicts: # moveit_core/trajectory_processing/test/test_time_optimal_trajectory_generation.cpp
Description
Fixes #2066. Infinite looping happens at Trajectory::integrateForward when three things concur:
The changes in this PR are:
Checklist