I try to generate a pedestrain in carla map(Town10HD) in a specific position, eg(-36,118) and terminal would show some problem. Sometimes it show the objective is not in the container, but I could let it stand in the position in python. Another question shows that failed to generate scenario in 2000 iterations and I wonder that how to add the iterations. Could you please give me a small example for how to establish pedestrain in specific in carla? Thanks.
Cross posting my response from: could not generate pedestrian in specific place · Issue #306 · BerkeleyLearnVerify/Scenic · GitHub
In general with this kind of issue (Scenic being unable to sample a valid scene from a scenario), it’s best to use the -v
flag to specify a higher verbosity. This will show what’s causing the rejections, in this case:
Rejected sample X because of Containment violation: unnamed Pedestrian is not contained in its container
By default a Pedestrian must be in the walkable region of the network. To override this, you can specify with regionContainedIn everywhere
, which should allow a scene to be sampled.
1 Like