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

Debug flag for WaveBodyInteractions plugin #160

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

andermi
Copy link
Collaborator

@andermi andermi commented Sep 5, 2023

Right now, if we want to see debug statements from another plugin, WaveBodyInteractions produces so much output, that it is difficult to see other prints. Also, logging easily fills up disk space in ~/.gz/sim/log. So, move gzdbg messages for the WaveBodyInteractions plugin behind debug flag.

Signed-off-by: Michael Anderson <[email protected]>
@andermi andermi changed the base branch from main to andermi/latent_data September 5, 2023 18:02
Copy link
Collaborator

@hamilton8415 hamilton8415 left a comment

Choose a reason for hiding this comment

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

This suits me fine. An alternative would be to comment out or even remove most of these debug messages. They were there for initial debug during development. Under the presumption that things are working as expected it'd be fine to remove them. There is a day when someone/I goes to add features related to multiple wave directions or similar, but they/I could add a lot of this back in which would probably be a useful an necessary exercise in understanding some of the details. This addition is a low priority...

@andermi andermi merged commit fd00588 into andermi/latent_data Sep 6, 2023
0 of 2 checks passed
@andermi andermi deleted the andermi/wbi_dbg_flag branch September 6, 2023 04:24
andermi added a commit that referenced this pull request Sep 21, 2023
* update spring to match at-sea polytropic process

Signed-off-by: Michael Anderson <[email protected]>

* can now specify spring params per batch

Signed-off-by: Michael Anderson <[email protected]>

* tune spring to match atsea

Signed-off-by: Michael Anderson <[email protected]>

* ros2 service for incwave height; issues so replace LinearIncidentWave with non-pointer in ECM

Signed-off-by: Michael Anderson <[email protected]>

* use parent folder for FreeSurfaceHydrodynamics includes

Signed-off-by: Michael Anderson <[email protected]>

* add matrix_mode: False option to sim params yaml to allow vectorized mode

Signed-off-by: Michael Anderson <[email protected]>

* added latent data and tweaked incwaveheight

Signed-off-by: Michael Anderson <[email protected]>

* can specify incwaveheight points in sdf

Signed-off-by: Michael Anderson <[email protected]>

* added spring and pto (still need a couple pto losses)

Signed-off-by: Michael Anderson <[email protected]>

* linters

Signed-off-by: Michael Anderson <[email protected]>

* linters

Signed-off-by: Michael Anderson <[email protected]>

* add ehpto force

Signed-off-by: Michael Anderson <[email protected]>

* added forces from piston friction and wavebodyinteraction

Signed-off-by: Michael Anderson <[email protected]>

* Debug flag for WaveBodyInteractions plugin (#160)

* temporarily checkout andermi/latent_data in mbari_wec_utils for CI

Signed-off-by: Michael Anderson <[email protected]>

* linters

Signed-off-by: Michael Anderson <[email protected]>

* add gas mass and eff_v/m; comment units; use buoy_utils/constants.h in spring

Signed-off-by: Michael Anderson <[email protected]>

* fix last push

Signed-off-by: Michael Anderson <[email protected]>

* fix latent_data pub

Signed-off-by: Michael Anderson <[email protected]>

* Added Shaft Mechanical Power to Latent Data

* Added additional loss terms to electrohydraulic latent data

* Resolved signs with supplied hydraulic power

* Fixed bug in relief valve loss computation

* Adjusted fields

* Fixed formating for linters

* Add wave body total power to latent data (#165)

* added wave_body total forces

Signed-off-by: Michael Anderson <[email protected]>

* added buoy pose and twist to latent data

Signed-off-by: Michael Anderson <[email protected]>

* added pose/twist to operator== for latent data

Signed-off-by: Michael Anderson <[email protected]>

* init pose/twist

Signed-off-by: Michael Anderson <[email protected]>

* linters

Signed-off-by: Michael Anderson <[email protected]>

---------

Signed-off-by: Michael Anderson <[email protected]>

---------

Signed-off-by: Michael Anderson <[email protected]>
Co-authored-by: Andrew Hamilton <[email protected]>
Co-authored-by: Andrew Hamilton <[email protected]>
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.

2 participants