Skip to content

Commit 10a1454

Browse files
committed
[BugFix] Update scripted agent check
1 parent a4a6ee2 commit 10a1454

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vmas/simulator/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,8 @@ def action_callback(self, world: World):
951951
self._action.u is not None
952952
), f"Action script of {self.name} should set u action"
953953
assert (
954-
self._action.u.shape[1] == world.dim_p
955-
), f"Scripted physical action of agent {self.name} has wrong shape"
954+
self._action.u.shape[1] == self.action_size
955+
), f"Scripted action of agent {self.name} has wrong shape"
956956

957957
assert (
958958
(self._action.u / self.action.u_multiplier_tensor).abs()

0 commit comments

Comments
 (0)