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

Added reset function to UnderwaterCamera to lock SimulateUnderwater() #61

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

aaliao
Copy link
Contributor

@aaliao aaliao commented Feb 14, 2025

fixes #55

Reset bringing back the robot was fixed in a previous PR, however it would crash if not paused before resetting. This fix overrides the reset function in UnderwaterCamera and sets a locking variable in the dataPtr so that if gazebo reset while doing calculations for the SimulateUnderwater function, it will stop the function and return before a seg fault occurs.

@aaliao aaliao requested a review from Keith-Khadar February 14, 2025 22:43
Copy link
Contributor

@Keith-Khadar Keith-Khadar left a comment

Choose a reason for hiding this comment

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

LGTM!

@Keith-Khadar Keith-Khadar merged commit 49396c9 into main Feb 28, 2025
1 check passed
@Keith-Khadar Keith-Khadar deleted the gazebo_crash_fix branch February 28, 2025 17:02
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.

Gazebo: Resetting the world does not bring back the robot
2 participants