Skip to content

Commit

Permalink
Merge pull request #137 from f1tenth/fix_diverge_dir
Browse files Browse the repository at this point in the history
clean up, fix yaw angle bounding
  • Loading branch information
hzheng40 authored Aug 6, 2024
2 parents 69e9dfe + 50b4214 commit d765794
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 310 deletions.
5 changes: 1 addition & 4 deletions f1tenth_gym/envs/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ def update_pose(self, raw_steer, vel):
)

# bound yaw angle
if self.state[4] > 2 * np.pi:
self.state[4] = self.state[4] - 2 * np.pi
elif self.state[4] < 0:
self.state[4] = self.state[4] + 2 * np.pi
self.state[4] %= 2 * np.pi

# update scan
current_scan = RaceCar.scan_simulator.scan(
Expand Down
306 changes: 0 additions & 306 deletions gym/f110_gym/envs/track.py

This file was deleted.

0 comments on commit d765794

Please sign in to comment.