Skip to content

Commit 766e295

Browse files
committed
Major rework of dynamics
Add rne based on spatial vectors to ERobot Move most of DHDynamics to Dynamics which is a mixin for Robot class Remnant DH dynamics to DHRobot various other adjustments added unit tests
1 parent c4ddd73 commit 766e295

File tree

7 files changed

+806
-738
lines changed

7 files changed

+806
-738
lines changed

roboticstoolbox/robot/DHLink.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111

1212
_eps = np.finfo(np.float64).eps
1313

14+
from functools import wraps
15+
def _check_rne(func):
16+
@wraps(func)
17+
def wrapper_check_rne(*args, **kwargs):
18+
if args[0]._rne_ob is None or args[0]._dynchanged:
19+
args[0].delete_rne()
20+
args[0]._init_rne()
21+
args[0]._rne_changed = False
22+
return func(*args, **kwargs)
23+
return wrapper_check_rne
24+
1425
# --------------------------------------------------------------#
1526

1627
try: # pragma: no cover

0 commit comments

Comments
 (0)