huawei-noah/SMARTS

To generate myself scenario

Ouverte

#1 139 ouverte le 29 nov. 2021

 (3 commentaires) (0 réaction) (1 personne assignée)Python (220 forks)auto 404
help wanted

Métriques du dépôt

Stars
 (1 129 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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.

Guide contributeur