Skip to content

Commit

Permalink
Use faster RK4 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Dec 22, 2021
1 parent 2e90414 commit da570c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion movement_primitives/dmp/_cartesian_dmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def open_loop(self, run_t=None, coupling_term=None,
step_function : str, optional (default: 'rk4')
DMP integration function. Possible options: 'rk4', 'euler',
'euler-cython'.
'euler-cython', 'rk4-cython'.
quaternion_step_function : str, optional (default: 'cython' if available)
DMP integration function. Possible options: 'python', 'cython'.
Expand Down
3 changes: 2 additions & 1 deletion movement_primitives/dmp/_dmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def dmp_step_euler(
from ..dmp_fast import dmp_step as dmp_step_euler_cython, dmp_step_rk4 as dmp_step_rk4_cython
DMP_STEP_FUNCTIONS["euler-cython"] = dmp_step_euler_cython
DMP_STEP_FUNCTIONS["rk4-cython"] = dmp_step_rk4_cython
DEFAULT_DMP_STEP_FUNCTION = "rk4-cython"
except ImportError:
pass

Expand Down Expand Up @@ -410,7 +411,7 @@ def open_loop(self, run_t=None, coupling_term=None,
step_function : str, optional (default: 'rk4')
DMP integration function. Possible options: 'rk4', 'euler',
'euler-cython'.
'euler-cython', 'rk4-cython'.
Returns
-------
Expand Down

0 comments on commit da570c0

Please sign in to comment.