代码调试记录
论文名称:《Combining Reinforcement Learning with Model Predictive Control for On-Ramp Merging》
代码链接: https://github.com/jlubars/RL-MPC-LaneMerging
1 traci连接不上
解决方法:
改traci连接的port号,在sumo.py的line 52,将traci.start(sumo_cmd) 改为 traci.start(sumo_cmd,port=8813),
因为在Sumo\tools\traci\main.py中,
def init(port=8813, numRetries=tc.DEFAULT_NUM_RETRIES, host="localhost", label="default", proc=None, doSwitch=True):
定义了port为8813.