Skip to content

Commit

Permalink
Merge pull request #104 from f1tenth/bugfix-example-reset-poses
Browse files Browse the repository at this point in the history
Bugfix example reset poses
  • Loading branch information
luigiberducci authored Dec 29, 2023
2 parents 0f3b630 + 50e84d3 commit 476a777
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 1 addition & 10 deletions examples/waypoint_follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,20 +318,11 @@ def main():

planner = PurePursuitPlanner(track=track, wb=0.17145 + 0.15875)

poses = np.array(
[
[
track.raceline.xs[0],
track.raceline.ys[0],
track.raceline.yaws[0],
]
]
)
env.unwrapped.add_render_callback(planner.render_waypoints)
env.unwrapped.add_render_callback(planner.render_local_plan)
env.unwrapped.add_render_callback(planner.render_lookahead_point)

obs, info = env.reset(options={"poses": poses})
obs, info = env.reset()
done = False
env.render()

Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/action.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from abc import abstractmethod
from enum import Enum
from typing import Any, Dict, Tuple
Expand Down

0 comments on commit 476a777

Please sign in to comment.