Re: [sumo-user] Adding a new vehicle

2020-11-01 Thread Jakob Erdmann
The error message indicates that the route with id 'i_r1` does not exist. Am Do., 22. Okt. 2020 um 04:58 Uhr schrieb 謝昀宸 : > Thank you for your reply, > I tried to set the allow value of the road to "all", but this problem > still occurs. > The annex is a road setting and program fragment diagram

Re: [sumo-user] Adding a new vehicle

2020-10-21 Thread Michael Behrisch
Hi, it may be that the vehicle is not allowed to drive on the edge. Please check the vclass of the vehicle type and the permissions. If the problem persists, please send the scenario. Best regards, Michael Am 19.10.20 um 08:40 schrieb 謝昀宸: > Hello, > I want to add vehicles randomly in the simulat

[sumo-user] Adding a new vehicle

2020-10-18 Thread 謝昀宸
Hello, I want to add vehicles randomly in the simulation. I try traci.route.add and then traci.vehicle.add But when I run the simulation, an error message appears as follows: traci.exceptions.TraCIException: Invalid route 'i_r1' for vehicle 'i_v1' I have confirmed that the route is error-free beca

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-08 Thread Pratik Dutta
Thanx, *Regards,* Pratik Dutta On Wed, Jun 5, 2019 at 1:52 PM Jakob Erdmann wrote: > The route on which the vehicle starts has edge '51o' as it's first edge > and this edge has only a single lane. > > Am Mi., 5. Juni 2019 um 09:22 Uhr schrieb Pratik Dutta < > pratik...@gmail.com>: > >> The

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-05 Thread Jakob Erdmann
The route on which the vehicle starts has edge '51o' as it's first edge and this edge has only a single lane. Am Mi., 5. Juni 2019 um 09:22 Uhr schrieb Pratik Dutta : > The road network consists of two lanes per road, Still, the error occurs. > I am attaching the required files, Please check it f

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-05 Thread Pratik Dutta
The road network consists of two lanes per road, Still, the error occurs. I am attaching the required files, Please check it for me *Regards,* Pratik Dutta Mob: 8017342498 On Wed, Jun 5, 2019 at 11:54 AM Jakob Erdmann wrote: > The second version (departLane='1') is correct use of the API. Ho

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-04 Thread Jakob Erdmann
The second version (departLane='1') is correct use of the API. However, in SUMO lane indices start counting at 0 so if you insert the vehicle on a 1-lane road, the error ' Invalid departlane definition...' will occur. regards, Jakob Am Mi., 5. Juni 2019 um 07:15 Uhr schrieb Pratik Dutta : > Pard

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-04 Thread Pratik Dutta
Pardon, version is 1.1.0 *Regards,* Pratik Dutta Mob: 8017342498 On Wed, Jun 5, 2019 at 10:43 AM Pratik Dutta wrote: > sumo 1.2.0 > SOrry for the double post, actually the post was not showing in the list > > > > *Regards,* > Pratik Dutta > Mob: 8017342498 > > > On Wed, Jun 5, 2019 at 2:45 A

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-04 Thread Pratik Dutta
sumo 1.2.0 SOrry for the double post, actually the post was not showing in the list *Regards,* Pratik Dutta Mob: 8017342498 On Wed, Jun 5, 2019 at 2:45 AM Jakob Erdmann wrote: > what version of sumo are you using? > Also, please don't double-post your questions. There are already enough > ma

Re: [sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-04 Thread Jakob Erdmann
what version of sumo are you using? Also, please don't double-post your questions. There are already enough mails on this list. Am Di., 4. Juni 2019 um 16:35 Uhr schrieb Pratik Dutta : > Hello everyone, > I want to insert an vehicle to the network using the code > > traci.vehicle.add('X', rID, ty

[sumo-user] [SUMO-USER] Adding a new vehicle

2019-06-04 Thread Pratik Dutta
Hello everyone, I want to insert an vehicle to the network using the code traci.vehicle.add('X', rID, typeID='DEFAULT_VEHTYPE', depart='72', *departLane=int(1)*, departPos=str(tempPostion), departSpeed='0', arrivalLane="1", arrivalPos='max', arrivalSpeed='current', fromTaz='', toTaz='', line='', p