Skip to content

OpenScenarioXML Export#421

Open
Eric-Vin wants to merge 16 commits into
mainfrom
OpenScenarioXML
Open

OpenScenarioXML Export#421
Eric-Vin wants to merge 16 commits into
mainfrom
OpenScenarioXML

Conversation

@Eric-Vin
Copy link
Copy Markdown
Collaborator

@Eric-Vin Eric-Vin commented Nov 18, 2025

Description

Added experimental functionality to export the result of a Scenic simulation to OpenScenarioXML.

Issue Link

#334 #32

Checklist

  • I have tested the changes locally via pytest and/or other means
  • I have added or updated relevant documentation
  • I have autoformatted the code with black and isort
  • I have added test cases (if applicable)

Additional Notes

N/A

@Eric-Vin Eric-Vin marked this pull request as draft November 18, 2025 23:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 17.56757% with 61 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.97%. Comparing base (4be87bd) to head (96b3ee1).

Files with missing lines Patch % Lines
src/scenic/core/serialization.py 6.15% 61 Missing ⚠️

❌ Your patch check has failed because the patch coverage (17.56%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #421      +/-   ##
==========================================
- Coverage   89.85%   87.97%   -1.89%     
==========================================
  Files          48       48              
  Lines       13346    13419      +73     
==========================================
- Hits        11992    11805     -187     
- Misses       1354     1614     +260     
Files with missing lines Coverage Δ
src/scenic/core/simulators.py 83.76% <100.00%> (-12.08%) ⬇️
src/scenic/core/serialization.py 34.79% <6.15%> (-56.55%) ⬇️

... and 10 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Eric-Vin Eric-Vin linked an issue Feb 21, 2026 that may be closed by this pull request
@Eric-Vin Eric-Vin changed the title [WIP] OpenScenarioXML Export OpenScenarioXML Export May 29, 2026
@Eric-Vin Eric-Vin marked this pull request as ready for review May 29, 2026 03:39
@Eric-Vin Eric-Vin requested a review from dfremont May 29, 2026 03:39
@Eric-Vin
Copy link
Copy Markdown
Collaborator Author

Eric-Vin commented May 29, 2026

An example scenario of a pedestrian crossing the road, occluded by a car, simulated in Metadrive and then exported to XOSC and replayed in ESMINI.
Metadrive GIF:
pedestrianJaywalking_12

ESMINI Replay MP4:
https://github.com/user-attachments/assets/e7032e35-11f1-49e3-8634-6703ead6e9ba

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.

Conversion between scenic and openscenario

1 participant