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

ElectroHydraulicPTO solver stability #87

Merged
merged 23 commits into from
Sep 20, 2022
Merged

ElectroHydraulicPTO solver stability #87

merged 23 commits into from
Sep 20, 2022

Conversation

andermi
Copy link
Collaborator

@andermi andermi commented Aug 24, 2022

Something was causing numerical instability in the ElectroHydraulicPTO "rpm/pressure -> winding current -> torque" solution

To start, I updated the volumetric and mechanical efficiency maps per vendor efficiency maps codified in matlab by @hamilton8415 and brought in a different interpolator: Splinter

@hamilton8415 and I will investigate/resolve issues in this PR

Signed-off-by: Michael Anderson <anderson@mbari.org>
Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi andermi requested a review from hamilton8415 August 24, 2022 18:21
@andermi
Copy link
Collaborator Author

andermi commented Aug 24, 2022

@hamilton8415 something else that was crashing... when the discriminant was negative in the solution for VBus

https://github.com/osrf/buoy_sim/blob/af87b95ea6e4e1a3e67385985cec6d9f1adfb8ed/buoy_gazebo/src/ElectroHydraulicPTO/ElectroHydraulicPTO.cpp#L335-L337

Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi
Copy link
Collaborator Author

andermi commented Aug 25, 2022

requires osrf/mbari_wec_utils#26

Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi
Copy link
Collaborator Author

andermi commented Aug 29, 2022

@hamilton8415 can you check what I did with the new interp and see if the plugin produces the correct output?

@hamilton8415
Copy link
Collaborator

Will do, I actually wanted to speak with you about how best to incorporate the test comparisons I previously did with the data from the test machine.

@andermi
Copy link
Collaborator Author

andermi commented Aug 30, 2022

@mjcarroll @chapulina @quarkytale the new interpolator (if we decide to keep it) has an MPL-2.0 License, and I was wondering the best way to credit their project?

@chapulina
Copy link
Contributor

IANAL, but reading Q9 here, I think all we need is to include the license file? @tfoote may have a better idea.

@tfoote
Copy link

tfoote commented Aug 30, 2022

Yes, we should bring in the license copy too.

For clarity I would actually suggest packing splinter as a separate package and then just using it in this package to allow easier tracking of potential upstream changes as well as keeping the licensing differentiation clearer.

Signed-off-by: Michael Anderson <anderson@mbari.org>
Signed-off-by: Michael Anderson <anderson@mbari.org>
Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi
Copy link
Collaborator Author

andermi commented Aug 31, 2022

splinter as a separate package

I've got it in its own package now.
TODO: I assume I should set the license of the package to MPL-2.0 and put the license file at the top level of the package

Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi andermi mentioned this pull request Sep 2, 2022
quarkytale and others added 3 commits September 2, 2022 16:40
Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
Signed-off-by: Michael Anderson <anderson@mbari.org>
…aunch files

Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi
Copy link
Collaborator Author

andermi commented Sep 5, 2022

requires osrf/mbari_wec_utils#28
and required by osrf/mbari_wec_utils#28
... need to resolve cyclic dependency

edit: moved splinter to buoy_msgs

Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi andermi force-pushed the andermi/ehpto_solver branch from 2801997 to e2c9af3 Compare September 5, 2022 22:19
Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi andermi marked this pull request as ready for review September 14, 2022 21:19
Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi andermi marked this pull request as draft September 16, 2022 18:25
andermi and others added 2 commits September 19, 2022 11:16
Co-authored-by: Michael Carroll <michael@openrobotics.org>
Co-authored-by: Michael Carroll <michael@openrobotics.org>
@andermi andermi marked this pull request as ready for review September 19, 2022 18:18
@andermi
Copy link
Collaborator Author

andermi commented Sep 19, 2022

We should merge this in soon as this has been out quite a while and more branches are starting to use it as a base.

Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
@mjcarroll
Copy link
Collaborator

We should merge this in soon as this has been out quite a while and more branches are starting to use it as a base.

Agree, what other things need to get in to call this done?

Signed-off-by: Dharini Dutia <dharini@openrobotics.org>
@andermi
Copy link
Collaborator Author

andermi commented Sep 19, 2022

what other things

I think we are good as is. @hamilton8415 has other branches with some other tweaks coming soon. This PR was a bit nebulous and ill-defined since we didn't know what was wrong exactly. This PR basically turned into "Let's use a different interp"

@quarkytale
Copy link
Contributor

Works for me, CI should come out green as well

@andermi
Copy link
Collaborator Author

andermi commented Sep 19, 2022

@hamilton8415 has requested I cherry-pick new motor efficiency values into this PR before we merge.

@hamilton8415
Copy link
Collaborator

Yes, let's merge this as is, then I can issue a PR for the test stuff seperate from that. We will also then probably need to revisit a third PR that fixes an issue or two with the ElectroHydraulic modelling of a battery and current limits, etc...

Signed-off-by: Michael Anderson <anderson@mbari.org>
Signed-off-by: Michael Anderson <anderson@mbari.org>
Signed-off-by: Michael Anderson <anderson@mbari.org>
@andermi andermi enabled auto-merge (squash) September 20, 2022 01:41
@andermi andermi merged commit 983f19d into main Sep 20, 2022
@andermi andermi deleted the andermi/ehpto_solver branch September 20, 2022 02:14
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.

6 participants