diff --git a/metadrive/policy/replay_policy.py b/metadrive/policy/replay_policy.py index 80f54d8a7..28ccce036 100644 --- a/metadrive/policy/replay_policy.py +++ b/metadrive/policy/replay_policy.py @@ -63,6 +63,7 @@ def act(self, *args, **kwargs): self.control_object.set_velocity(info["velocity"], in_local_frame=self._velocity_local_frame) self.control_object.set_heading_theta(info["heading"]) self.control_object.set_angular_velocity(info["angular_velocity"]) + self.control_object.set_static(True) return None # Return None action so the base vehicle will not overwrite the steering & throttle