-
Notifications
You must be signed in to change notification settings - Fork 269
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
Buoyancy engine #1009
Buoyancy engine #1009
Conversation
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works nicely!
I see some compiler warnings:
In file included from /home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/src/systems/buoyancy_engine/BuoyancyEngine.cc:29:
/home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/src/systems/buoyancy_engine/BuoyancyEngine.hh:70:3: warning: multi-line comment [-Wcomment]
70 | /// ign topic -t /model/tethys/buoyancy_engine/ -m ignition.msgs.Double \
| ^
/home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/src/systems/buoyancy_engine/BuoyancyEngine.hh:75:3: warning: multi-line comment [-Wcomment]
75 | /// ign topic -t /model/tethys/buoyancy_engine/ -m ignition.msgs.Double \
| ^
/home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/test/integration/buoyancy_engine.cc: In lambda function:
/home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/test/integration/buoyancy_engine.cc:76:57: warning: unused parameter __info_ [-Wunused-parameter]
76 | testSystem.OnPostUpdate([&](const gazebo::UpdateInfo &_info,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/test/integration/buoyancy_engine.cc: In lambda function:
/home/chapulina/dev_focal/ws_fortress/src/ign-gazebo/test/integration/buoyancy_engine.cc:123:57: warning: unused parameter __info_ [-Wunused-parameter]
123 | testSystem.OnPostUpdate([&](const gazebo::UpdateInfo &_info,
|
Signed-off-by: Arjo Chakravarty <[email protected]>
…n-gazebo into arjo/buoyancy_engine
Co-authored-by: Louise Poubel <[email protected]> Signed-off-by: Arjo Chakravarty <[email protected]>
377d373
to
9aed82a
Compare
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Arjo Chakravarty <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1009 +/- ##
==========================================
+ Coverage 63.30% 63.46% +0.16%
==========================================
Files 239 240 +1
Lines 19464 19548 +84
==========================================
+ Hits 12322 12407 +85
+ Misses 7142 7141 -1
Continue to review full report at Codecov.
|
Signed-off-by: Arjo Chakravarty <[email protected]>
@chapulina this is ready for round 2. With regards to #818 I have given my opinion here: #1009 (comment) Theoretically, this will not work well with it without some modification. However, in practice if the ballast is significantly smaller than the vehicle itself it should be fine. We can place a warning label in the documentation for now. However, as I mentioned, we probably want some way of reading loaded world fluid density properties to reduce duplication of configuration. |
Signed-off-by: Louise Poubel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good To Me! |
Signed-off-by: Arjo Chakravarty <[email protected]> Signed-off-by: Louise Poubel <[email protected]> Co-authored-by: Louise Poubel <[email protected]> Signed-off-by: William Lew <[email protected]>
🎉 New feature
Summary
It is common among many commercial maritime vessels to have some form of a ballast tank to control the buoyancy of the vehicle. Ioiln smaller vehicles this could be an oil/gas filled bladder. In larger vehicles this is usually filled with air. When the vehicle needs to sink the air/gas/oil is removed and replaced with water thus increasing the mass of the vehicle. This plugin was developed for the MBARI LRAUV which has an oil bladder but may be used to model other types of ballast tanks as well.
Test it
TODO
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge