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 444d828 commit c77d80fCopy full SHA for c77d80f
roboticstoolbox/robot/ETS.py
@@ -288,17 +288,18 @@ def qlim(self):
288
>>> robot.qlim
289
"""
290
limits = zeros((2, self.n))
291
- for i, j in enumerate(self.joints()):
292
- if self.data[j].isrotation:
293
- if self.data[j].qlim is None:
+
+ for i, et in enumerate(self.joints()):
+ if et.isrotation:
294
+ if et.qlim is None:
295
v = [-pi, pi]
296
else:
- v = self.data[j].qlim
297
- elif self.data[j].istranslation:
298
+ v = et.qlim
+ elif et.istranslation:
299
300
raise ValueError("undefined prismatic joint limit")
301
302
303
304
raise ValueError("Undefined Joint Type")
305
limits[:, i] = v
0 commit comments