8000 clean up C pointers when we clone the robot · yobzhuu/robotics-toolbox-python@a2926e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2926e9

Browse files
committed
clean up C pointers when we clone the robot
1 parent 2b36075 commit a2926e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roboticstoolbox/robot/Dynamics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def nofriction(self, coulomb=True, viscous=False):
331331

332332
# shallow copy the robot object
333333
nf = copy.copy(self)
334+
nf.delete_rne() # remove the inherited C pointers
334335
nf.name = 'NF/' + self.name
335336

336337
# add the modified links (copies)

0 commit comments

Comments
 (0)
0