Page 1 of 1

Output

Posted: 17 Nov 2018, 05:38
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.

Re: Output

Posted: 19 Nov 2018, 07:47
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