We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a6ee2 commit 10a1454Copy full SHA for 10a1454
vmas/simulator/core.py
@@ -951,8 +951,8 @@ def action_callback(self, world: World):
951
self._action.u is not None
952
), f"Action script of {self.name} should set u action"
953
assert (
954
- self._action.u.shape[1] == world.dim_p
955
- ), f"Scripted physical action of agent {self.name} has wrong shape"
+ self._action.u.shape[1] == self.action_size
+ ), f"Scripted action of agent {self.name} has wrong shape"
956
957
958
(self._action.u / self.action.u_multiplier_tensor).abs()
0 commit comments