exoticDFT / TRI-Carla-Challenges

Repository for hosting scripts for running TRI Carla related challenges.
5 stars 0 forks source link

Add functionality to continuously spawn agents around a specific location. #4

Open exoticDFT opened 5 years ago

exoticDFT commented 5 years ago

We need the ability to continuously spawn agents around a specific location based on a maximum agent allowance. The system should keep track of the total number of agents in a given scenario and add more when appropriate. New agents should be spawned after a random time interval.

exoticDFT commented 5 years ago

For example, let's say the scenario should have at most 10 agents at a given time and agents should spawn after 1-5 seconds. When the scenario begins, the scene will wait 2 seconds for the first agent to appear in a random spawn point around the provided location. After that, a second agent will appear after 5 seconds at a random spawn point, and so on until there are 10 agents in the scene. After the 10 agents have spawned, the scenario will continue to monitor the total number of agents. If one or more are removed, new agents, up to 10, will be added to the scene similarly to above.