Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not generate pedestrian in specific place #306

Closed
2 of 3 tasks
WangRuofeng1998 opened this issue Oct 7, 2024 · 2 comments
Closed
2 of 3 tasks

could not generate pedestrian in specific place #306

WangRuofeng1998 opened this issue Oct 7, 2024 · 2 comments
Labels
domain: driving Related to driving domain

Comments

@WangRuofeng1998
Copy link

System Details

Python Version --Python 3.10
Scenic Version --scenic2.1.0
Operating System / Platform ubuntu 22.04
Simulator Version --CARLA 0.9.15

Detailed Description

  1. I could not generate a pedestrian in a specific place, but this place belongs to the sidewalk and I could generate the pedestrian by python. could you please tell me how the do it in scenic?
  2. Scenic test.scenic --simulate
    3.scenic.core.distributions.RejectionException: failed to generate scenario in 10000 iterations

Steps To Reproduce

SET MAP AND MODEL (i.e. definitions of all referenceable vehicle types, road library, etc)

param map = localPath('../../../assets/maps/CARLA/Town10HD.xodr')
param carla_map = 'Town10HD'
model scenic.simulators.carla.model

ego = Pedestrian at (-36,118)

Issue Submission Checklist

  • I am reporting an issue, not asking a question
  • I checked the open and closed issues, forum, etc. and have not found any solution
  • I have provided all necessary code, etc. to reproduce the issue
@WangRuofeng1998 WangRuofeng1998 added status: triage Issue needs to be assessed type: bug Something isn't working labels Oct 7, 2024
@Eric-Vin Eric-Vin added domain: driving Related to driving domain and removed type: bug Something isn't working status: triage Issue needs to be assessed labels Oct 9, 2024
@Eric-Vin
Copy link
Collaborator

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.

@Eric-Vin
Copy link
Collaborator

Going to close this issue for now and move any further discussion to the forum here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: driving Related to driving domain
Projects
None yet
Development

No branches or pull requests

2 participants