When I use Coppeliasim and MATLAB together, how do I set the simulation step size?

Typically: "How do I... ", "How can I... " questions
Post Reply
aaaaabc?
Posts: 10
Joined: 10 Apr 2022, 15:43

When I use Coppeliasim and MATLAB together, how do I set the simulation step size?

Post by aaaaabc? »

When I use Coppeliasim and MATLAB together, how do I set the simulation step size?I used the following command in MATLAB:
id=vrep.simxStart('127.0.0.1',19999,true,true,5000,5);
dt = 5e-3;
vrep.simxSetFloatingParameter(id,vrep.sim_floatparam_simulation_time_step,dt,vrep.simx_opmode_oneshot_wait); vrep.simxSynchronous(id,true);
vrep.simxStartSimulation(id,vrep.simx_opmode_oneshot_wait);
vrep.simxSynchronousTrigger(id);
I used the following step sizes in Coppeliasim:dt=5.0ms(coustom).
However, the actual simulation step size is 130ms.

fferri
Posts: 1297
Joined: 09 Sep 2013, 19:28

Re: When I use Coppeliasim and MATLAB together, how do I set the simulation step size?

Post by fferri »

Did you have a look at Simulation in the User Manual?

What's the "actual" step size and how is it measured?

Post Reply