Skip to content

Commit

Permalink
Merge pull request #90 from ll7/76-default-simulation-view-should-foc…
Browse files Browse the repository at this point in the history
…us-on-the-robot

Refactor PedestrianEnv and enable robot focus in SimulationView
  • Loading branch information
ll7 authored Dec 6, 2024
2 parents 65b9f95 + 06f479e commit 9203fd6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion robot_sf/gym_env/pedestrian_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ def save_recording(self, filename: str = None):
# only save if there are recorded states
if len(self.recorded_states) == 0:
logger.warning("No states recorded, skipping save")
# TODO: First env.reset will always have no recorded states
return

os.makedirs(os.path.dirname(filename), exist_ok=True)
Expand Down
2 changes: 1 addition & 1 deletion robot_sf/render/sim_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class SimulationView:
map_def: MapDefinition = field(default_factory=MapDefinition)
obstacles: List[Obstacle] = field(default_factory=list)
caption: str = "RobotSF Simulation"
focus_on_robot: bool = False
focus_on_robot: bool = True
focus_on_ego_ped: bool = False
record_video: bool = False
video_path: str = None
Expand Down

0 comments on commit 9203fd6

Please sign in to comment.