Conversation
sah-huawei
reviewed
Apr 8, 2021
| smarts.step({}) | ||
| smarts.attach_sensors_to_vehicles( | ||
| agent_spec, smarts.vehicle_index.social_vehicle_ids() | ||
| ) |
Contributor
There was a problem hiding this comment.
When a social vehicle enters a bubble, sensors are also added to the vehicle, which causes this test to be non-deterministic -- it will sometimes assert from trying to add a sensor twice because of that.
Collaborator
Author
There was a problem hiding this comment.
There are two things I could note here:
It is disconcerting that this is non-deterministic, I am unsure what the cause is here but we should get to the bottom of it. I think I will want to merge in the crash generator from #619 and create a variation to try testing for crashes and general determinism.
And the other is that the sensor replacement problem seems to relate to #411.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@sah-huawei
Run this example like
python3.7 examples/low_level.py scenarios/loop.