[sumo-user] moveToXY change position

2020-10-21 Thread 謝昀宸
Dear Sumo team,
I want to park the vehicle on the side of the edge.
When the vehicle is parked in the middle of the road, use moveToXY to
fine-tune the position of the vehicle to the far right side of the road.

But when the vehicle touches the edge of the road, it will automatically
adjust its position,  just like the attached gif.

I tried various parameters of Keeproute, but it still does not improve
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] edge or lane MeanData output

2020-10-21 Thread Sasan Amini
Dear SUMO team,

when I set the excludeEmpty to false in meanData definition, empty edges
(or lanes) have only a few attributes from the full set (for example,
speed, density, occupancy etc. are not included). In case the first line is
an empty edge (or lane) the sumolib.output.parsing() function cannot parse
these attributes for the remaining edges. Also, when converting the xml to
csv without specifying the schema those columns won't be created which
means setting the option excludeEmpty to False has no effect. Would it be
possible to generate the full list of attributes even for empty edges
(lanes)?

Best,
Sasan
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Why does vehicle start to use fuel when it is still standing on the lane?

2020-10-21 Thread nohtyp
I created simulation with tls intersection.
scenario.zip
  
In scenario.zip you can find sumo config files + plots + output generated by
sumo-gui
(simple.out.xml)

See tls_vehicle_1_motion.png and tls_vehicle_1_moment_fuel.png. Vehicle 1
stops moving at 20 s and starts again at 45s.
But this vehicle starts to use fuel at 30s. If it uses fuel when idling, why
it doesnt use fuel from 20s to 30s? Could you explain this behaviour?

Best regards,
Piotr 



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Different probability flows between simulations

2020-10-21 Thread Michael Behrisch
Hi,
I just tested the most recent build with --random and it works as expected.

Best regards,
Michael

Am 21.10.20 um 20:32 schrieb Tiago Silva:
> Dear Andras and Lokesh,
> 
> Thanks for your reply! Unfortunately, even with seed and random my
> simulation is generating the same flow in different simulation runs. I
> tested this in v1_7_0 tag and in master branch with all current
> changes. Is this working for you? If so, it's probably a problem in my
> build...
> 
> thanks in advance!
> 
> Em qua., 21 de out. de 2020 às 13:56, Lokesh Das  > escreveu:
> 
> Hi Tiago,
> 
> From the heading, it seems that you want to change the vehicle
> injection probability in every simulation run. If it is, you can do
> it in two ways: i) manually- every time change probability value in
> route file or ii) dynamically- change it using TraCI API. However,
> if you want with the same probability every simulation should have
> given you a different flow, just change the default seed value
> (23423; see https://sumo.dlr.de/docs/Simulation/Randomness.html).
> You can do it using  in *.sumocfg file. It
> simply uses the system current time as a seed value. 
> 
> Thanks,
> Lokesh
> 
> On Wed, Oct 21, 2020 at 8:15 AM Tiago Silva
> mailto:tiago.silva1...@gmail.com>> wrote:
> 
> hello, 
> 
> I'm generating a flow of vehicles with probability='0.3' as seen
> in the code below:
> 
> /  probability='0.3' type='vehicleType_1'>
>           
> /
> 
> It works correctly and generates the random flows I need during
> the simulation. However, I noticed that if I execute the
> simulation again it will generate the same random flow as the
> previous execution. Can you tell me if this is the expected
> behavior of random flow? I need to generate different flows in
> each simulation execution. Is there any way to do this?
> 
> Thanks in advance!
> 
> -- 
> Att.
> Tiago Alves Silva
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org 
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org 
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> 
> 
> -- 
> Att.
> Tiago Alves Silva
> 
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 




signature.asc
Description: OpenPGP digital signature
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] geo-position of stops

2020-10-21 Thread Michael Behrisch
Hi Max,
in which way are the x,y coordinates wrong? Can you send your input files?
When converting from x,y to lon lat you need to leave out the last
parameter (True) which is only needed when converting raw UTM coordinates.

Best regards,
Michael


Am 21.10.20 um 12:09 schrieb Maximilian Socher:
> Hi Giuliana,
> 
> thanks for your reply. I am currently working on a script based on your
> input, however the coordinates I'm getting are way off.
> 
> I'm extracting the laneID and lanePos from my ptstops.add.xml. These are
> correct. The x and y-coordinates I recieve from
> /sumolib.geomhelper.positionAtShapeOffset(net.getLane(laneID).getShape(),
> lanePos)/ however are way off. 
> So are the lon and lat (obviously /net.convertXY2LonLat(x, y, True)/ already
> calculates on wrong x and y, but even with hardcoded correct coordinates the
> lon, lat I recieve are just off the coast of Ghana whereas my network is a
> city in northern Germany).
> 
> Any idea where I might have went wrong?
> 
> Regards,
> Max
> 
> 
> 
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 




signature.asc
Description: OpenPGP digital signature
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Different probability flows between simulations

2020-10-21 Thread Tiago Silva
Dear Andras and Lokesh,

Thanks for your reply! Unfortunately, even with seed and random my
simulation is generating the same flow in different simulation runs. I
tested this in v1_7_0 tag and in master branch with all current changes. Is
this working for you? If so, it's probably a problem in my build...

thanks in advance!

Em qua., 21 de out. de 2020 às 13:56, Lokesh Das 
escreveu:

> Hi Tiago,
>
> From the heading, it seems that you want to change the vehicle injection
> probability in every simulation run. If it is, you can do it in two ways:
> i) manually- every time change probability value in route file or ii)
> dynamically- change it using TraCI API. However, if you want with the same
> probability every simulation should have given you a different flow, just
> change the default seed value (23423; see
> https://sumo.dlr.de/docs/Simulation/Randomness.html). You can do it using
>  in *.sumocfg file. It simply uses the system
> current time as a seed value.
>
> Thanks,
> Lokesh
>
> On Wed, Oct 21, 2020 at 8:15 AM Tiago Silva 
> wrote:
>
>> hello,
>>
>> I'm generating a flow of vehicles with probability='0.3' as seen in the
>> code below:
>>
>>
>>
>> * > type='vehicleType_1'>   *
>>
>> It works correctly and generates the random flows I need during the
>> simulation. However, I noticed that if I execute the simulation again it
>> will generate the same random flow as the previous execution. Can you tell
>> me if this is the expected behavior of random flow? I need to generate
>> different flows in each simulation execution. Is there any way to do this?
>>
>> Thanks in advance!
>>
>> --
>> Att.
>> Tiago Alves Silva
>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>


-- 
Att.
Tiago Alves Silva
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


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 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 because even if there is
> only one edge left on the route, there is still this problem
> 
> What can I solve?
> 
> Many thanks,
> Yu Wang
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 




signature.asc
Description: OpenPGP digital signature
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Angle value in FCD output

2020-10-21 Thread Michael Behrisch
Hi,
the absoulte coordinate axes are the reference.

Best regards,
Michael

Am 19.10.20 um 08:24 schrieb Ishan Dindorkar:
> Dear SUMO Users,
> 
> I have a question regarding angle value which is generated as part of FCD 
> output. As per the description in official document, it is angle of vehicle 
> as per navigational standard in degrees. I would appreciate if you could 
> please help me in understanding what is the reference used for calculating 
> this value. Is it the absolute coordinate axes or the lane in which the 
> vehicle is moving.
> FYI, I have not enabled geo lat-long system as I am working with a synthetic 
> road network and hence the position of vehicle is in absolute Cartesian 
> coordinates.
> 
> Thank you for your support.
> 
> Sincerely,
> Ishan Dindorkar 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 




signature.asc
Description: OpenPGP digital signature
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to see vehicle (Hello World)

2020-10-21 Thread Michael Behrisch
Hi,
concerning the missing vehicle, please check the log for any error
messages / warnings.
Concerning the netedit version, I would also assume that you have some
hidden second version or that the uninstall did not finish properly.
Does netedit show the right version when you start it from the start
menu or the command line?

Best regards,
Michael

Am 21.10.20 um 14:29 schrieb Shah Sultan:
> No, there is no any other SUMO version installed. A year and a half ago I
> installed SUMO. But then I did not get a chance to work on it. Before
> installing the latest version, I uninstalled the previous one. 
> 
> 
> 
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 




signature.asc
Description: OpenPGP digital signature
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Cannot run state saved from previous version

2020-10-21 Thread Michael Behrisch
Hi Abdullah,
states are not meant for long term saving, so you cannot use a 1.3.1
state with sumo 1.7.0. Depending on the size there is a small chance you
might be able to convert it by hand but it is not something which is
easily done.
Usually new states contain more values which you will not be able to
recreate without rerunning the simulation.

Best regards,
Michael

Am 21.10.20 um 01:26 schrieb . Abdullah:
> Hi everyone,
> 
> I updated SUMO to 1.7.0 and now I get this error:
> 
> Loading configuration ... done.
> Warning: State was written with sumo version 1.3.1 (present: 1.7.0)!
> Traceback (most recent call last):
>   File "traci_demo.py", line 164, in 
>     traci.start([checkBinary('sumo'), "-c", "config.sumocfg",
> "--no-step-log","--load-state", simulation_file])
>   File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\main.py", line
> 158, in start
>     return init(sumoPort, numRetries, "localhost", label, sumoProcess)
>   File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\main.py", line
> 138, in init
>     return getVersion()
>   File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\main.py", line
> 242, in getVersion
>     return _connections[""].getVersion()
>   File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py",
> line 345, in getVersion
>     result = self._sendCmd(command, None, None)
>   File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py",
> line 178, in _sendCmd
>     return self._sendExact()
>   File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py",
> line 88, in _sendExact
>     raise FatalTraCIError("connection closed by SUMO")
> traci.exceptions.FatalTraCIError: connection closed by SUMO
> 
> Is there any way to get around this? Or do I have to resave my states
> again using the newer version of SUMO?
> 
> 
> -- 
> Thank you.
> Abdullah
> 
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit 
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 




signature.asc
Description: OpenPGP digital signature
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Different probability flows between simulations

2020-10-21 Thread Andras Bondor
Hi Tiago,

Maybe initializing the simulation with a different random seed would solve your 
issue:
https://sumo.dlr.de/docs/Simulation/Randomness.html

Andras

Feladó: sumo-user-boun...@eclipse.org , 
meghatalmazó: Tiago Silva 
Elküldve: 2020. október 21., szerda 15:14
Címzett: Sumo project User discussions 
Tárgy: [sumo-user] Different probability flows between simulations

hello,

I'm generating a flow of vehicles with probability='0.3' as seen in the code 
below:

 
  


It works correctly and generates the random flows I need during the simulation. 
However, I noticed that if I execute the simulation again it will generate the 
same random flow as the previous execution. Can you tell me if this is the 
expected behavior of random flow? I need to generate different flows in each 
simulation execution. Is there any way to do this?

Thanks in advance!

--
Att.
Tiago Alves Silva



This e-mail and any files transmitted with it contain confidential and may 
contain privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete 
this e-mail. Any unauthorized use, copying, disclosure or distribution of the 
material in this e-mail is strictly forbidden.
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Different probability flows between simulations

2020-10-21 Thread Lokesh Das
Hi Tiago,

>From the heading, it seems that you want to change the vehicle injection
probability in every simulation run. If it is, you can do it in two ways:
i) manually- every time change probability value in route file or ii)
dynamically- change it using TraCI API. However, if you want with the same
probability every simulation should have given you a different flow, just
change the default seed value (23423; see
https://sumo.dlr.de/docs/Simulation/Randomness.html). You can do it using
 in *.sumocfg file. It simply uses the system
current time as a seed value.

Thanks,
Lokesh

On Wed, Oct 21, 2020 at 8:15 AM Tiago Silva 
wrote:

> hello,
>
> I'm generating a flow of vehicles with probability='0.3' as seen in the
> code below:
>
>
>
> *  type='vehicleType_1'>   *
>
> It works correctly and generates the random flows I need during the
> simulation. However, I noticed that if I execute the simulation again it
> will generate the same random flow as the previous execution. Can you tell
> me if this is the expected behavior of random flow? I need to generate
> different flows in each simulation execution. Is there any way to do this?
>
> Thanks in advance!
>
> --
> Att.
> Tiago Alves Silva
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Different probability flows between simulations

2020-10-21 Thread Tiago Silva
hello,

I'm generating a flow of vehicles with probability='0.3' as seen in the
code below:



**

It works correctly and generates the random flows I need during the
simulation. However, I noticed that if I execute the simulation again it
will generate the same random flow as the previous execution. Can you tell
me if this is the expected behavior of random flow? I need to generate
different flows in each simulation execution. Is there any way to do this?

Thanks in advance!

-- 
Att.
Tiago Alves Silva
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to see vehicle (Hello World)

2020-10-21 Thread Shah Sultan
No, there is no any other SUMO version installed. A year and a half ago I
installed SUMO. But then I did not get a chance to work on it. Before
installing the latest version, I uninstalled the previous one. 



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Unable to see vehicle (Hello World)

2020-10-21 Thread Pablo.AlvarezLopez
Hi,

Do you have another SUMO-Version installed in your computer?

Regards

-Ursprüngliche Nachricht-
Von: sumo-user-boun...@eclipse.org  Im Auftrag 
von Shah Sultan
Gesendet: Mittwoch, 21. Oktober 2020 12:47
An: sumo-user@eclipse.org
Betreff: [sumo-user] Unable to see vehicle (Hello World)

Hello everyone. 

I am quite a new SUMO user. I am working on a Tutorial (Hello World).  I am 
unable to open SUMO-GUI from NETEDIT through Ctrl+T.  When I am trying to run 
my network by manually opening SUMO-GUI, I am unable to see my vehicle even 
with the delay of 100 ms.
One more thing, I am using version 1.7.0 for both( GUI and NETEDIT), but when I 
am trying to open NETEDIT from GUI (Ctrl+T), the NETEDIT version
0.32.0 is opening. 

Regards,





--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Unable to see vehicle (Hello World)

2020-10-21 Thread Shah Sultan
Hello everyone. 

I am quite a new SUMO user. I am working on a Tutorial (Hello World).  I am
unable to open SUMO-GUI from NETEDIT through Ctrl+T.  When I am trying to
run my network by manually opening SUMO-GUI, I am unable to see my vehicle
even with the delay of 100 ms.
One more thing, I am using version 1.7.0 for both( GUI and NETEDIT), but
when I am trying to open NETEDIT from GUI (Ctrl+T), the NETEDIT version
0.32.0 is opening. 

Regards,





--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] geo-position of stops

2020-10-21 Thread Maximilian Socher
Hi Giuliana,

thanks for your reply. I am currently working on a script based on your
input, however the coordinates I'm getting are way off.

I'm extracting the laneID and lanePos from my ptstops.add.xml. These are
correct. The x and y-coordinates I recieve from
/sumolib.geomhelper.positionAtShapeOffset(net.getLane(laneID).getShape(),
lanePos)/ however are way off. 
So are the lon and lat (obviously /net.convertXY2LonLat(x, y, True)/ already
calculates on wrong x and y, but even with hardcoded correct coordinates the
lon, lat I recieve are just off the coast of Ghana whereas my network is a
city in northern Germany).

Any idea where I might have went wrong?

Regards,
Max



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user