-
Notifications
You must be signed in to change notification settings - Fork 276
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
Use same FP limits for TrackedVehicle to avoid self-moving #2651
Conversation
Signed-off-by: Maksim Derbasov <[email protected]>
LGTM. I guess the constants could even be a bit higher unless you simulate mm-sized robots. The constants you suggest mean that any motion command above 0.000001 m/s or 0.000001 rad/s is considered non-straight motion. I guess no reasonably sized robot would react to a micrometer/sec command. On the other hand, I don't see anything really problematic practically with this constant. |
Could you please post the result of a test where you instruct the robot with e.g. 2e-6 linear and angular velocities? |
I guess I can do it tomorrow, it's too late here, sorry. Maybe @iandresolares can provide, if he tested it And I guess this constant change is not related to any physical properties of a robot, it's just about math properties of this equations, as mentioned in initial msg |
Yes, sure. It just standing still |
Great, thanks! Now I'm more sure this PR will not have any bad side effects. |
@osrf-jenkins run tests please |
Can we have some conclusion about this hotfix? I mean it still affect us and we still need a backport to previous version (gz-sim7) tbh |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## gz-sim9 #2651 +/- ##
==========================================
Coverage ? 68.78%
==========================================
Files ? 341
Lines ? 33053
Branches ? 0
==========================================
Hits ? 22735
Misses ? 10318
Partials ? 0 ☔ View full report in Codecov by Sentry. |
@ntfshard |
@Mergifyio backport gz-sim8 |
✅ Backports have been created
|
Signed-off-by: Maksim Derbasov <[email protected]> (cherry picked from commit 6f7d21f)
Signed-off-by: Maksim Derbasov <[email protected]> (cherry picked from commit 6f7d21f)
🦟 Bug fix
Fixes #2506
Summary
Using the same constants for checking against zero here to significantly reduce cases when system behaves in unexpected way.
Still for a solid solution we should consider a refactoring a whole algorithm.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.