huawei-noah/SMARTS

To generate myself scenario

Aperta

#1139 aperta il 29 nov 2021

 (3 commenti) (0 reazioni) (1 assegnatario)Python (220 fork)auto 404
help wanted

Metriche repository

Star
 (1129 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

High Level Description [To generate myself scenario]

Desired SMARTS version [e.g. 0.4.18]

Operating System [ubuntu 18.04]

Problems I generated 10 social agents using follow codes:

car_nums = 10
car_index_list = [i for i in range(car_nums)]
laner_actors = []
laner_missions = []
for car_index in car_index_list:
    laner_actors.append(t.SocialAgentActor(name=str(car_index), agent_locator="zoo.policies:keep-lane-agent-v0"))
    laner_missions.append(t.Mission(t.Route(begin=("445633932", car_index, 'random'), end=("445633932", 0, 'max'))))

missions = [
    t.Mission(t.Route(begin=("445633932", 2, 'random'), end=("445633932", 0, 'max')))
]
gen_scenario(
    t.Scenario(
        # traffic={'cars':traffic},
        ego_missions=missions,
        social_agent_missions={"all": (laner_actors, laner_missions)}

    ),
    output_dir=Path(__file__).parent,
)

But when I visualize this scenario with envision, I can only see one social agent.It seems that one social agent randomly chose from 10 social agents I generate will appear in one episode.I want to know how the 10 social agents appear at the same time.

Guida contributor