carla的time-out of 2000ms while waiting for the simulator

carla添加车辆的时候和本地连接报错 解决办法 RuntimeError: time-out of 2000ms while waiting for the

carla添加车辆的时候和本地连接报错

  • 解决办法

RuntimeError: time-out of 2000ms while waiting for the simulator, make sure the simulator is ready and connected to localhost:2000
将client连接时改为

解决办法

client=carla.Client(host='127.0.0.1', port=2000)