BerkeleyLearnVerify / Scenic

A compiler and scenario generator for the Scenic scenario description language.
https://scenic-lang.org/
Other
256 stars 91 forks source link

feat: adding output gif for newtonian simulator #273

Closed abanuelo closed 1 month ago

abanuelo commented 1 month ago

Description

As a way to illustrate dynamic scenarios more concretely in Google Colab, added a feature to show dynamic scenarios via an output gif. See the output gif when running:

scenic examples/driving/badlyParkedCarPullingIn.scenic -S -m scenic.simulators.newtonian.driving_model --2d

https://github.com/BerkeleyLearnVerify/Scenic/assets/32311654/b7f640b8-af61-4a27-8754-f42ccff40cef

Also I am adding that it works with Colab:

https://github.com/BerkeleyLearnVerify/Scenic/assets/32311654/667fc2fb-097b-4d17-9166-5a1e54ae9d32

Issue Link

Checklist

Additional Notes

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@836b0f8). Learn more about missing BASE report.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/BerkeleyLearnVerify/Scenic/pull/273/graphs/tree.svg?width=650&height=150&src=pr&token=HN3J4Y6F89&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BerkeleyLearnVerify)](https://app.codecov.io/gh/BerkeleyLearnVerify/Scenic/pull/273?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BerkeleyLearnVerify) ```diff @@ Coverage Diff @@ ## main #273 +/- ## ======================================= Coverage ? 91.29% ======================================= Files ? 54 Lines ? 13520 Branches ? 0 ======================================= Hits ? 12343 Misses ? 1177 Partials ? 0 ``` | [Files](https://app.codecov.io/gh/BerkeleyLearnVerify/Scenic/pull/273?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BerkeleyLearnVerify) | Coverage Δ | | |---|---|---| | [src/scenic/simulators/newtonian/simulator.py](https://app.codecov.io/gh/BerkeleyLearnVerify/Scenic/pull/273?src=pr&el=tree&filepath=src%2Fscenic%2Fsimulators%2Fnewtonian%2Fsimulator.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=BerkeleyLearnVerify#diff-c3JjL3NjZW5pYy9zaW11bGF0b3JzL25ld3Rvbmlhbi9zaW11bGF0b3IucHk=) | `89.94% <100.00%> (ø)` | |