PythonAPI icon indicating copy to clipboard operation
PythonAPI copied to clipboard

Error on latest run: Failed to launch TestCase runtime

Open blxl909 opened this issue 4 years ago • 0 comments

Hello, when I create the runtime template of python API, (MAP:CubeTown, Vehicel:Lincoln2017MKZ),with the default code :

from environs import Env import lgsvl

env = Env()

LGSVL__SIMULATOR_HOST = env.str("LGSVL__SIMULATOR_HOST", "127.0.0.1") LGSVL__SIMULATOR_PORT = env.int("LGSVL__SIMULATOR_PORT", 8181) LGSVL__AUTOPILOT_0_HOST = env.str("LGSVL__AUTOPILOT_0_HOST", "127.0.0.1") LGSVL__AUTOPILOT_0_PORT = env.int("LGSVL__AUTOPILOT_0_PORT", 9090)

sim = lgsvl.Simulator(LGSVL__SIMULATOR_HOST, LGSVL__SIMULATOR_PORT) sim.load(env.str("LGSVL__MAP"))

egoState = lgsvl.AgentState() ego = sim.add_agent(env.str("LGSVL__VEHICLE_0"), lgsvl.AgentType.EGO, egoState)

sim.run(30.0)

I get the error Error on latest run: Failed to launch TestCase runtime, how can I fix that?

By the way, when I use API Only,(05-ego-drive-in-circle), when I press the enter button ,I can just control the camera movement,but the vehicel can't move ,how can I deal with it?

blxl909 avatar Jul 12 '21 06:07 blxl909