Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Modifies the dropweight test to test for breaching the surface.#162

Merged
arjo129 merged 8 commits intomainfrom
arjo/feat/surface_dropweight_test
Mar 2, 2022
Merged

Modifies the dropweight test to test for breaching the surface.#162
arjo129 merged 8 commits intomainfrom
arjo/feat/surface_dropweight_test

Conversation

@arjo129
Copy link
Member

@arjo129 arjo129 commented Feb 28, 2022

Depends on #161, #160

This PR validates the behaviour of the dropweight with the surface of the water. It modifies the drop weight test such that the vehicle is started at a 10m depth and we monitor its rise. The test makes sure that we do not exceed a height of 0.5m (this tolerance is required to account for the oscillations introduces by the transition).

Signed-off-by: Arjo Chakravarty arjo@openrobotics.org

Currently, the `LrauvTestFixture` allows us to only load `BuoyantTethys.sdf`. This PR refactors the test fixture. It creates two test classes:
* `LrauvTestFixtureBase` - An abstract base class which contains all the common functionality.
* `LrauvTestFixture` - Inherits from `LrauvTestFixtureBase` and loads the `buoyant_tethys.sdf`.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Depends on #160

This PR adds a surface at z=0 to the default `buoyant_tethy.sdf`.  Most things work as expected. I had to move the MassShifter test deeper underwater as the vehicle would not pitch enough at the surface (kind of expected I guess?). I moved the mass shifter test deeper under water.

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Depends on #161, #160

This PR validates the behaviour of the dropweight with the surface of the water. It modifies the drop weight test such that the vehicle is started at a 10m depth and we monitor its rise. The test makes sure that we do not exceed a height of 0.5m (this tolerance is required to account for the oscillations introduces by the transition).

Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
@arjo129 arjo129 mentioned this pull request Feb 28, 2022
39 tasks
arjo129 added 3 commits March 2, 2022 13:07
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Base automatically changed from arjo/feat/surface to main March 2, 2022 06:17
@arjo129 arjo129 merged commit bef9c37 into main Mar 2, 2022
@arjo129 arjo129 deleted the arjo/feat/surface_dropweight_test branch March 2, 2022 08:07
@arjo129 arjo129 mentioned this pull request Mar 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants