-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix-arm64 pdm4ar2024 #123
base: master
Are you sure you want to change the base?
fix-arm64 pdm4ar2024 #123
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #123 +/- ##
==========================================
+ Coverage 78.31% 80.05% +1.74%
==========================================
Files 72 77 +5
Lines 4943 5386 +443
Branches 331 397 +66
==========================================
+ Hits 3871 4312 +441
+ Misses 991 970 -21
- Partials 81 104 +23 ☔ View full report in Codecov by Sentry. |
* add eval functions * add idm agent * rename the files * add unit test for safety eval * add unit test for efficiency metric * minor * minor * add unit test for comfort evaluation * minor * idm unit test with minor fix * add idm agent * idm unit test with minor fix * minor * minor * returns collided players * minors + fix for python3.9 * improve test coverage * use f-string * bugfix * add eval functions (#124) Add common functions to evaluate the performance of ego vehicle in the simulation. For safety, the functions to find the minimum distance, minimum time-to-collision(ttc) and maximum deceleration-rate-to-avoid-collision(drac) are implemented. The vehicle geometry is considered in the computation. For efficiency, the function to find the first time that the ego vehicle entered its desired lane is implemented. It only checks whether the vehicle enters the goal lane(or its predecessor/successor), regardless of the progress on the lane. For comfort, the max jerk and the rms of frequency-weighted acceleration(according to ISO2631) is computed. This will be merged after tested locally for the pdm4ar exercise. --------- Co-authored-by: alezana <[email protected]> * revert change in eval * revert change in eval --------- Co-authored-by: alezana <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth considering. View full project report here.
from .vehicle_projected import VehicleStatePrj | ||
|
||
|
||
@dataclass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dataclass | |
@dataclass(frozen=True) |
Use frozen=True
to make the dataclasses
immutable and hashable. Read more.
from dg_commons.sim.models.vehicle_dynamic import VehicleStateDyn | ||
|
||
|
||
@dataclass(unsafe_hash=True, eq=True, order=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dataclass(unsafe_hash=True, eq=True, order=True) | |
@dataclass(unsafe_hash=True, eq=True, order=True, frozen=True) |
Use frozen=True
to make the dataclasses
immutable and hashable. Explained here.
No description provided.