From 933f1899529974cbe47511f6ff3a3f8ec22fc269 Mon Sep 17 00:00:00 2001 From: Rooholla-Khorrambakht Date: Tue, 21 May 2024 20:12:22 -0400 Subject: [PATCH] assert bug removed --- Go2Py/control/walk_these_ways.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Go2Py/control/walk_these_ways.py b/Go2Py/control/walk_these_ways.py index 8c87963..75ad554 100755 --- a/Go2Py/control/walk_these_ways.py +++ b/Go2Py/control/walk_these_ways.py @@ -131,7 +131,8 @@ class CommandInterface: self.stance_width_cmd = 0.25 def setGaitType(self, gait_type): - assert gait_type in [key for key in self.gaits.keys()], f'The gain type should be in {self.gait = torch.tensor(self.gaits[gait_type]) + assert gait_type in [key for key in self.gaits.keys()], f'The gain type should be in {self.gaits.keys()}' + self.gait = torch.tensor(self.gaits[gait_type]) def get_command(self): command = np.zeros((19,))