Questions about simulation step setting

Typically: "How do I... ", "How can I... " questions
Post Reply
ga89bak
Posts: 1
Joined: 17 Oct 2018, 15:19

Questions about simulation step setting

Post by ga89bak » 29 Oct 2018, 15:37

Hi all,

I'm now making a self balancing robot in vrep. The controller part is programmed by language C. My robot works well if I slow down the simulation step to 5ms(with default value of 50ms). However when I set the default value to 5ms, my robot run in a bad behavior.
I'm confused by the simulation step setting in V-Rep. What is the relationship between vrep simulation steps and the sampling frequency of C controller? Is this means that my controller is not good enough if the robot cannot run with default simulation steps?

Thank you

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

Re: Questions about simulation step setting

Post by coppelia » 05 Nov 2018, 08:44

Hello,

for what you want to achieve, it is very important to run your C client synchronously with V-REP (i.e. run the remote API in synchronous mode).

Cheers

Post Reply