huawei-noah/SMARTS

To generate myself scenario

オープン

#1,139 opened on 2021/11/29

 (3 件のコメント) (0 件のリアクション) (1 人の担当者)Python (220 件のフォーク)auto 404
help wanted

Repository metrics

Stars
 (1,129 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド