We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7baf4e1 commit 6f15606Copy full SHA for 6f15606
roboticstoolbox/robot/ERobot.py
@@ -79,6 +79,10 @@ def __init__(
79
# search order
80
orlinks = []
81
82
+ if isinstance(arg, DHRobot):
83
+ # we're passed a DHRobot object
84
+ args = args.ets()
85
+
86
link_number = 0
87
if isinstance(arg, SuperETS):
88
# we're passed an ETS string
@@ -128,20 +132,6 @@ def __init__(
128
132
if link.isjoint:
129
133
n += 1
130
134
131
-
- elif isinstance(arg, DHRobot):
- # we're passed a DHRobot object
135
- self.__init__(
136
- arg.ets(),
137
- name=arg.name,
138
- manufacturer=arg.manufacturer,
139
- comment=arg.comment,
140
- base=arg.base,
141
- tool=arg.tool
142
- )
143
- return
144
145
# elinks = []
146
# for dhlink in arg:
147
# e = dhlink.ets()
0 commit comments