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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy