From 3abd9278d6a25b4017c6decd6909c38416c7eca7 Mon Sep 17 00:00:00 2001
From: Alex AUTERNAUD <alex.auternaud@inria.fr>
Date: Wed, 29 Mar 2023 10:04:58 +0200
Subject: [PATCH] forwarding changes done in the master branch

---
 social_mpc/mpc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social_mpc/mpc.py b/social_mpc/mpc.py
index 09af487..89314ef 100644
--- a/social_mpc/mpc.py
+++ b/social_mpc/mpc.py
@@ -149,7 +149,7 @@ class MPC:
         if cost_map is not None:
             assert(cost_map.shape == self.cost_map_dim)
         if reg_parameter is not None:
-            assert(len(reg_parameter) == self.action_dim or np.isscalar(isscalar))
+            assert(len(reg_parameter) == self.action_dim or np.isscalar(reg_parameter))
         if goto_goal is not None:
             assert(len(goto_goal) == self.goto_target_dim)
         if pan_goal is not None:
-- 
GitLab