scenic.core.scenarios¶
Scenario and scene objects.
Summary of Module Members¶
Classes
A compiled Scenic scenario, from which scenes can be sampled. |
|
A scene generated from a Scenic scenario. |
Member Details¶
-
class
Scene
(workspace, objects, egoObject, params)[source]¶ Bases:
object
A scene generated from a Scenic scenario.
- Attributes
-
class
Scenario
(workspace, objects, egoObject, params, externalParams, requirements, requirementDeps)[source]¶ Bases:
object
A compiled Scenic scenario, from which scenes can be sampled.
-
generate
(maxIterations=2000, verbosity=0, feedback=None)[source]¶ Sample a
Scene
from this scenario.- Parameters
maxIterations (int) – Maximum number of rejection sampling iterations.
verbosity (int) – Verbosity level.
feedback (float) – Feedback to pass to external samplers doing active sampling. See
scenic.core.external_params
.
- Returns
A pair with the sampled
Scene
and the number of iterations used.- Raises
RejectionException – if no valid sample is found in maxIterations iterations.
-