File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 19
19
from roboticstoolbox .robot .Dynamics import Dynamics
20
20
21
21
22
- class SerialLink (Dynamics ):
22
+ class DHRobot (Dynamics ):
23
23
"""
24
24
A superclass for arm type robots. A concrete class that represents a
25
25
serial-link arm-type robot. Each link and joint in the chain is
@@ -67,7 +67,7 @@ def __init__(
67
67
self .tool = tool
68
68
self .gravity = gravity
69
69
70
- super (SerialLink , self ).__init__ ()
70
+ super ().__init__ ()
71
71
72
72
# Verify L
73
73
if not isinstance (L , list ):
@@ -2981,3 +2981,8 @@ def teach2(
2981
2981
# print(
2982
2982
# 'Could not find matplotlib.'
2983
2983
# ' Matplotlib required for this function')
2984
+
2985
+ class SerialLink (DHRobot ):
2986
+ def __init__ (self , * args , ** kwargs ):
2987
+ print ('SerialLink is deprecated, use DHRobot instead' )
2988
+ super ().__init__ (* args , ** kwargs )
You can’t perform that action at this time.
0 commit comments