Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactoring of track ingestion #82

Merged
merged 18 commits into from
Jul 11, 2023
Merged

refactoring of track ingestion #82

merged 18 commits into from
Jul 11, 2023

Conversation

luigiberducci
Copy link
Collaborator

Update track ingestion:

  • env constructor takes only the map name (e.g., Skirk, Vegas), no need to specify map extension anymore.
  • track information will be automatically loaded into a Track object.
  • raceline and centerline will be loaded as Raceline object, if corresponding files exist in the map dir.
  • map directory moved from f110_gym/envs to f110_gym.

I will open a separate issue for the integration and automatic download of f1tenth_racetracks.

adapt map_path in config_example_map.yaml
add track loading and test
add dependency for yaml dataclass
refactor simulator accordingly
refactoring example, waypoint follower
delete unused config file,
adapt gym_api_test.py to use map name,
add test to check consistency on the loaded raceline,
add test to check return None if missing raceline
update gitignore with zip files
# Conflicts:
#	examples/waypoint_follow.py
#	gym/f110_gym/envs/base_classes.py
#	gym/f110_gym/envs/f110_env.py
#	gym/f110_gym/unittest/gym_api_test.py
refactor old test to simplified track ingestion,
linting
# Conflicts:
#	examples/waypoint_follow.py
#	gym/f110_gym/envs/f110_env.py
add load_spec method for reuse in test,
add test to check map dir structure,
update waypoint_follow example,
linting
@luigiberducci luigiberducci self-assigned this Jul 9, 2023
@luigiberducci luigiberducci added the enhancement New feature or request label Jul 9, 2023
@luigiberducci luigiberducci linked an issue Jul 9, 2023 that may be closed by this pull request
@luigiberducci luigiberducci changed the title refactoring track ingestion refactoring of track ingestion Jul 9, 2023
@hzheng40
Copy link
Member

I've added the ingestion of the track files and extraction to the correct directories.
Whenever the track classes are imported, the download check is triggered.
Checking whether the track files already exists is still a little hacky.
Someone else should test it out.
Otherwise, all looks good and works on my side with waypoint follow.

Copy link
Member

@hzheng40 hzheng40 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luigiberducci
Copy link
Collaborator Author

luigiberducci commented Jul 11, 2023

@hzheng40 Shall we pack each track individually so that we can check and eventually download a specific track?
It could be convenient if we don't want to download all of them, easy to check, and easy to extend to new tracks (even if it won't happen so frequently)

@hzheng40
Copy link
Member

@luigiberducci That's true. I'll package the tracks separately and move the download into find_track_dir probably?

@hzheng40
Copy link
Member

Updated, @luigiberducci. Should we also consider ignoring uppercase letters in the track name?

@luigiberducci
Copy link
Collaborator Author

Ok, looks good to me.

I corrected minor things:

  • fix warning unclosed tmp file,
  • add map to .gitignore,
  • add a test

About uppercase, I don't have strong preferences. I have just kept the convention from f1tenth_racetracks.
However, we should decide if keeping the old tracks (without raceline and centerline) or get rid of them.

@hzheng40 hzheng40 merged commit d8a5db6 into v1.0.0 Jul 11, 2023
@luigiberducci luigiberducci deleted the dev_track_refactoring branch February 14, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactoring of track ingestion
2 participants