|
From: Anderson R. <and...@gm...> - 2013-03-15 01:39:06
|
Hi Craig, Try omitting the depart time, position, speed and lane as well, making your traci call look like this: traci.vehicle.add(str(vehID), str(routeID)) Also, please "answer to all" in the emails so that the other members in sumo-user list receive the emails :) Regards, -- Anderson Rocha Tavares http://inf.ufrgs.br/~artavares/ 2013/3/14 Craig Herndon <cra...@ho...> > Anderson, > > I just made your suggested change and sumo no longer > sends an error. > However, the vehicles still don't see the roadway. I even changed the > depart time to -2. > I have subscribed to vehicles and I use pprint to print out the > subscription results. > 80 is the traci constant for road id. 86 is the traci constant for lane > position. I don't understand > why the cars are never added to the roadway. > > {'1': {80: '', 86: -1001.0}, > '10': {80: '', 86: -1001.0}, > '2': {80: '', 86: -1001.0}, > '3': {80: '', 86: -1001.0}, > '4': {80: '', 86: -1001.0}, > '5': {80: '', 86: -1001.0}, > '6': {80: '', 86: -1001.0}, > '7': {80: '', 86: -1001.0}, > '8': {80: '', 86: -1001.0}, > '9': {80: '', 86: -1001.0}} > > > *Craig T Herndon* > cth...@me... > (m)901-552-7919 > > > > From: and...@gm... > > Date: Thu, 14 Mar 2013 17:23:27 -0300 > > To: cra...@ho... > > CC: sum...@li... > > Subject: Re: [sumo-user] Adding vehicles dynamically with traci > > > > > Hi, > > > > Have you tried inserting the vehicle omitting the type parameter? > > > > Regards, > > -- > > Anderson Rocha Tavares > > http://inf.ufrgs.br/~artavares/ > > > > > > 2013/3/13 Craig Herndon <cra...@ho...> > > > > > Hello all, > > > > > > I am having trouble with traci and was wondering if anyone > > > could help out. > > > I am running sumo through my own modification of runner.py I have > defined > > > the standard > > > vehicle of type1 in my routes file. However, when I go to create a > > > vehicle, I run this line. > > > > > > traci.vehicle.add(str(vehID), str(routeID), depart=0+1000*step, pos=0, > > > speed=-1, lane=0, typeID="type1") > > > > > > Sumo returns the following message: "Error: Answered with error to > command > > > 196: Invalid type 'type1' for vehicle '1'". > > > I have confirmed that type1 is defined but apparently it is not defined > > > properly. Does anyone have any suggestions? > > > > > > > > > Craig T Herndon > > > cth...@me... > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Everyone hates slow websites. So do we. > > > Make your web apps faster with AppDynamics > > > Download AppDynamics Lite for free today: > > > http://p.sf.net/sfu/appdyn_d2d_mar > > > _______________________________________________ > > > sumo-user mailing list > > > sum...@li... > > > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > > > ------------------------------------------------------------------------------ > > Everyone hates slow websites. So do we. > > Make your web apps faster with AppDynamics > > Download AppDynamics Lite for free today: > > http://p.sf.net/sfu/appdyn_d2d_mar > > _______________________________________________ > > sumo-user mailing list > > sum...@li... > > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > > > |