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 track and rendering #116

Conversation

luigiberducci
Copy link
Collaborator

@luigiberducci luigiberducci commented Feb 23, 2024

  • Add utility to create an empty map from a reference line (x, y, velx) for testing controllers.
    For this, it has been necessary to update the track ingestion either by string (e.g., Spielberg) or passing a track object.
    See example examples/run_in_empty_track.py.
  • Since track.py was very large, it has been refactored it into the module track
  • Type hint and docstrings updated for the modules track and render
  • Since min python version is 3.9, removed "from future import annotations" and start rewriting type hints with generics

Closes #115

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.

Looks good other than the import in the new example

examples/run_in_empty_track.py Outdated Show resolved Hide resolved
@hzheng40 hzheng40 merged commit 79bdc5e into v1.0.0 Feb 28, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants