Skip to content

Commit

Permalink
Updated agents to have type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
nandantumu committed Dec 12, 2023
1 parent 170bd71 commit 0e61411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gym/f110_gym/envs/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
Replacement of the old RaceCar, Simulator classes in C++
Author: Hongrui Zheng
"""
from typing import List
import numpy as np
from f110_gym.envs.dynamic_models import DynamicModel
from f110_gym.envs.action import CarAction
Expand Down Expand Up @@ -406,7 +407,7 @@ def __init__(
self.ego_idx = ego_idx
self.params = params
self.agent_poses = np.empty((self.num_agents, 3))
self.agents = []
self.agents: List[RaceCar] = []
self.collisions = np.zeros((self.num_agents,))
self.collision_idx = -1 * np.ones((self.num_agents,))
self.model = model
Expand Down

0 comments on commit 0e61411

Please sign in to comment.