Skip to content

Commit a33b1af

Browse files
committed
added quat to fknm
1 parent 27189aa commit a33b1af

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

roboticstoolbox/robot/ELink.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,31 +439,35 @@ def _get_fknm(self):
439439
shape_base = []
440440
shape_wT = []
441441
shape_sT = []
442+
shape_sq = []
442443

443444
for shap in self.geometry:
444445
shape_base.append(shap._base)
445446
shape_wT.append(shap._wT)
446447
shape_sT.append(shap._sT)
448+
shape_sq.append(shap._sq)
447449

448450
for shap in self.collision:
449451
shape_base.append(shap._base)
450452
shape_wT.append(shap._wT)
451453
shape_sT.append(shap._sT)
454+
shape_sq.append(shap._sq)
452455

453-
return isflip, axis, jindex, parent, shape_base, shape_wT, shape_sT
456+
return isflip, axis, jindex, parent, shape_base, shape_wT, \
457+
shape_sT, shape_sq
454458

455459
def _init_fknm(self):
456460
if isinstance(self.parent, str):
457461
# Initialise later
458462
return
459463

460464
isflip, axis, jindex, parent, \
461-
shape_base, shape_wT, shape_sT = self._get_fknm()
465+
shape_base, shape_wT, shape_sT, shape_sq = self._get_fknm()
462466

463467
self._fknm = fknm.link_init(
464468
self.isjoint, isflip, axis, jindex, len(shape_base),
465469
self._Ts, self._fk,
466-
shape_base, shape_wT, shape_sT,
470+
shape_base, shape_wT, shape_sT, shape_sq,
467471
parent)
468472

469473
def _update_fknm(self):
@@ -477,13 +481,13 @@ def _update_fknm(self):
477481
return
478482

479483
isflip, axis, jindex, parent, \
480-
shape_base, shape_wT, shape_sT = self._get_fknm()
484+
shape_base, shape_wT, shape_sT, shape_sq = self._get_fknm()
481485

482486
fknm.link_update(
483487
self._fknm,
484488
self.isjoint, isflip, axis, jindex, len(shape_base),
485489
self._Ts, self._fk,
486-
shape_base, shape_wT, shape_sT,
490+
shape_base, shape_wT, shape_sT, shape_sq,
487491
parent)
488492

489493
def _init_Ts(self):

0 commit comments

Comments
 (0)