API for precise dynamics engine properties?

Typically: "How do I... ", "How can I... " questions
Post Reply
manip
Posts: 10
Joined: 14 Oct 2015, 11:27

API for precise dynamics engine properties?

Post by manip »

Hello,

Is there any way to programmatically adjust dynamics engine parameters, such as vortex time step, instead of using GUI dialog?
I wish to work with ROS and run multiple simulations with different fidelity setup. I have tried to change the values of sim_floatparam_simulation_time_step and sim_intparam_speedmodifier, but they can't affect the value of sim_intparam_dynamic_step_divider which I think is related to the dynamics engine time step.

Thanks

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

Re: API for precise dynamics engine properties?

Post by coppelia »

Hello,

we have added a new float parameter constant: sim_floatparam_dynamic_step_size
You can then set the step size of the currently selected physics engine only if simulation is stopped, and if a custom configuration was selected for the current physics engine.

The change will be available in next release (normally before the end of the year).

Cheers

manip
Posts: 10
Joined: 14 Oct 2015, 11:27

Re: API for precise dynamics engine properties?

Post by manip »

Thanks for your quick response. I really appreciate it.

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

Re: API for precise dynamics engine properties?

Post by coppelia »

You are welcome!

We have also added another value, that might come in handy: sim_intparam_dynamic_iteration_count (an integer parameter).

Cheers

Post Reply