I want to make a strictly modular scenario i.e. one that does not add anything to its subscenarios. Since a scenario must have an ego, the ego of the modular scenario must be specified in one of its subscenarios. Is it possible? I'd like to be able to do something like this:
This results in scenic.core.errors.RuntimeParseError: tried to make non-object the ego object.
My goal is to choose the specification and behavior of the ego object at runtime, e.g. by asking the user the path of the scenic file that contains the EgoScenario, then importing that scenario using importlib.
I want to make a strictly modular scenario i.e. one that does not add anything to its subscenarios. Since a scenario must have an ego, the ego of the modular scenario must be specified in one of its subscenarios. Is it possible? I'd like to be able to do something like this:
This results in
scenic.core.errors.RuntimeParseError: tried to make non-object the ego object
.My goal is to choose the specification and behavior of the ego object at runtime, e.g. by asking the user the path of the scenic file that contains the EgoScenario, then importing that scenario using
importlib
.