Skip to content

Commit 6e3de30

Browse files
committed
fix bugs in Jacobian block
1 parent 7f68cb2 commit 6e3de30

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roboticstoolbox/blocks/arm.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def __init__(
244244
self,
245245
robot,
246246
frame="0",
247-
representation="rpy/xyz",
247+
representation=None,
248248
inverse=False,
249249
pinv=False,
250250
damping=None,
@@ -256,7 +256,7 @@ def __init__(
256256
:type robot: Robot subclass
257257
:param frame: Frame to compute Jacobian for, one of: "0" [default], "e"
258258
:type frame: str, optional
259-
:param representation: representation for analytical Jacobian, defaults to "rpy/xyz"
259+
:param representation: representation for analytical Jacobian
260260
:type representation: str, optional
261261
:param inverse: output inverse of Jacobian, defaults to False
262262
:type inverse: bool, optional
@@ -318,8 +318,7 @@ def __init__(
318318
def output(self, t, inports, x):
319319
q = inports[0]
320320

321-
if self.representation is None:
322-
J = self.jfunc(q)
321+
J = self.jfunc(q)
323322

324323
# add damping term if given
325324
if (self.inverse or self.pinv) and self.damping is not None:

0 commit comments

Comments
 (0)