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

fixed thruster.cc undefined behavior #2316

Closed
wants to merge 22 commits into from

Conversation

GauravKumar9920
Copy link
Contributor

🦟 Bug fix

Fixes #2291

Summary

Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

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.

@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Feb 15, 2024
test/integration/thruster.cc Outdated Show resolved Hide resolved
@GauravKumar9920 GauravKumar9920 requested a review from azeey March 2, 2024 15:14
Copy link
Contributor

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a number of places where .back() is still being used without being checked.

ctrl+F shows the following instancesFor:

@GauravKumar9920 GauravKumar9920 requested a review from arjo129 March 18, 2024 11:37
test/integration/thruster.cc Outdated Show resolved Hide resolved
test/integration/thruster.cc Outdated Show resolved Hide resolved
test/integration/thruster.cc Outdated Show resolved Hide resolved
@GauravKumar9920
Copy link
Contributor Author

I'm sorry, My bad.
I will look into the whole code once again and make changes and make sure I'm not missing out on any bugs or anything.

@GauravKumar9920 GauravKumar9920 requested a review from arjo129 March 19, 2024 10:43
@arjo129
Copy link
Contributor

arjo129 commented Mar 19, 2024

This is looking a lot better!

Do you mind signing off via DCO. Instructions are here:
https://github.com/gazebosim/gz-sim/pull/2316/checks?check_run_id=22827807927

test/integration/thruster.cc Outdated Show resolved Hide resolved
@GauravKumar9920 GauravKumar9920 requested a review from arjo129 March 20, 2024 07:40
test/integration/thruster.cc Outdated Show resolved Hide resolved
test/integration/thruster.cc Outdated Show resolved Hide resolved
test/integration/thruster.cc Outdated Show resolved Hide resolved
GauravKumar9920 and others added 13 commits March 30, 2024 20:32
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Co-authored-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Co-authored-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Until SystemManager has the ability to unload system plugins, plugins require an explicit check of the validity of the entities used in the Update methods. Such a check was missing in OdometryPublisher, which led to non-critical but annoying errors in the console.
---------

Signed-off-by: Anton Bogdanov <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
* Fix wget in maritime tutorials.

Signed-off-by: Carlos Agüero <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
francocipollone and others added 7 commits March 30, 2024 20:32
Signed-off-by: Addisu Z. Taddese <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
This is a fix to the error seen in Ackermann Steering's <steering_only> mode. The steps to reproduce this error are described in issue gazebosim#2314.

Signed-off-by: Saurabh Kamat <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
Copy link
Contributor

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol. This happens to all of us. If your git-fu is not strong enough I recommend closeing this PR and opening a new one in a new branch of main. Just copy the new test/integraton/thruster.cc over.

test/integration/thruster.cc Outdated Show resolved Hide resolved
Co-authored-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Gaurav Kumar <[email protected]>
@GauravKumar9920
Copy link
Contributor Author

Lol. This happens to all of us. If your git-fu is not strong enough I recommend closeing this PR and opening a new one in a new branch of main. Just copy the new test/thruster.cc over.

Thanks @arjo129 I was really unsure of what has happened, I wasn't able to find a reliable solution for it online. I will open a new pr : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

INTEGRATION_thruster has undefined behavior potentially causing test flakiness
9 participants