From 5ce3b21aec47110e5bf2d59e8e040e8a5f870a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Maceiras?= <jeremy.maceiras@idiap.ch> Date: Thu, 31 Oct 2024 15:27:57 +0100 Subject: [PATCH] fix: Fixed gains in iLQRManipulator3D --- python/iLQR_manipulator3D.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/iLQR_manipulator3D.py b/python/iLQR_manipulator3D.py index a94b302..73a2dd1 100644 --- a/python/iLQR_manipulator3D.py +++ b/python/iLQR_manipulator3D.py @@ -13,8 +13,7 @@ License: GPL-3.0-only import numpy as np import numpy.matlib import matplotlib.pyplot as plt -import matplotlib.patches as patches -import math + # Helper functions # =============================== @@ -144,7 +143,7 @@ param.nbPoints = 2 # Number of viapoints param.nbVarX = 7 # State space dimension (x1,x2,x3,...) param.nbVarU = param.nbVarX # Control space dimension (dx1,dx2,dx3,...) param.nbVarF = 7 # Task space dimension (f1,f2,f3 for position, f4,f5,f6,f7 for unit quaternion) -param.q = [1,1,1,0.1,0.1,0.1] # Tracking weighting term for each parameter of F (3 first position, 3 last orientation) +param.q = [1,1,1,1,1,1] # Tracking weighting term for each parameter of F (3 first position, 3 last orientation) param.r = 1e-6 # Control weighting term Rtmp = q2R([np.cos(np.pi/3), np.sin(np.pi/3), 0.0, 0.0]) -- GitLab