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

Generate traffic using CARLA Python API #625

Closed
Qi-Zha0 opened this issue Aug 6, 2023 · 1 comment
Closed

Generate traffic using CARLA Python API #625

Qi-Zha0 opened this issue Aug 6, 2023 · 1 comment

Comments

@Qi-Zha0
Copy link
Contributor

Qi-Zha0 commented Aug 6, 2023

Issue
Currently the obstacles, i.e. vehicles and pedestrians, are spawned using the ROS Bridge carla_spawn_objects package in the launch file, each obstacle configured individually with a hard-coded spawn point. This method can be cumbersome when trying to populate the town with a large number of obstacles. Instead, we can use CARLA traffic manager to spawn and manage the traffic.

Desired outcome

  • Add new parameters in the config file for setting the number of vehicles and pedestrians
  • Generate obstacles using CARLA traffic manager

Update: Spawning pedestrians will cause carla-birdeye-view to crash. I have reported the bug at carla-birdeye-view's Github issue page.

Update: Opened pull request #626 @sergiopaniego Can you take a look at it?
How to run:

  1. Use a modified version of carla-birdeye-view from https://github.com/Qi-Zha0/carla-birdeye-view, copy the carla_birdeye_view folder into BehaviorMetrics. You probably also need to change behavior_metrics/birdview_v2_cache to birdview_v3_cache
  2. Run python3 driver_carla.py -c configs/default_carla_traffic.yml -g
@Qi-Zha0 Qi-Zha0 closed this as completed Sep 11, 2023
@Qi-Zha0 Qi-Zha0 reopened this Sep 11, 2023
@Qi-Zha0
Copy link
Contributor Author

Qi-Zha0 commented Sep 11, 2023

PR #626 merged

@Qi-Zha0 Qi-Zha0 closed this as completed Sep 11, 2023
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

1 participant