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

How to implement entities that appear at simulation time > 0 second? #256

Open
ftgTUGraz opened this issue Sep 25, 2024 · 2 comments
Open

Comments

@ftgTUGraz
Copy link

Hi,

I am using to implement the trajectory-based scenario description based on "scenariogeneration". However, I do not know how to implement the vehicles that should appear later than simulation time 0 e.g., 11.24 seconds? The following is my xosc file, but the vehicle appears in esmini since simulation time 0:

How should I modify the xosc file to fix this problem?

@ftgTUGraz
Copy link
Author

ftgTUGraz commented Sep 25, 2024

Hi,

Please download my xosc file via the following link.

https://bigmail.tugraz.at/outgoing/yongqi_zhao_195212_2217617/6065_en.html
Objects 21 - 31 appear later than 0 second.

@eknabevcc
Copy link
Collaborator

esmini will introduce all entities that appear in the Init section from start of the scenario. If you want an entity to appear later, don't add actions for it in the Init section.

See attached modified version of your scenario. I simplified it, only keeping obj_20 appearing from beginning and obj_22 appearing after 1.48 seconds. obj_22 then disappears after 9.4 seconds, while obj_20 stays until 12.4.

Also note that I put three actions within the same event for obj_22; AddEntityAction, SpeedAction and FollowTrajectoryAction. That's a simple way to ensure same trigger time.

I hope this gives some ideas for your use case.

highD2xosc_addDeleteEntity_mod.zip

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

No branches or pull requests

2 participants