Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Retrieve route edges for a trip with traci

Thank you!

 

Since I want to integrate this into my simulation, I will try to implement a function in matlab to define the client order because this is mandatory and not yet done.

 

Cheers,

Kevin

 

Von: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] Im Auftrag von Jakob Erdmann
Gesendet: Mittwoch, 3. Juli 2019 16:42
An: Sumo project User discussions
Betreff: Re: [sumo-user] Retrieve route edges for a trip with traci

 

You can load the trip into duarouter and read the resulting route output. Likewise you can load the trip into sumo and write the full route using option --vehroute-output.

Also, consider using another traci client to call findRoute.

 

 

 

Am Mi., 3. Juli 2019 um 16:07 Uhr schrieb Kevin Malena <kevin.malena@xxxxxxxxxxxxxxxx>:

Hey,

 

is there a chance to get the edges for a trip which is defined by start and end edge? I wanna use traci (traci4matlab) but findRoute doesn’t work?

I tried to find the (probable) parsing mistake, but wasn’t successful so far.

For exemplary edges edge_a and edge_b the command and the error are:

 

Command:

traci.simulation.findRoute('edge_a,' edge_b ','passenger')

 

Error:

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);

 

The same error occurs in the provided test function traci_test2.m if u uncomment line 802 (route = traci.simulation.findRoute('1i','2o') )

 

 

 

In https://sumo.dlr.de/wiki/Demand/Automatic_Routing it says that the fastest route is chosen and in the sumo-gui the route can be made visible by “show current route”.

Probably someone knows a walkaround.

 

Thanks,

Kevin

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user


Back to the top