Output

Typically: "How do I... ", "How can I... " questions
Post Reply
Piyush
Posts: 1
Joined: 15 Nov 2018, 07:16

Output

Post by Piyush »

I am making a line follower robot, the simulation of which I ran in V-REP using a code. The code gives different outputs everytime I run the simulation. While the robot successfully makes turns at some points in its path it fails to do so at other points. And the output also changes with every simulation run. Can anybody tell me if I have to change something (settings for example) in V-REP simulator?

I can post my code if that is required. Thanks.

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

Re: Output

Post by coppelia »

Hello,

are you stopping and restarting the simulation, or is the robot having a different behaviour the second/third/etc. time it turns around a specific corner. The second situation would be quite normal, since you would cumulate the whole simulation history. In the first case, then, unless you are using some random numbers, shouldn't happen (at least not with all physics engines: some might use some randomization internally for better stability). Try to switch to a different engine and see if the result is similar.

Cheers

Post Reply