Describe the feature and motivation
Apologies if this is already implemented, but I haven't been able to figure it out. I'm trying to generate a scene that places a random number of objects in a rectangle. For example, the following doesn't work:
scenic_string = """
workspace = Workspace(RectangularRegion((0, 0), 0 deg, 1.2, 1.0))
numObjects = DiscreteRange(0, 5)
for i in range(numObjects):
new Object in workspace,
with width 0.015,
with length 0.015
# """
scene = scenic.scenarioFromString(scenic_string)
I'd like to be able to randomize over the number of things in my scene. Is there any way to do this currently?
Additional context
No response
Issue Submission Checklist
Describe the feature and motivation
Apologies if this is already implemented, but I haven't been able to figure it out. I'm trying to generate a scene that places a random number of objects in a rectangle. For example, the following doesn't work:
I'd like to be able to randomize over the number of things in my scene. Is there any way to do this currently?
Additional context
No response
Issue Submission Checklist