Skip to content

Commit 8e75dc3

Browse files
committed
add qlim property to ETS
1 parent 5468a89 commit 8e75dc3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roboticstoolbox/robot/ETS.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@
1313
issymbol, tr2jac, transl2, trot2, removesmall, trinv, \
1414
verifymatrix, iseye, tr2jac2
1515

16-
1716
class BaseETS(UserList, ABC):
1817

1918
# T is a NumPy array (4,4) or None
2019
# ets_tuple = namedtuple('ETS3', 'eta axis_func axis joint T jindex flip')
2120

2221
def __init__(
2322
self, axis=None, eta=None, axis_func=None,
24-
unit='rad', j=None, flip=False):
23+
unit='rad', j=None, flip=False, qlim=None):
2524
"""
2625
Elementary transform sequence (superclass)
2726
@@ -148,7 +147,7 @@ def __init__(
148147
# Save all the params in a named tuple
149148
e = SimpleNamespace(
150149
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)
152151

153152
# And make it the only value of this instance
154153
self.data = [e]
@@ -397,6 +396,10 @@ def structure(self):
397396
return ''.join(
398397
['R' if self.isrevolute else 'P' for i in self.joints()])
399398

399+
@property
400+
def qlim(self):
401+
return self.data[0].qlim
402+
400403
def joints(self):
401404
"""
402405
Get index of joint transforms

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