my mistake. The call should be:
traci.vehicle.add(veh_ID, "")
For adding vehicles with route file, see
https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#vehicles_and_routes
https://sumo.dlr.de/docs/NETEDIT.html#demand_specific_modes

Am Mo., 25. Nov. 2019 um 14:53 Uhr schrieb Mohsin Memon <
[email protected]>:

> Hi Jakob,
>
> I tried adding vehicle with ID '125' but again I am getting an error :
>
>
> Error in traci.vehicle.add (line 44)
> p.parse(vehID, routeID, varargin{:})
>
>
> I am just calling traci.vehicle.add(veh_ID); in matlab.
> veh_ID = '125'
>
> I would be very much obliged if you reply me in this matter.
>
> And I want to know how to add vehicle with ID '125' in sumo network using
> route file: it shows : vehicle 125 has no route.
>
> here is my code :
>
> clear
> close all
> clc
>
> import traci.constants
>
> scenarioPath=['C:\Users\m_memon\Desktop\SUMO\CS.sumocfg'];
> system(['sumo-gui -c' '"' scenarioPath '"' ' --remote-port 8813
> --start&']);
> traci.init
>
>
> traci.vehicle.moveToXY(vehID, edgeID, lane, x, y, angle, keepRoute);
> traci.vehicle.add(veh_ID);
> traci.simulationStep();
>
> maybe I am doing some mistakes in this, could you please help me with this.
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to