Closed olegsinavski closed 1 year ago
Hi @Adaickalavan, thank you, I managed to run the diagnostic scenarios. First, is there a documentation on various benchmarks there? I have problems understanding the differences between actors/sumo_actors/agents.
Also, looking at the code, I don't think it benchmarks what I'm interested in. It seems to instantiate social agents in scenarios, as opposed to actually controllable agents. Specifically, the _compute
function in the benchmarks uses the following code to create env:
env = gym.make(
"smarts.env:hiway-v0",
scenarios=scenario_dir,
shuffle_scenarios=False,
sim_name="Diagnostic",
agent_specs={},
headless=True,
sumo_headless=True,
seed=_SEED,
)
Since agent_specs={}
is empty, it doesn't seem to create controllable agents and hence doesn't exercise the multiagent control (even if dummy like in my script). Instead, it seems to create many "NPC" vehicles.
What do you think?
@qianyi-sun Please provide some input on this when you have the chance.
Hi @Adaickalavan, thank you, I managed to run the diagnostic scenarios. First, is there a documentation on various benchmarks there? I have problems understanding the differences between actors/sumo_actors/agents.
Also, looking at the code, I don't think it benchmarks what I'm interested in. It seems to instantiate social agents in scenarios, as opposed to actually controllable agents. Specifically, the
_compute
function in the benchmarks uses the following code to create env:env = gym.make( "smarts.env:hiway-v0", scenarios=scenario_dir, shuffle_scenarios=False, sim_name="Diagnostic", agent_specs={}, headless=True, sumo_headless=True, seed=_SEED, )
Since
agent_specs={}
is empty, it doesn't seem to create controllable agents and hence doesn't exercise the multiagent control (even if dummy like in my script). Instead, it seems to create many "NPC" vehicles.What do you think?
Hi @olegsinavski , yes the diagnostic scenarios are meant to be testing the general performance of SMARTS simulation with different type of vehicles, mostly, "NPC" vehicles. The difference between those actors is the following:
zoo
as traffic (fyi, https://smarts.readthedocs.io/en/latest/benchmarks/agent_zoo.html)SmartsLaneChangingModel
and SmartsLaneChangingModel
in https://github.com/huawei-noah/SMARTS/blob/master/smarts/sstudio/types.py)For your use case, since you want to test the performance with multi-ego-agents only, these scenarios might not be suitable to your case. Your script above and commenting out the traffic seems to be the right direction and maybe you can comment out the bubbles
as well since bubble
is mainly for converting background vehicles to social agents when they enter the bubble, it's might not necessary in your case as well.
High Level Description
Hello, I'm trying to understand the speed of SMARTs simulator in a multiagent environment. I'm trying to compute FPS on the simplest scenario:
Version
1.0.11
Operating System
No response
Problems
This is the simplest script I came up with:
I modified sum/loop scenario by commenting out background traffic:
When I visualize the environment, it does look like I expect: there are
n
red agents coming to stop. Here are my numbers: 3 agents - 32.2 5 agents - 17.69 10 agents - 9.9Could someone please help me with the following questions: