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

gz-sim: Hydrodynamics #1299

Open
azeey-test opened this issue Aug 29, 2024 · 4 comments
Open

gz-sim: Hydrodynamics #1299

azeey-test opened this issue Aug 29, 2024 · 4 comments

Comments

@azeey-test
Copy link
Collaborator

Configuration

  • os: Ubuntu Noble

Links

Process

Step 1 - Instructions work

Step 2 - Images (if there are any) match the result

@Combuster54
Copy link

Interested

@Combuster54
Copy link

Ubuntu 24.04 Noble

A Simple example
first

first change

<xUabsU>-0.32282</xUabsU>
<xU>-2.5</xU>

medium
second change

<xUabsU>-3.5</xUabsU>
<xU>-20</xU>

last

@azeey
Copy link
Contributor

azeey commented Sep 5, 2024

@arjo129 I know the error message about added mass has been changed to a warning in gazebosim/gz-sim#2579, but would it be possible to change the parameters in our examples so we don't have the warnings?

@Combuster54
Copy link

@azeey Yes. There is a way to do that.

Solution

Add

        <disable_added_mass>true</disable_added_mass>
      <!-- Uncomment to add hydrodynamics -->
      <plugin
        filename="gz-sim-hydrodynamics-system"
        name="gz::sim::systems::Hydrodynamics">
        <link_name>base_link</link_name>
        <disable_added_mass>true</disable_added_mass>
        <xDotU>-0.04876161</xDotU>
        <yDotV>-1.26324739</yDotV>
        <zDotW>-1.26324739</zDotW>
        <kDotP>0</kDotP>
        <mDotQ>-0.3346</mDotQ>
        <nDotR>-0.3346</nDotR>
        <xUabsU>-0.62282</xUabsU>
        <xU>-5</xU>
        <yVabsV>-60.127</yVabsV>
        <yV>-5</yV>
        <zWabsW>-6.0127</zWabsW>
        <zW>-100</zW>
        <kPabsP>-0.001916</kPabsP>
        <kP>-1</kP>
        <mQabsQ>-6.32698957</mQabsQ>
        <mQ>-1</mQ>
        <nRabsR>-6.32698957</nRabsR>
        <nR>-1</nR>
      </plugin>

Screencast from 2024-09-06 10-14-42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants