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

run NPCs in waypoint mode, they pass through objects #55

Open
gizem-buss opened this issue Aug 28, 2021 · 3 comments
Open

run NPCs in waypoint mode, they pass through objects #55

gizem-buss opened this issue Aug 28, 2021 · 3 comments

Comments

@gizem-buss
Copy link

Hello, when I run NPCs in waypoint mode, they pass through objects and do not follow traffic rules. How can i solve this ? thanks

@hadiTab
Copy link
Contributor

hadiTab commented Aug 29, 2021

This is by design. In waypoint mode the behavior of the NPCs is defined by the waypoints. The NPC is garuanteed to be at the right waypoint at the designated timestamp no matter what. If you wish to have NPCs follow traffic rules you should spawn the NPCs in the desired location and use follow_closest_lane for the NPC to follow the closest lane and obey traffic rules.

@gizem-buss
Copy link
Author

gizem-buss commented Sep 1, 2021

Thanks. Can I make it follow a newly created lane?

@hadiTab
Copy link
Contributor

hadiTab commented Sep 1, 2021

@gizem-buss the lane needs to be annotated into the scene. If the scene does not have annotations or you wish to change them you will need to modify them using the Map Annotation Tool of the simulator and rebuilt the scene.

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

No branches or pull requests

2 participants