|
13 | 13 | issymbol, tr2jac, transl2, trot2, removesmall, trinv, \
|
14 | 14 | verifymatrix, iseye, tr2jac2
|
15 | 15 |
|
16 |
| - |
17 | 16 | class BaseETS(UserList, ABC):
|
18 | 17 |
|
19 | 18 | # T is a NumPy array (4,4) or None
|
20 | 19 | # ets_tuple = namedtuple('ETS3', 'eta axis_func axis joint T jindex flip')
|
21 | 20 |
|
22 | 21 | def __init__(
|
23 | 22 | self, axis=None, eta=None, axis_func=None,
|
24 |
| - unit='rad', j=None, flip=False): |
| 23 | + unit='rad', j=None, flip=False, qlim=None): |
25 | 24 | """
|
26 | 25 | Elementary transform sequence (superclass)
|
27 | 26 |
|
@@ -148,7 +147,7 @@ def __init__(
|
148 | 147 | # Save all the params in a named tuple
|
149 | 148 | e = SimpleNamespace(
|
150 | 149 | eta=eta, axis_func=axis_func,
|
151 |
| - axis=axis, joint=joint, T=T, jindex=j, flip=flip) |
| 150 | + axis=axis, joint=joint, T=T, jindex=j, flip=flip, qlim=qlim) |
152 | 151 |
|
153 | 152 | # And make it the only value of this instance
|
154 | 153 | self.data = [e]
|
@@ -397,6 +396,10 @@ def structure(self):
|
397 | 396 | return ''.join(
|
398 | 397 | ['R' if self.isrevolute else 'P' for i in self.joints()])
|
399 | 398 |
|
| 399 | + @property |
| 400 | + def qlim(self): |
| 401 | + return self.data[0].qlim |
| 402 | + |
400 | 403 | def joints(self):
|
401 | 404 | """
|
402 | 405 | Get index of joint transforms
|
|
0 commit comments