示例#1
0
def set_sim_dt(clientID, dt_seconds):
    # This only works if the custom time has been selected in the GUI.
    vrep.simxSetFloatingParameter(clientID,
                                  vrep.sim_floatparam_simulation_time_step,
                                  dt_seconds, vrep.simx_opmode_oneshot)
示例#2
0
 def set_simulation_timestep(self):
     ret = vrep.simxSetFloatingParameter(
         self.client_id, vrep.sim_floatparam_simulation_time_step, DT,
         vrep.simx_opmode_oneshot_wait)
     assert ret == vrep.simx_return_ok, "Cannot set sim timestep"