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)
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