Skip to content

Commit

Permalink
Add contrib
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jul 30, 2022
1 parent 40f3c7f commit acdb102
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "competition/contrib/smarts-project.bubble_env"]
path = competition/contrib/smarts-project.bubble_env
url = https://github.com/smarts-project/smarts-project.bubble_env
1 change: 1 addition & 0 deletions competition/contrib/smarts-project.bubble_env
4 changes: 2 additions & 2 deletions smarts/env/multi_scenario_v0_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def multi_scenario_v0_env(

agent_specs = {
f"Agent_{i}": AgentSpec(
interface=_resolve_agent_interface(img_meters, img_pixels, action_space)
interface=resolve_agent_interface(img_meters, img_pixels, action_space)
)
for i in range(env_specs["num_agent"])
}
Expand Down Expand Up @@ -238,7 +238,7 @@ def _get_env_specs(scenario: str):
raise Exception(f"Unknown scenario {scenario}.")


def _resolve_agent_interface(
def resolve_agent_interface(
img_meters: int = 64, img_pixels: int = 256, action_space="TargetPose", **kwargs
):
done_criteria = DoneCriteria(
Expand Down

0 comments on commit acdb102

Please sign in to comment.