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

How to change the ground friction coefficient? #48

Open
ChunchuZhu opened this issue Oct 31, 2024 · 0 comments
Open

How to change the ground friction coefficient? #48

ChunchuZhu opened this issue Oct 31, 2024 · 0 comments

Comments

@ChunchuZhu
Copy link

ChunchuZhu commented Oct 31, 2024

Hi there!

I'm trying to modify the ground.xml to change the friction coefficient so that the ground can act like ice, I used the following code:

<Skeleton name="Ground">
    <Node name="ground" parent="None" >
        <Body type="Box" mass="15.0" size="200 1 5" contact="On" color="0.8 0.8 0 1.0" friction="0.000001 0.005 0.0001">
            <Transformation linear="1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0" translation="0.0 -0.27 0.0"/>
        </Body>
        <Joint type="Weld">
            <Transformation linear="1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0" translation="0.0 0.0 0.0"/>
        </Joint>
    </Node>
</Skeleton>

I added friction="0.000001 0.005 0.0001" in the XML file, it didn't work. I also tried using the setFrictionCoeff() from DART manual, still didn't work.

Does anybody know how to change the ground friction coefficient in the simulation package?

Thank you very much!

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

No branches or pull requests

1 participant