10000 change SerialLink to DHRobot · ctc-eng/robotics-toolbox-python@2957822 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2957822

Browse files
committed
change SerialLink to DHRobot
1 parent 8858377 commit 2957822

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roboticstoolbox/robot/DHLink.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def __init__(
109109

110110
def __add__(self, L):
111111
if isinstance(L, DHLink):
112-
return rp.SerialLink([self, L])
112+
return rp.DHRobot([self, L])
113113

114-
elif isinstance(L, rp.SerialLink):
114+
elif isinstance(L, rp.DHRobot):
115115
nlinks = [self]
116116

117117
# TODO - Should I do a deep copy here a physically copy the Links
@@ -120,7 +120,7 @@ def __add__(self, L):
120120
for i in range(L.n):
121121
nlinks.append(L.links[i])
122122

123-
return rp.SerialLink(
123+
return rp.DHRobot(
124124
nlinks,
125125
name=L.name,
126126
manufacturer=L.manuf,

0 commit comments

Comments
 (0)
0