Why doesn't the robot walk in a straight line

Typically: "How do I... ", "How can I... " questions
Post Reply
xxm
Posts: 28
Joined: 26 Oct 2020, 09:36

Why doesn't the robot walk in a straight line

Post by xxm »

Hello,

I am using vrep to simulate a robot and I find a weird phenomenon, but I do not know how to solve it.

This is my scene.[https://github.com/xxx-007/image/blob/main/car.ttt]
The car model is from vrep and I only change the floor's size, and the car's moving speed. But I found that the car cannot run in a straight line after 15m. Two joints' velocity of the car are same, I cannot understand why the car has the bias in x-axis.

Look forward to your early reply!

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Why doesn't the robot walk in a straight line

Post by coppelia »

Hello,

try with a different engine and you will get a different result. This is because a physics engine isn't perfect and won't perfectly simulate your scene. It will make a lot of approximations (namely regarding friction, etc.). Keep in mind that there is always a tradeoff between calculation speed, simulation fidelity and simulation stability. Different engine, different outcomes, most of the time.

Btw, this is also the reason that a robot rarely runs without any kind of feed-back in the real world, because odometry won't be enough after a few meters or degrees of movement.

Cheers

xxm
Posts: 28
Joined: 26 Oct 2020, 09:36

Re: Why doesn't the robot walk in a straight line

Post by xxm »

Thanks for your reply!

After changing other physics engine, I find that the car has a small bias with Newton. So I think that maybe Newton can solve this problem.
So when I ran a legged robot in vrep with bullet, I find that the legged robot also has a big bias. Then I change the Newton physics engine, but my legged robot cannot move with Newton. However my legged robot can normally move with bullet. I don't konw why my legged robot cannot run with Newton and I don't what should I do to change it.

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: Why doesn't the robot walk in a straight line

Post by coppelia »

Welcome to the world of differences between physics engines! Keep in mind that each physics engine has some strengths and weaknesses. You will have to find out yourself what engine fits your particular application best.
Additionally, you can try to adjust and tweak your model, so that it operates in a similar way with all engines. Make sure to carefully read the dynamics design considerations section, its gives you clues how to make your models and simulations more stable with all engines.

Cheers

Post Reply