huawei-noah/SMARTS

To generate myself scenario

开放

#1,139 创建于 2021年11月29日

 (3 条评论) (0 个反应) (1 位负责人)Python (220 个派生)auto 404
help wanted

仓库指标

星标
 (1,129 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南