Re: [sumo-user] Disconnect with Traci

2018-07-11 Thread 胡志强
Hi Jakob,
Thank you very mach! I have solved all my problems.

Best regards,
Zhiqiang

Jakob Erdmann  于2018年7月11日周三 下午8:36写道:

> Possibly. Unless the error is caused by SUMO closing with an error before
> opening the socket.
> You can run multiple simulations on the same connection by using the
> function traci.load
> See http://sumo.dlr.de/daily/pydoc/traci.html#-load
>
> regards,
> Jakob
>
> 2018-07-11 14:34 GMT+02:00 胡志强 :
>
>> Hi Jakob.
>> If I have the error"Could not connect to TraCI server at ..",will this be
>> solved by repeating the simulation in the same traci connection?If  yes
>> ,how?
>>
>> Best regards,
>> Zhiqiang
>>
>> Jakob Erdmann  于2018年7月11日周三 下午6:52写道:
>>
>>> If you have the error "connection closed by SUMO" this would not be
>>> solved by repeating the simulation in the same traci connection. Diagnose
>>> it using logfiles as explained in my last email.
>>>
>>> 2018-07-11 12:29 GMT+02:00 胡志强 :
>>>
 Hi Jakob,
 I have add the option numTries=100 to traci.start(),but the error is
 still exist.Could you please tell me is there a approach to repeat my
 simulation in the same traci ?Then ,I don't need to connect the server
 again and again,my problem solved.

 Best regards,
 Zhiqiang

 Jakob Erdmann  于2018年7月11日周三 下午2:44写道:

> the error "connection closed by SUMO"  indicates that an error ocurred
> on the SUMO side.
> If you create a log file for every sumo run you can look for the
> problem in the latest logfile:
>
> for i in range(2):
>traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>   "--tripinfo-output", "tripinfo.xml", "log",
> str(i)])
>
>
> 2018-07-11 5:47 GMT+02:00 胡志强 :
>
>> Hi Jakob,
>> Thank you,it works.But the problem is also exist,it retries for 101
>> times then closed and I'm sure that my computer's memory is enough.And I
>> also occurred the error that "connection closed by SUMO",If you want more
>> details,tell me.
>>
>> Best regards,
>> Zhiqiang
>>
>> Jakob Erdmann  于2018年7月11日周三 上午1:13写道:
>>
>>> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>>   "--tripinfo-output", "tripinfo.xml"],
>>> numTries=100)
>>>
>>>
>>> 2018-07-10 16:46 GMT+02:00 胡志强 :
>>>
 Hi,
 Could you please tell me how add the option numTries=100 to
 traci.start()?

 Best regards,
 Zhiqiang

 Jakob Erdmann  于2018年7月10日周二 下午10:27写道:

> - Possibly the simulation cannot start in time because the
> computer is still busy from closing the previous simulations. You 
> could add
> the option numTries=100 to traci.start() to diagnose this
> - Possibly, the simulation cannot start successfully because your
> computer is out of memory (which might indicate a memory leak in 
> sumo).
>
>
>
> 2018-07-10 16:04 GMT+02:00 胡志强 :
>
>> Hi,
>> My SUMO version is 0.32.0,and I write a loop to simulate for many
>> times, I start SUMO like this:
>> for i in range(2):
>> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>   "--tripinfo-output", "tripinfo.xml"])
>> ...
>> ...
>> traci.close()
>> At the beginning,it works well,but it may disconnect with traci
>> and the time points is different.I don't know what's wrong.
>>
>> Menno van der Woude  于2018年7月10日周二
>> 下午9:32写道:
>>
>>> Hi Zhiqiang,
>>>
>>> it could be helpful if you provide some more details:
>>> Under what circumstances does the connection fail? Do the
>>> circumstances
>>> during failure differ from before? Does it disconnect while it
>>> is
>>> connected, or not connect at all? Etc.
>>> Also, how are you starting SUMO, manually, programmatically? Etc.
>>>
>>> Greets, Menno
>>>
>>> On 10-7-2018 15:27, 胡志强 wrote:
>>> > At the beginning ,it works well,but some time later,it may
>>> disconnect
>>> > with the sever.So ,what's the possible reasons?
>>> >
>>> > Best regards,
>>> > Zhiqiang
>>> >
>>> >
>>> >
>>> > Menno van der Woude >> > > 于2018年7月10日周二 下午8:44写道:
>>> >
>>> > Hi Zhiqiang,
>>> >
>>> > it seems like SUMO is not running, since the the client
>>> cannot connect
>>> > to the TCP server. Make sure you start SUMO with the
>>> --remote-port
>>> > 
>>> > option as described here:
>>> http://sumo.dlr.de/wiki/TraCI#SUMO_startup.
>>> >
>>> >  

Re: [sumo-user] dealing with bicycles in routes

2018-07-11 Thread Barto, Martin
Thank you for your answers, Jakob. I will look into it.

Met vriendelijke groet,

Martin Barto
Senior Verkeerskundige
Mobiliteit

[cid:image001.jpg@01D419B9.A8B25290]   
[cid:image002.jpg@01D419B9.A8B25290] 


Vialis is een Koninklijke 
VolkerWessels onderneming.

Postbus 184, 3990 DD Houten | tel. +31648510557 mob. +31648510557
[http://www.vialis.nl]

[http://www.linkedin.com/company/vialis]

[https://twitter.com/vialisbv]

[http://www.youtube.com/user/VialisBV]


.
.
Van: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] 
Namens Jakob Erdmann
Verzonden: woensdag 11 juli 2018 14:06
Aan: Sumo project User discussions 
Onderwerp: Re: [sumo-user] dealing with bicycles in routes

There are two possible candiate reasons for the described symptoms:
1) the bicycles given to duarouter are not configured as bicycle but rather as 
passenger cars (vClass="bicycle" is required to allow driving on bicycle lanes).
2) the bicyle routes require intermediate usage of passenger-car-only lanes. 
You can use SUMO-GUI to highlight all edges for a specific vClass by selecting 
'Edit->Selectlanes which allow->...' from the main menu.

regards,
Jakob

2018-07-11 8:55 GMT+02:00 Barto, Martin 
mailto:martin.ba...@vialis.nl>>:
Dear SUMO-users,

I have another issue.

As many will probably know we have a lot of cycle paths in Holland, also around 
traffic controlled intersections. I made special edges fort he cyclists which 
allow only bicycles. This results in het net-file in red bicycle paths around 
the intersection, which is perfect.

I then made flows in the route-file with bicycle flows of every quarter within 
a day, just like I did with motorized vehicle. But the I get errors running 
duarouter with the message the connection can’t be found.

I found the solution for this. When I allow not only bicycles but also 
passenger (cars), it works. This is workable, but not completely right in my 
opinion. The main thing now is the bicycle paths aren’t colored red anymore. 
Also when I change the net-file afterwards, I get error messages from the 
route-file. So it isn’t possible to make route-trips when the edge doesn’t 
allow passengers? Is there another solution to color edges?

Met vriendelijke groet,

Martin Barto
Senior Verkeerskundige
Mobiliteit

[cid:image001.jpg@01D419B9.A8B25290]   
[cid:image002.jpg@01D419B9.A8B25290] 


Vialis is een Koninklijke 
VolkerWessels onderneming.

Postbus 184, 3990 DD Houten | tel. +31648510557 mob. +31648510557
[http://www.vialis.nl]

[http://www.linkedin.com/company/vialis]

[https://twitter.com/vialisbv]

[http://www.youtube.com/user/VialisBV]


.
.


Look here for our e-mail disclaimer: http://cp.vialis.nl/disclaimer.html

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



Look here for our e-mail disclaimer: http://cp.vialis.nl/disclaimer.html
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Fully Controlled Vehicle

2018-07-11 Thread Jakob Erdmann
SUMO assumes control of vehicles as soon as they are no longer controlled
remotely. This also resets their angle to the road angle. If you call
simulationStep with a 1000ms increment but the simulation runs at 10ms then
the angle will definitely be reset because the vehicle is under SUMO
control for 99 steps out of 100.

2018-07-11 16:47 GMT+02:00 Timothée Corsini :

> I might not use everytime the moveToXY function.
> SimulationStep is called with the argument time which is incremented each
> time by 1000 ms, it should be reduced later, we didn't want to send too
> much messages per second.
> I have set the --step-length option to 0.01 (10 ms) in order to see a more
> continuous circulation of the vehicles in SUMO-GUI.
>
> Does that mean that for every step (even the ones I do not communicate
> with) I should send a moveToXY command ?
>
> I am currently looking for errors, I might have done some mistakes in the
> communications.
>
> 2018-07-11 16:17 GMT+02:00 Jakob Erdmann :
>
>> This is working as expected at least in our tests.
>>
>> do you call moveToXY in every simulation step?
>> did you set the --step-length option for sumo?
>> are you using any arguments for when calling simulationStep()?
>>
>> 2018-07-11 14:46 GMT+02:00 Timothée Corsini :
>>
>>> Hi,
>>>
>>> Thanks for the quick answer. I've made a mistake in my previous message,
>>> I meant that even if I chose an angle (for exemple 40°), Sumo will adapt
>>> the orientation of the car according to the edge, I would like Sumo to not
>>> do that, here is how I create a car :
>>>
>>> mSumoClient.vehicle.add(vID, string("route0"), vType);
>>> mSumoClient.vehicle.moveToXY(vID, string(""), 0, pos.x, pos.y, 135.0,
>>> 2);
>>> mSumoClient.mySetLaneChangeMode(vID, 0);
>>> mSumoClient.mySetSpeedMode(vID, 0);
>>> mSumoClient.vehicle.setSpeed(vID, 0);
>>>
>>> (vID, vType are strings and pos is a Position type, mSumoClient comes
>>> from the TraCIAPI class, as for the functions mySet... they weren't
>>> implemented in the C++ version so I wrote them by referring to the Python
>>> implementation of TraCIAPI)
>>> The map used is two roads of 1 km (one is horizontal, the other
>>> vertical) crossing themselves at the center of the map but not recognizing
>>> themselves (There is no node representing the intersection). When I create
>>> a car, if it's outside the road network, the car has the orientation
>>> expected (135°) but if it's in an edge, it will be orientated according to
>>> the lane direction (so for the vertical edge : 0° or 180°). I would like to
>>> prevent this.
>>>
>>> regards,
>>> Timothee Corsini
>>>
>>> 2018-07-11 13:19 GMT+02:00 Jakob Erdmann :
>>>
 Hello,
 - you can set the angle argument for moveToXY to the TraciConstant
 INVALID_DOUBLE_VALUE and then sumo will calculate an appropriate angle
 - if you call moveToXY for the remote-controlled vehicles in every
 simulation step, then sumo will not  teleport/remove them but still
 recognize them as obstacles.

 regards,
 Jakob

 2018-07-11 13:05 GMT+02:00 Timothée Corsini via sumo-user <
 sumo-u...@lists.sourceforge.net>:

> Hi !
>
> I am currently using SUMO with another software by using the TraCIAPI
> in
> C++. I managed to represent SUMO vehicles in the other software but
> now I
> would like to represent the vehicles from the software in SUMO.
>
> However, I do not want these vehicles to move or change their
> orientation
> unless I ask them to. So I changed their speed, their speedMode and
> laneChangeMode to 0, and I am moving them by using the moveToXY
> function.
> Still, SUMO does not change their angle in order to adpat them to the
> edges, I would like to avoid that, is it possible ?
>
> In fact I would like to control some vehicles without SUMO trying to
> teleport/move/remove them. (but still being recognized as obstacles by
> the
> others vehicles) Is that possible ?
>
> Else, can I simply put obstacles of the shape I want on the road (for
> exemple representing a car accident) or do I have to close the lanes
> manually in order to stop the traffic ?
>
> Sorry for the butchered langage.
>
> Regards,
> Timothee Corsini
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or
> unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>


>>>
>>
>
__

[sumo-user] Questions regarding pedestrians/passengers

2018-07-11 Thread Brandon Penaranda
Greetings!

I am currently using SUMO's source code and was wondering if it is possible
to make pedestrians into something similar to mobile bus stop to simulate a
pedestrian boarding and departing a bus wherever they please as long if the
vehicle is closest to the pedestrian's edge . If it is possible, may I know
what are the classes and methods needed to be changed?

Sincerely,
Brandon.

-- 
   
  
 

DISCLAIMER AND 
CONFIDENTIALITY NOTICE The information contained in this e-mail, including 
those in its attachments, is confidential and intended only for the 
person(s) or entity(ies) to which it is addressed. If you are not an 
intended recipient, you must not read, copy, store, disclose, distribute 
this message, or act in reliance upon the information contained in it. If 
you received this e-mail in error, please contact the sender and delete the 
material from any computer or system. Any views expressed in this message 
are those of the individual sender and may not necessarily reflect the 
views of De La Salle University. 
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Fwd: Fully Controlled Vehicle

2018-07-11 Thread Timothée Corsini via sumo-user
Hi,

Thanks for the quick answer. I've made a mistake in my previous message, I
meant that even if I chose an angle (for exemple 40°), Sumo will adapt the
orientation of the car according to the edge, I would like Sumo to not do
that, here is how I create a car :

mSumoClient.vehicle.add(vID, string("route0"), vType);
mSumoClient.vehicle.moveToXY(vID, string(""), 0, pos.x, pos.y, 135.0, 2);
mSumoClient.mySetLaneChangeMode(vID, 0);
mSumoClient.mySetSpeedMode(vID, 0);
mSumoClient.vehicle.setSpeed(vID, 0);

(vID, vType are strings and pos is a Position type, mSumoClient comes from
the TraCIAPI class, as for the functions mySet... they weren't implemented
in the C++ version so I wrote them by referring to the Python
implementation of TraCIAPI)
The map used is two roads of 1 km (one is horizontal, the other vertical)
crossing themselves at the center of the map but not recognizing themselves
(There is no node representing the intersection). When I create a car, if
it's outside the road network, the car has the orientation expected (135°)
but if it's in an edge, it will be orientated according to the lane
direction (so for the vertical edge : 0° or 180°). I would like to prevent
this.

regards,
Timothee Corsini

2018-07-11 13:19 GMT+02:00 Jakob Erdmann :

> Hello,
> - you can set the angle argument for moveToXY to the TraciConstant
> INVALID_DOUBLE_VALUE and then sumo will calculate an appropriate angle
> - if you call moveToXY for the remote-controlled vehicles in every
> simulation step, then sumo will not  teleport/remove them but still
> recognize them as obstacles.
>
> regards,
> Jakob
>
> 2018-07-11 13:05 GMT+02:00 Timothée Corsini via sumo-user <
> sumo-u...@lists.sourceforge.net>:
>
>> Hi !
>>
>> I am currently using SUMO with another software by using the TraCIAPI in
>> C++. I managed to represent SUMO vehicles in the other software but now I
>> would like to represent the vehicles from the software in SUMO.
>>
>> However, I do not want these vehicles to move or change their orientation
>> unless I ask them to. So I changed their speed, their speedMode and
>> laneChangeMode to 0, and I am moving them by using the moveToXY function.
>> Still, SUMO does not change their angle in order to adpat them to the
>> edges, I would like to avoid that, is it possible ?
>>
>> In fact I would like to control some vehicles without SUMO trying to
>> teleport/move/remove them. (but still being recognized as obstacles by the
>> others vehicles) Is that possible ?
>>
>> Else, can I simply put obstacles of the shape I want on the road (for
>> exemple representing a car accident) or do I have to close the lanes
>> manually in order to stop the traffic ?
>>
>> Sorry for the butchered langage.
>>
>> Regards,
>> Timothee Corsini
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> sumo-user mailing list
>> sumo-u...@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/sumo-user
>>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Disconnect with Traci

2018-07-11 Thread Jakob Erdmann
Possibly. Unless the error is caused by SUMO closing with an error before
opening the socket.
You can run multiple simulations on the same connection by using the
function traci.load
See http://sumo.dlr.de/daily/pydoc/traci.html#-load

regards,
Jakob

2018-07-11 14:34 GMT+02:00 胡志强 :

> Hi Jakob.
> If I have the error"Could not connect to TraCI server at ..",will this be
> solved by repeating the simulation in the same traci connection?If  yes
> ,how?
>
> Best regards,
> Zhiqiang
>
> Jakob Erdmann  于2018年7月11日周三 下午6:52写道:
>
>> If you have the error "connection closed by SUMO" this would not be
>> solved by repeating the simulation in the same traci connection. Diagnose
>> it using logfiles as explained in my last email.
>>
>> 2018-07-11 12:29 GMT+02:00 胡志强 :
>>
>>> Hi Jakob,
>>> I have add the option numTries=100 to traci.start(),but the error is
>>> still exist.Could you please tell me is there a approach to repeat my
>>> simulation in the same traci ?Then ,I don't need to connect the server
>>> again and again,my problem solved.
>>>
>>> Best regards,
>>> Zhiqiang
>>>
>>> Jakob Erdmann  于2018年7月11日周三 下午2:44写道:
>>>
 the error "connection closed by SUMO"  indicates that an error ocurred
 on the SUMO side.
 If you create a log file for every sumo run you can look for the
 problem in the latest logfile:

 for i in range(2):
traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
   "--tripinfo-output", "tripinfo.xml", "log",
 str(i)])


 2018-07-11 5:47 GMT+02:00 胡志强 :

> Hi Jakob,
> Thank you,it works.But the problem is also exist,it retries for 101
> times then closed and I'm sure that my computer's memory is enough.And I
> also occurred the error that "connection closed by SUMO",If you want more
> details,tell me.
>
> Best regards,
> Zhiqiang
>
> Jakob Erdmann  于2018年7月11日周三 上午1:13写道:
>
>> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>   "--tripinfo-output", "tripinfo.xml"],
>> numTries=100)
>>
>>
>> 2018-07-10 16:46 GMT+02:00 胡志强 :
>>
>>> Hi,
>>> Could you please tell me how add the option numTries=100 to
>>> traci.start()?
>>>
>>> Best regards,
>>> Zhiqiang
>>>
>>> Jakob Erdmann  于2018年7月10日周二 下午10:27写道:
>>>
 - Possibly the simulation cannot start in time because the computer
 is still busy from closing the previous simulations. You could add the
 option numTries=100 to traci.start() to diagnose this
 - Possibly, the simulation cannot start successfully because your
 computer is out of memory (which might indicate a memory leak in sumo).



 2018-07-10 16:04 GMT+02:00 胡志强 :

> Hi,
> My SUMO version is 0.32.0,and I write a loop to simulate for many
> times, I start SUMO like this:
> for i in range(2):
> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>   "--tripinfo-output", "tripinfo.xml"])
> ...
> ...
> traci.close()
> At the beginning,it works well,but it may disconnect with traci
> and the time points is different.I don't know what's wrong.
>
> Menno van der Woude  于2018年7月10日周二
> 下午9:32写道:
>
>> Hi Zhiqiang,
>>
>> it could be helpful if you provide some more details:
>> Under what circumstances does the connection fail? Do the
>> circumstances
>> during failure differ from before? Does it disconnect while it is
>> connected, or not connect at all? Etc.
>> Also, how are you starting SUMO, manually, programmatically? Etc.
>>
>> Greets, Menno
>>
>> On 10-7-2018 15:27, 胡志强 wrote:
>> > At the beginning ,it works well,but some time later,it may
>> disconnect
>> > with the sever.So ,what's the possible reasons?
>> >
>> > Best regards,
>> > Zhiqiang
>> >
>> >
>> >
>> > Menno van der Woude > > > 于2018年7月10日周二 下午8:44写道:
>> >
>> > Hi Zhiqiang,
>> >
>> > it seems like SUMO is not running, since the the client
>> cannot connect
>> > to the TCP server. Make sure you start SUMO with the
>> --remote-port
>> > 
>> > option as described here: http://sumo.dlr.de/wiki/TraCI#
>> SUMO_startup.
>> >
>> > If you need to simulate many runs, you will have to
>> automate starting
>> > SUMO as well.
>> >
>> > Greets,
>> >
>> > Menno
>> >
>> > On 10-7-2018 14:34, 胡志强 wrote:
>> >  > Dear sumo-users:
>> >  >

Re: [sumo-user] Disconnect with Traci

2018-07-11 Thread 胡志强
Hi Jakob.
If I have the error"Could not connect to TraCI server at ..",will this be
solved by repeating the simulation in the same traci connection?If  yes
,how?

Best regards,
Zhiqiang

Jakob Erdmann  于2018年7月11日周三 下午6:52写道:

> If you have the error "connection closed by SUMO" this would not be solved
> by repeating the simulation in the same traci connection. Diagnose it using
> logfiles as explained in my last email.
>
> 2018-07-11 12:29 GMT+02:00 胡志强 :
>
>> Hi Jakob,
>> I have add the option numTries=100 to traci.start(),but the error is
>> still exist.Could you please tell me is there a approach to repeat my
>> simulation in the same traci ?Then ,I don't need to connect the server
>> again and again,my problem solved.
>>
>> Best regards,
>> Zhiqiang
>>
>> Jakob Erdmann  于2018年7月11日周三 下午2:44写道:
>>
>>> the error "connection closed by SUMO"  indicates that an error ocurred
>>> on the SUMO side.
>>> If you create a log file for every sumo run you can look for the problem
>>> in the latest logfile:
>>>
>>> for i in range(2):
>>>traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>>   "--tripinfo-output", "tripinfo.xml", "log",
>>> str(i)])
>>>
>>>
>>> 2018-07-11 5:47 GMT+02:00 胡志强 :
>>>
 Hi Jakob,
 Thank you,it works.But the problem is also exist,it retries for 101
 times then closed and I'm sure that my computer's memory is enough.And I
 also occurred the error that "connection closed by SUMO",If you want more
 details,tell me.

 Best regards,
 Zhiqiang

 Jakob Erdmann  于2018年7月11日周三 上午1:13写道:

> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>   "--tripinfo-output", "tripinfo.xml"],
> numTries=100)
>
>
> 2018-07-10 16:46 GMT+02:00 胡志强 :
>
>> Hi,
>> Could you please tell me how add the option numTries=100 to
>> traci.start()?
>>
>> Best regards,
>> Zhiqiang
>>
>> Jakob Erdmann  于2018年7月10日周二 下午10:27写道:
>>
>>> - Possibly the simulation cannot start in time because the computer
>>> is still busy from closing the previous simulations. You could add the
>>> option numTries=100 to traci.start() to diagnose this
>>> - Possibly, the simulation cannot start successfully because your
>>> computer is out of memory (which might indicate a memory leak in sumo).
>>>
>>>
>>>
>>> 2018-07-10 16:04 GMT+02:00 胡志强 :
>>>
 Hi,
 My SUMO version is 0.32.0,and I write a loop to simulate for many
 times, I start SUMO like this:
 for i in range(2):
 traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
   "--tripinfo-output", "tripinfo.xml"])
 ...
 ...
 traci.close()
 At the beginning,it works well,but it may disconnect with traci and
 the time points is different.I don't know what's wrong.

 Menno van der Woude  于2018年7月10日周二
 下午9:32写道:

> Hi Zhiqiang,
>
> it could be helpful if you provide some more details:
> Under what circumstances does the connection fail? Do the
> circumstances
> during failure differ from before? Does it disconnect while it is
> connected, or not connect at all? Etc.
> Also, how are you starting SUMO, manually, programmatically? Etc.
>
> Greets, Menno
>
> On 10-7-2018 15:27, 胡志强 wrote:
> > At the beginning ,it works well,but some time later,it may
> disconnect
> > with the sever.So ,what's the possible reasons?
> >
> > Best regards,
> > Zhiqiang
> >
> >
> >
> > Menno van der Woude  > > 于2018年7月10日周二 下午8:44写道:
> >
> > Hi Zhiqiang,
> >
> > it seems like SUMO is not running, since the the client
> cannot connect
> > to the TCP server. Make sure you start SUMO with the
> --remote-port
> > 
> > option as described here:
> http://sumo.dlr.de/wiki/TraCI#SUMO_startup.
> >
> > If you need to simulate many runs, you will have to automate
> starting
> > SUMO as well.
> >
> > Greets,
> >
> > Menno
> >
> > On 10-7-2018 14:34, 胡志强 wrote:
> >  > Dear sumo-users:
> >  >  I am doing a traffic light program to optimize
> the
> > timing of
> >  > traffic light by using Traci.But I met a problem,I need to
> > simulate the
> >  > process again and again,then,I got this error:
> >  >
> >  > Could not connect to TraCI server at localhost:55141
> [Errno 111]
> >  > Connection refused
> 

Re: [sumo-user] dealing with bicycles in routes

2018-07-11 Thread Jakob Erdmann
There are two possible candiate reasons for the described symptoms:
1) the bicycles given to duarouter are not configured as bicycle but rather
as passenger cars (vClass="bicycle" is required to allow driving on bicycle
lanes).
2) the bicyle routes require intermediate usage of passenger-car-only
lanes. You can use SUMO-GUI to highlight all edges for a specific vClass by
selecting 'Edit->Selectlanes which allow->...' from the main menu.

regards,
Jakob

2018-07-11 8:55 GMT+02:00 Barto, Martin :

> Dear SUMO-users,
>
>
>
> I have another issue.
>
>
>
> As many will probably know we have a lot of cycle paths in Holland, also
> around traffic controlled intersections. I made special edges fort he
> cyclists which allow only bicycles. This results in het net-file in red
> bicycle paths around the intersection, which is perfect.
>
>
>
> I then made flows in the route-file with bicycle flows of every quarter
> within a day, just like I did with motorized vehicle. But the I get errors
> running duarouter with the message the connection can’t be found.
>
>
>
> I found the solution for this. When I allow not only bicycles but also
> passenger (cars), it works. This is workable, but not completely right in
> my opinion. The main thing now is the bicycle paths aren’t colored red
> anymore. Also when I change the net-file afterwards, I get error messages
> from the route-file. So it isn’t possible to make route-trips when the edge
> doesn’t allow passengers? Is there another solution to color edges?
>
>
>
> Met vriendelijke groet,
>
> Martin Barto
> Senior Verkeerskundige
> Mobiliteit
>
> 
> 
>
> Vialis * is een Koninklijke *VolkerWessels
> * onderneming.*
>
> Postbus 184, 3990 DD Houten | tel. +31648510557 mob. +31648510557
>
> [image: http://www.vialis.nl] 
>
> [image: http://www.linkedin.com/company/vialis]
> 
>
> [image: https://twitter.com/vialisbv] 
>
> [image: http://www.youtube.com/user/VialisBV]
> 
>
>
> .
> .
> --
>
> Look here for our e-mail disclaimer: http://cp.vialis.nl/disclaimer.html
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Issue during route creation

2018-07-11 Thread Jakob Erdmann
Hello,
1) see
http://sumo.dlr.de/wiki/FAQ#What.27s_the_deal_with_schema_resolution_warnings_.2F_xsd_errors.3F
2) we do not have an interface for unreal/unity. SUMO can be built with
OpenSceneGraph support for 3D-Visualisation but this is rather experimental.

regards,
Jakob


2018-07-11 13:25 GMT+02:00 yuvika.dev--- via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Hi,
>
>
> I am learning SUMO simulator for our project work .
>
>
> 1.As part of learning when I am trying to run the examples given under
> /tests/complex/tutorial/traci_pedestrian_crossing/
>
>
>
> Warning: Cannot find local schema 
> '/usr/lib/sumo/data/xsd/connections_file.xsd',
> will try website lookup.
>
>  pedestrian_crossing/>
>
> Error: unable to resolve host/address 'sumo.dlr.de'
>  In file 'data/pedcrossing.con.xml'
>  At line/column 1/0.
>
> Error: No nodes loaded.
> Quitting (on error).
> Network file 'pedcrossing.net.xml' not found
>
> Even If I tried creating my own network file and then try using randomTrip
> to generate route file , same problem
>
> python /home/adas/Documents/Wipod/Simulator\ -\ SDV\ in\ a\
> Box/SUMO/sumo/tools/randomTrips.py --net-file=hello.net.xml -r
> hello.rou.xml -e 50 -l
> calling  duarouter -n hello.net.xml -r trips.trips.xml -o hello.rou.xml
> --ignore-errors --begin 0 --end 50.0 --no-step-log --no-warnings
> Error: unable to resolve host/address 'sumo.dlr.de'
>  In file 'trips.trips.xml'
>  At line/column 1/0.
>
> Quitting (on error).
>
> Can you please provide some pointer for this
>
> 2.Another Query , go you have any interface for Unreal , like Unity
>
>
> Thanks & Regards,
> Yuvika
>
>
>
>
>
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Issue during route creation

2018-07-11 Thread yuvika.dev--- via sumo-user
Hi,


I am learning SUMO simulator for our project work .


1.As part of learning when I am trying to run the examples given under  
/tests/complex/tutorial/traci_pedestrian_crossing/



Warning: Cannot find local schema 
'/usr/lib/sumo/data/xsd/connections_file.xsd', will try website lookup.



Error: unable to resolve host/address 'sumo.dlr.de'
 In file 'data/pedcrossing.con.xml'
 At line/column 1/0.

Error: No nodes loaded.
Quitting (on error).
Network file 'pedcrossing.net.xml' not found

Even If I tried creating my own network file and then try using randomTrip to 
generate route file , same problem

python /home/adas/Documents/Wipod/Simulator\ -\ SDV\ in\ a\ 
Box/SUMO/sumo/tools/randomTrips.py --net-file=hello.net.xml -r hello.rou.xml -e 
50 -l
calling  duarouter -n hello.net.xml -r trips.trips.xml -o hello.rou.xml 
--ignore-errors --begin 0 --end 50.0 --no-step-log --no-warnings
Error: unable to resolve host/address 'sumo.dlr.de'
 In file 'trips.trips.xml'
 At line/column 1/0.

Quitting (on error).

Can you please provide some pointer for this

2.Another Query , go you have any interface for Unreal , like Unity


Thanks & Regards,
Yuvika






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com









http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd";>






























--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Questions about lane change mode (0xb6) and speed mode (0xb3)

2018-07-11 Thread Jakob Erdmann
Hello,
1) the safety gap is computed as if the vehicles were in a car-following
relationship on the target lane. This means it is subject to car-follow
model parameters. In the latest development version, all lane change models
support the parameter lcAssertive which allows modifying the computed
safetey distance by a custom factor.

2) it means that the ego vehicle and other vehicles will adapt their speed
so that lane change becomes possible (if it isn't possible at the moment).
If the speed is overwrittten by setSpeed than this coordination may not
work.

3) If all checks are on, the highest priority is given to maximum
deceleration (attribute emergencyDecel), then safe speed then acceleration

regards,
Jakob

2018-07-11 13:09 GMT+02:00 Tong, Kailin :

> Dear SUMO users,
>
>
>
> In http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#lane_
> change_mode_.280xb6.29
>
>
>
> It says:
>
> To disable all autonomous changing but still handle safety checks in the
> simulation, either one of the modes *256* (collision avoidance) or *512* 
> (collision
> avoidance and safety-gap enforcement) may be used.
>
>
>
>- When the mode is *512*, how is the safety-gap of others calculated?
>
>
>
> bit9, bit8:
>
> · 00 = do not respect other drivers when following TraCI
> requests, adapt speed to fulfill request
>
> · 01 = avoid immediate collisions when following a TraCI request,
> adapt speed to fulfill request
>
>
>
>- What is *adapt speed to fulfill request* means here? What will
>happen if the speed is overwritten by traci.vehicle.setSpeed ?
>
>
>
>
>
> In http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#speed_
> mode_.280xb3.29
>
>
>
>- If all checks of speed mode on, traci.vehicle.setSpeed sets a speed
>over the safe speed / maximum acceleration / maximum deceleration, which
>one has a higher priority?
>
>
>
>
>
> Thank you in advance!
>
>
>
> Best regards,
>
> Kailin
>
>
>
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Traffic Zone Definitions

2018-07-11 Thread Jakob Erdmann
- draw the traffic zones as polygons in netedit
- compute the TAZ from the polygons using
http://sumo.dlr.de/wiki/Tools/District#edgesInDistricts.py

regards,
Jakob

2018-07-11 13:01 GMT+02:00 Jonathan Harper via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Hello,
>
> I’m attempting to define traffic zones such that traffic will flow from
> left to right (departing from a random location in the left area of the map
> and arriving in a random location on the right hand side of the map).
>
> Could you point me in the right direction to be able to do this?
> Jonathan
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Fully Controlled Vehicle

2018-07-11 Thread Jakob Erdmann
Hello,
- you can set the angle argument for moveToXY to the TraciConstant
INVALID_DOUBLE_VALUE and then sumo will calculate an appropriate angle
- if you call moveToXY for the remote-controlled vehicles in every
simulation step, then sumo will not  teleport/remove them but still
recognize them as obstacles.

regards,
Jakob

2018-07-11 13:05 GMT+02:00 Timothée Corsini via sumo-user <
sumo-u...@lists.sourceforge.net>:

> Hi !
>
> I am currently using SUMO with another software by using the TraCIAPI in
> C++. I managed to represent SUMO vehicles in the other software but now I
> would like to represent the vehicles from the software in SUMO.
>
> However, I do not want these vehicles to move or change their orientation
> unless I ask them to. So I changed their speed, their speedMode and
> laneChangeMode to 0, and I am moving them by using the moveToXY function.
> Still, SUMO does not change their angle in order to adpat them to the
> edges, I would like to avoid that, is it possible ?
>
> In fact I would like to control some vehicles without SUMO trying to
> teleport/move/remove them. (but still being recognized as obstacles by the
> others vehicles) Is that possible ?
>
> Else, can I simply put obstacles of the shape I want on the road (for
> exemple representing a car accident) or do I have to close the lanes
> manually in order to stop the traffic ?
>
> Sorry for the butchered langage.
>
> Regards,
> Timothee Corsini
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-u...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Questions about lane change mode (0xb6) and speed mode (0xb3)

2018-07-11 Thread Tong, Kailin
Dear SUMO users,

In 
http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#lane_change_mode_.280xb6.29

It says:
To disable all autonomous changing but still handle safety checks in the 
simulation, either one of the modes 256 (collision avoidance) or 512 (collision 
avoidance and safety-gap enforcement) may be used.


  *   When the mode is 512, how is the safety-gap of others calculated?

bit9, bit8:
* 00 = do not respect other drivers when following TraCI requests, 
adapt speed to fulfill request
* 01 = avoid immediate collisions when following a TraCI request, adapt 
speed to fulfill request


  *   What is adapt speed to fulfill request means here? What will happen if 
the speed is overwritten by traci.vehicle.setSpeed ?


In http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#speed_mode_.280xb3.29


  *   If all checks of speed mode on, traci.vehicle.setSpeed sets a speed over 
the safe speed / maximum acceleration / maximum deceleration, which one has a 
higher priority?


Thank you in advance!

Best regards,
Kailin



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


[sumo-user] Fully Controlled Vehicle

2018-07-11 Thread Timothée Corsini via sumo-user
Hi !

I am currently using SUMO with another software by using the TraCIAPI in
C++. I managed to represent SUMO vehicles in the other software but now I
would like to represent the vehicles from the software in SUMO.

However, I do not want these vehicles to move or change their orientation
unless I ask them to. So I changed their speed, their speedMode and
laneChangeMode to 0, and I am moving them by using the moveToXY function.
Still, SUMO does not change their angle in order to adpat them to the
edges, I would like to avoid that, is it possible ?

In fact I would like to control some vehicles without SUMO trying to
teleport/move/remove them. (but still being recognized as obstacles by the
others vehicles) Is that possible ?

Else, can I simply put obstacles of the shape I want on the road (for
exemple representing a car accident) or do I have to close the lanes
manually in order to stop the traffic ?

Sorry for the butchered langage.

Regards,
Timothee Corsini
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-u...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Disconnect with Traci

2018-07-11 Thread Jakob Erdmann
If you have the error "connection closed by SUMO" this would not be solved
by repeating the simulation in the same traci connection. Diagnose it using
logfiles as explained in my last email.

2018-07-11 12:29 GMT+02:00 胡志强 :

> Hi Jakob,
> I have add the option numTries=100 to traci.start(),but the error is still
> exist.Could you please tell me is there a approach to repeat my simulation
> in the same traci ?Then ,I don't need to connect the server again and
> again,my problem solved.
>
> Best regards,
> Zhiqiang
>
> Jakob Erdmann  于2018年7月11日周三 下午2:44写道:
>
>> the error "connection closed by SUMO"  indicates that an error ocurred on
>> the SUMO side.
>> If you create a log file for every sumo run you can look for the problem
>> in the latest logfile:
>>
>> for i in range(2):
>>traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>   "--tripinfo-output", "tripinfo.xml", "log",
>> str(i)])
>>
>>
>> 2018-07-11 5:47 GMT+02:00 胡志强 :
>>
>>> Hi Jakob,
>>> Thank you,it works.But the problem is also exist,it retries for 101
>>> times then closed and I'm sure that my computer's memory is enough.And I
>>> also occurred the error that "connection closed by SUMO",If you want more
>>> details,tell me.
>>>
>>> Best regards,
>>> Zhiqiang
>>>
>>> Jakob Erdmann  于2018年7月11日周三 上午1:13写道:
>>>
 traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
   "--tripinfo-output", "tripinfo.xml"],
 numTries=100)


 2018-07-10 16:46 GMT+02:00 胡志强 :

> Hi,
> Could you please tell me how add the option numTries=100 to
> traci.start()?
>
> Best regards,
> Zhiqiang
>
> Jakob Erdmann  于2018年7月10日周二 下午10:27写道:
>
>> - Possibly the simulation cannot start in time because the computer
>> is still busy from closing the previous simulations. You could add the
>> option numTries=100 to traci.start() to diagnose this
>> - Possibly, the simulation cannot start successfully because your
>> computer is out of memory (which might indicate a memory leak in sumo).
>>
>>
>>
>> 2018-07-10 16:04 GMT+02:00 胡志强 :
>>
>>> Hi,
>>> My SUMO version is 0.32.0,and I write a loop to simulate for many
>>> times, I start SUMO like this:
>>> for i in range(2):
>>> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>>   "--tripinfo-output", "tripinfo.xml"])
>>> ...
>>> ...
>>> traci.close()
>>> At the beginning,it works well,but it may disconnect with traci and
>>> the time points is different.I don't know what's wrong.
>>>
>>> Menno van der Woude  于2018年7月10日周二
>>> 下午9:32写道:
>>>
 Hi Zhiqiang,

 it could be helpful if you provide some more details:
 Under what circumstances does the connection fail? Do the
 circumstances
 during failure differ from before? Does it disconnect while it is
 connected, or not connect at all? Etc.
 Also, how are you starting SUMO, manually, programmatically? Etc.

 Greets, Menno

 On 10-7-2018 15:27, 胡志强 wrote:
 > At the beginning ,it works well,but some time later,it may
 disconnect
 > with the sever.So ,what's the possible reasons?
 >
 > Best regards,
 > Zhiqiang
 >
 >
 >
 > Menno van der Woude >>> > > 于2018年7月10日周二 下午8:44写道:
 >
 > Hi Zhiqiang,
 >
 > it seems like SUMO is not running, since the the client
 cannot connect
 > to the TCP server. Make sure you start SUMO with the
 --remote-port
 > 
 > option as described here: http://sumo.dlr.de/wiki/TraCI#
 SUMO_startup.
 >
 > If you need to simulate many runs, you will have to automate
 starting
 > SUMO as well.
 >
 > Greets,
 >
 > Menno
 >
 > On 10-7-2018 14:34, 胡志强 wrote:
 >  > Dear sumo-users:
 >  >  I am doing a traffic light program to optimize the
 > timing of
 >  > traffic light by using Traci.But I met a problem,I need to
 > simulate the
 >  > process again and again,then,I got this error:
 >  >
 >  > Could not connect to TraCI server at localhost:55141
 [Errno 111]
 >  > Connection refused
 >  >   Retrying in 2 seconds
 >  > Could not connect to TraCI server at localhost:55141
 [Errno 111]
 >  > Connection refused
 >  >   Retrying in 3 seconds
 >  > Could not connect to TraCI server at localhost:55141
 [Errno 111]
 >  > Connection refused
 >  >   Retrying in 4 seconds
>

Re: [sumo-user] Disconnect with Traci

2018-07-11 Thread 胡志强
Hi Jakob,
I have add the option numTries=100 to traci.start(),but the error is still
exist.Could you please tell me is there a approach to repeat my simulation
in the same traci ?Then ,I don't need to connect the server again and
again,my problem solved.

Best regards,
Zhiqiang

Jakob Erdmann  于2018年7月11日周三 下午2:44写道:

> the error "connection closed by SUMO"  indicates that an error ocurred on
> the SUMO side.
> If you create a log file for every sumo run you can look for the problem
> in the latest logfile:
>
> for i in range(2):
>traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>   "--tripinfo-output", "tripinfo.xml", "log",
> str(i)])
>
>
> 2018-07-11 5:47 GMT+02:00 胡志强 :
>
>> Hi Jakob,
>> Thank you,it works.But the problem is also exist,it retries for 101 times
>> then closed and I'm sure that my computer's memory is enough.And I also
>> occurred the error that "connection closed by SUMO",If you want more
>> details,tell me.
>>
>> Best regards,
>> Zhiqiang
>>
>> Jakob Erdmann  于2018年7月11日周三 上午1:13写道:
>>
>>> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>>   "--tripinfo-output", "tripinfo.xml"],
>>> numTries=100)
>>>
>>>
>>> 2018-07-10 16:46 GMT+02:00 胡志强 :
>>>
 Hi,
 Could you please tell me how add the option numTries=100 to
 traci.start()?

 Best regards,
 Zhiqiang

 Jakob Erdmann  于2018年7月10日周二 下午10:27写道:

> - Possibly the simulation cannot start in time because the computer is
> still busy from closing the previous simulations. You could add the option
> numTries=100 to traci.start() to diagnose this
> - Possibly, the simulation cannot start successfully because your
> computer is out of memory (which might indicate a memory leak in sumo).
>
>
>
> 2018-07-10 16:04 GMT+02:00 胡志强 :
>
>> Hi,
>> My SUMO version is 0.32.0,and I write a loop to simulate for many
>> times, I start SUMO like this:
>> for i in range(2):
>> traci.start([sumoBinary, "--start","-c", "data/cross.sumocfg",
>>   "--tripinfo-output", "tripinfo.xml"])
>> ...
>> ...
>> traci.close()
>> At the beginning,it works well,but it may disconnect with traci and
>> the time points is different.I don't know what's wrong.
>>
>> Menno van der Woude  于2018年7月10日周二
>> 下午9:32写道:
>>
>>> Hi Zhiqiang,
>>>
>>> it could be helpful if you provide some more details:
>>> Under what circumstances does the connection fail? Do the
>>> circumstances
>>> during failure differ from before? Does it disconnect while it is
>>> connected, or not connect at all? Etc.
>>> Also, how are you starting SUMO, manually, programmatically? Etc.
>>>
>>> Greets, Menno
>>>
>>> On 10-7-2018 15:27, 胡志强 wrote:
>>> > At the beginning ,it works well,but some time later,it may
>>> disconnect
>>> > with the sever.So ,what's the possible reasons?
>>> >
>>> > Best regards,
>>> > Zhiqiang
>>> >
>>> >
>>> >
>>> > Menno van der Woude >> > > 于2018年7月10日周二 下午8:44写道:
>>> >
>>> > Hi Zhiqiang,
>>> >
>>> > it seems like SUMO is not running, since the the client cannot
>>> connect
>>> > to the TCP server. Make sure you start SUMO with the
>>> --remote-port
>>> > 
>>> > option as described here:
>>> http://sumo.dlr.de/wiki/TraCI#SUMO_startup.
>>> >
>>> > If you need to simulate many runs, you will have to automate
>>> starting
>>> > SUMO as well.
>>> >
>>> > Greets,
>>> >
>>> > Menno
>>> >
>>> > On 10-7-2018 14:34, 胡志强 wrote:
>>> >  > Dear sumo-users:
>>> >  >  I am doing a traffic light program to optimize the
>>> > timing of
>>> >  > traffic light by using Traci.But I met a problem,I need to
>>> > simulate the
>>> >  > process again and again,then,I got this error:
>>> >  >
>>> >  > Could not connect to TraCI server at localhost:55141 [Errno
>>> 111]
>>> >  > Connection refused
>>> >  >   Retrying in 2 seconds
>>> >  > Could not connect to TraCI server at localhost:55141 [Errno
>>> 111]
>>> >  > Connection refused
>>> >  >   Retrying in 3 seconds
>>> >  > Could not connect to TraCI server at localhost:55141 [Errno
>>> 111]
>>> >  > Connection refused
>>> >  >   Retrying in 4 seconds
>>> >  > Could not connect to TraCI server at localhost:55141 [Errno
>>> 111]
>>> >  > Connection refused
>>> >  >   Retrying in 5 seconds
>>> >  > Could not connect to TraCI server at localhost:55141 [Errno
>>> 111]
>>> >  > Connection refused
>>> >  >   Retrying in 6 seconds
>>> >  > Could not connect to Tr

[sumo-user] SUMO Webinar Today

2018-07-11 Thread Jakob Erdmann
Dear users,
Today there will be a free 1-hour webinar on SUMO.
The covered topics range from basic usage to advanced applications.
For details see http://www.movici.co/webinar-eng.html
regards,
Jakob
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] TraCI, getLoadedIDList and missing vehicles.

2018-07-11 Thread Jakob Erdmann
That should not happen. Every vehicle that is ever built should be part of
that list.
Please provide input files for reproducing this situation.

regards,
Jakob

2018-07-06 16:12 GMT+02:00 Lara CODECA :

> Dear All,
>
> I'm using traci.simulation.getLoadedIDList() to process all vehicles
> once, in order to add them to
> subscriptions. In the middle of my simulation I end up with a vehicle
> (retrieved using
> getParkingStartingVehiclesIDList) that have never been in the list
> provided by getLoadedIDList.
> Am I using getLoadedIDList in the wrong way?
> How is possible to have a vehicle in the simulation that has never been
> loaded?
>
> The timestep is 250ms in the sumocfg and in the simulationStep, so I
> should not have any gaps there.
> I'm using the development version of sumo on Debian Unstable.
>
> Thanks in advance for any help.
>
> Regards,
> Lara
>
> --
> Lara CODECA
> Postdoc
> Tel : 04.93.00.81.51
>
> EURECOM
> Campus SophiaTech
> http://www.eurecom.fr/
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user