pipeacosta / traci4matlab

An implementation of the Traffic Control Interface for Matlab
BSD 2-Clause "Simplified" License
12 stars 15 forks source link

error in traci.simulation.findRoute #9

Open kmalena opened 5 years ago

kmalena commented 5 years ago

@pipeacosta in my script I wanted to use the findRoute function, but there occurs an indexing error... I checked the function in the provided traci_test2 example and italso doesn't work there... seems to be a problem typecasting in the result reading process:

route = traci.simulation.readStage(result);

Index exceeds array bounds.

Error in traci.Storage/read (line 22) value = this.content(oldpos:this.pos-1);

Error in traci.Storage/readString (line 59) value = char(this.read(len));

Error in traci.simulation.readStage (line 17) intended = result.readString();

Error in traci.simulation.findRoute (line 45) route = traci.simulation.readStage(result);

Error in traci_test2 (line 802) route = traci.simulation.findRoute('1i','2o')