Skip to content
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

Implements vehicle damage based on kinetic energy #916

Merged
merged 16 commits into from
May 26, 2021
Merged

Conversation

nkoenig
Copy link
Contributor

@nkoenig nkoenig commented May 17, 2021

This is an alternative to PR #858. I'm using the kinetic energy formula, KE = 0.5 * M * v * v, to calculate a kinetic energy threshold. If the change in KE between iterations passes this threshold, then a crash has occurred and the robot will be disabled. The value of v is set to the velocity achieved by falling a certain distance. Currently this distance is 0.077m.

Requires: gazebosim/gz-sim#728

Signed-off-by: Nate Koenig nate@openrobotics.org

Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig requested a review from Lobotuerk May 17, 2021 22:30
Nate Koenig added 2 commits May 19, 2021 16:55
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@peci1
Copy link
Collaborator

peci1 commented May 20, 2021

#920 inadvarently merged this

Nate Koenig added 2 commits May 20, 2021 13:26
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig
Copy link
Contributor Author

nkoenig commented May 21, 2021

#920 inadvarently merged this

Thanks. Reverted in d83b71b.

Nate Koenig added 2 commits May 21, 2021 09:39
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig marked this pull request as draft May 21, 2021 16:41
Nate Koenig and others added 4 commits May 21, 2021 09:42
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Angela Maio <angela.c.maio.civ@mail.mil>
Signed-off-by: Angela Maio <angela.c.maio.civ@mail.mil>
Nate Koenig added 3 commits May 25, 2021 08:04
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig marked this pull request as ready for review May 25, 2021 22:08
acschang and others added 2 commits May 25, 2021 19:39
Signed-off-by: Nate Koenig <nate@openrobotics.org>
@nkoenig nkoenig merged commit 09140e9 into master May 26, 2021
@nkoenig nkoenig deleted the nkoenig/haltmotion branch September 27, 2021 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants