can't find an error in control car simulation

Typically: "How do I... ", "How can I... " questions
Post Reply
alexxa
Posts: 6
Joined: 24 Nov 2014, 16:02

can't find an error in control car simulation

Post by alexxa »

Hello,

Following instractions in video here https://www.youtube.com/watch?v=OfpB87pRoUk

I created a scene which you can get here https://docs.google.com/file/d/0B46tqnq ... edit?pli=1

The problem is that my car doesn't follow start dummy, i.e. doesn't take the path. And I can't get what I did wrong, where is the error, if I followed video instructions, i.e. copied discribed control code. The car is not static.

In addition, I created the walls around my scene, but a car can run through it. Walls object is in obstacle collection. What is wrong here?

Thanks,
Alexxa

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

Re: can't find an error in control car simulation

Post by coppelia »

Hello Alexxa,

we are not aware of that tutorial. But looking at your scene it seems your robot is simply trying to follow the target by driving backwards: either you have a sign problem when specifying the motor velocities, either the orientation of the motor joints is wrong.

Cheers

alexxa
Posts: 6
Joined: 24 Nov 2014, 16:02

Re: can't find an error in control car simulation

Post by alexxa »

Hello,

Ok, I see,
but what is wrong with walls settings? Walls are not from that tutorial. Any robot simulation which I create, add Walls to obstacles collection, still runs thorugh those walls, like there are no walls at all .

Alexxa

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

Re: can't find an error in control car simulation

Post by coppelia »

Alexxa,

the external walls that you are using are not dynamic: they are only visual and will not interact with your simulation. To avoid this kind of situation, make sure to read this section that explains the most important points about dynamics.

Cheers

Post Reply