Skip to content

Commit

Permalink
set replay object to static (so it will never fall)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhenghao committed Apr 10, 2024
1 parent 2d39dd0 commit a6cce69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions metadrive/policy/replay_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a6cce69

Please sign in to comment.