Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Robot stucks into the plane.urdf #3214

Closed
KH-HSU opened this issue Jan 4, 2021 · 5 comments
Closed

Robot stucks into the plane.urdf #3214

KH-HSU opened this issue Jan 4, 2021 · 5 comments

Comments

@KH-HSU
Copy link

KH-HSU commented Jan 4, 2021

Happy New Year @erwincoumans and everyone

Problem:
When the robot walked from the board, sometimes the robot will stuck into the plane which are shown in pictures below. This problem also happened when I used Heightfield.

If the robot just walked on the plane without the red board in the pictures, the robot will sink a little bit but will not stuck into the plane. ( The red line is for RL experiment without collision, so it will not effect collision.)

sink1
sink2

What I have done

  1. set timestep to 0.001
  2. set numSolverIterations to 1000
  3. Use the smallest resolution to generate mesh of the robot in Solidworks (also tried in STL and obj format)

but the problems still exists
Does anyone have met this problem before? Please give me some suggestions, thank you!

@KH-HSU
Copy link
Author

KH-HSU commented Jan 5, 2021

I solved it by

  1. putting the board base under the plane ( I put it just right on the plane before ),
  2. set the numSolverIterations to 1000.
    I'm still curious if there are other solutions because I want to use Heightfield to do experiment.

@BluePrintRandom
Copy link

BluePrintRandom commented Jan 5, 2021 via email

@KH-HSU
Copy link
Author

KH-HSU commented Jan 5, 2021

@BluePrintRandom
I'm a bit confused because the plane.urdf given by Pybullet has thickness which can be found in
plane.urdf, and I made the red cube by loading cube.obj into urdf

@BluePrintRandom
Copy link

BluePrintRandom commented Jan 5, 2021 via email

@KH-HSU
Copy link
Author

KH-HSU commented Jan 5, 2021

@BluePrintRandom thank you, I will try CCD.
But the problem still exists when the floor thickness is 4 cm.

I put the green cube under the plane and fix it to solve the problem which is shown in the picture belowbelow_plane
the red line without collision property is just right on the plane.

I wonder if I just put the floor right on the plane, there might be some small space that will make the robot stuck in the mesh.

@bulletphysics bulletphysics locked and limited conversation to collaborators Apr 26, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

3 participants