Re: [sumo-user] Taxistands

2023-06-05 Thread Jakob Erdmann
You can define routes that consist of a single edge (either with xml input
or via traci.route.add. This allows you to insert vehicles on that edge.
If you predefine the routes in xml you can also add a stop to the route and
then use traci.vehicle.add( departPos="stop") to optimize the initial
vehicle position.


Am Mo., 5. Juni 2023 um 23:24 Uhr schrieb Sharifullah Asady <
sharif.as...@tum.de>:

> Hi Jakob,
>
>
> Is there any method to pre load taxis in the parkingareas? I am using the
> traci.vehicle.add(...), and this either requires a route or randomly insert
> on an edge. Is it possible to insert the taxi directly in the parkingarea
> or on a specific edge?
>
>
> Many thanks for your response.
>
>
> Best,
>
> Sharif
> --
> *From:* sumo-user  on behalf of Jakob
> Erdmann 
> *Sent:* Saturday, June 3, 2023 1:34:29 PM
> *To:* Sumo project User discussions
> *Subject:* Re: [sumo-user] Taxistands
>
> - solution 1: traci.vehicle.getStopParameter(vehID, 0, 'started')  (you
> can check whether the vehicle is currenlty stopped with vehicle.getStops
> - solution 2: track the time at which vehicles entered the taxistand with
> traci.simulation.getParkingStartingVehiclesIDList (then record the time and
> vehicleID yourself for later reference).
>
> Am Sa., 3. Juni 2023 um 00:04 Uhr schrieb Sharifullah Asady <
> sharif.as...@tum.de>:
>
>> Hi Jakob,
>>
>> Many thanks, this works perfectly as I wanted. Is there any possibility
>> to get taxi parking time?
>>
>> I am modelling taxis, that are dispatched from taxistands (in my case,
>> parking areas are defined as taxistands). Now, I need to dispatch the taxi
>> that has arrived earlier to taxistand or has spent more time parking. I
>> tried to check if the traci.parkingarea.getVehicleIDs(stopID) could give me
>> parked taxis according to their parking time but unfortuntely that is not
>> the case.
>>
>> Many thanks and have a great weekend.
>>
>> Best,
>> Sharif
>> --
>> *From:* sumo-user  on behalf of Jakob
>> Erdmann 
>> *Sent:* Tuesday, May 30, 2023 4:57:30 PM
>> *To:* Sumo project User discussions
>> *Subject:* Re: [sumo-user] Taxistands
>>
>> The latest development version (starting with v1_17_0-575) contains
>> experimental support for taxi stands.
>> See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior
>> You can obtain a test case at
>> https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons
>>
>> regards,
>> Jakob
>>
>> Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady <
>> sharif.as...@tum.de>:
>>
>>> Hello Dear,
>>>
>>>
>>> I want to simulate taxis using SUMO. As we know that taxis have specific
>>> taxistands to park and wait for customer requests and also after dropping
>>> the customer they must return back to their taxistand. So, there is any
>>> possibility to have taxistands.
>>>
>>>
>>> Maybe it is possible to use ParkingAreas as taxistands but then how
>>> guide taxis to go to the parkingareas after they drop the customer and also
>>> currently, we have to define a duration or time that the vehicle should
>>> stay in the parking area but for taxis we don't know the time as it is
>>> dependent on requests arrival.
>>>
>>>
>>> Many thanks for the suggestions and feedback.
>>>
>>>
>>> best regards,
>>>
>>> Sharif
>>> ___
>>> 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 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


Re: [sumo-user] Taxistands

2023-06-05 Thread Sharifullah Asady
Hi Jakob,


Is there any method to pre load taxis in the parkingareas? I am using the 
traci.vehicle.add(...), and this either requires a route or randomly insert on 
an edge. Is it possible to insert the taxi directly in the parkingarea or on a 
specific edge?


Many thanks for your response.


Best,

Sharif


From: sumo-user  on behalf of Jakob Erdmann 

Sent: Saturday, June 3, 2023 1:34:29 PM
To: Sumo project User discussions
Subject: Re: [sumo-user] Taxistands

- solution 1: traci.vehicle.getStopParameter(vehID, 0, 'started')  (you can 
check whether the vehicle is currenlty stopped with vehicle.getStops
- solution 2: track the time at which vehicles entered the taxistand with 
traci.simulation.getParkingStartingVehiclesIDList (then record the time and 
vehicleID yourself for later reference).

Am Sa., 3. Juni 2023 um 00:04 Uhr schrieb Sharifullah Asady 
mailto:sharif.as...@tum.de>>:
Hi Jakob,

Many thanks, this works perfectly as I wanted. Is there any possibility to get 
taxi parking time?

I am modelling taxis, that are dispatched from taxistands (in my case, parking 
areas are defined as taxistands). Now, I need to dispatch the taxi that has 
arrived earlier to taxistand or has spent more time parking. I tried to check 
if the traci.parkingarea.getVehicleIDs(stopID) could give me parked taxis 
according to their parking time but unfortuntely that is not the case.

Many thanks and have a great weekend.

Best,
Sharif

From: sumo-user 
mailto:sumo-user-boun...@eclipse.org>> on behalf 
of Jakob Erdmann mailto:namdre.s...@gmail.com>>
Sent: Tuesday, May 30, 2023 4:57:30 PM
To: Sumo project User discussions
Subject: Re: [sumo-user] Taxistands

The latest development version (starting with v1_17_0-575) contains 
experimental support for taxi stands.
See https://sumo.dlr.de/docs/Simulation/Taxi.html#idle_behavior
You can obtain a test case at 
https://sumo.dlr.de/extractTest.php?path=sumo/devices/taxi/idling/taxistand/10persons

regards,
Jakob

Am Fr., 26. Mai 2023 um 12:09 Uhr schrieb Sharifullah Asady 
mailto:sharif.as...@tum.de>>:

Hello Dear,


I want to simulate taxis using SUMO. As we know that taxis have specific 
taxistands to park and wait for customer requests and also after dropping the 
customer they must return back to their taxistand. So, there is any possibility 
to have taxistands.


Maybe it is possible to use ParkingAreas as taxistands but then how guide taxis 
to go to the parkingareas after they drop the customer and also currently, we 
have to define a duration or time that the vehicle should stay in the parking 
area but for taxis we don't know the time as it is dependent on requests 
arrival.


Many thanks for the suggestions and feedback.


best regards,

Sharif

___
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 mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Soumya Sharma via sumo-user
Sorry for the multiple emails.

If all these parameters are factors:
1. How can I calculate the look-ahead distance of a vehicle type?
2. how can I calculate the updated lookahead distance, when I change
parameters like lcStrategic, lcLookaheadLeft, lcAssertive, and lcSpeedGain?
3. Is there a parameter that I can output to get the look-ahead distance of
vehicles in simulation, so I can track what changes occur as a result of
changing values of parameters mentioned in 2?

Thank you.

On Mon, Jun 5, 2023 at 2:36 PM Soumya Sharma  wrote:

> Thank you.
> Could you provide a little context of what this code, specifically those
> lines are doing?
>
> If I change lcStrategic from 1000 to 500, or 1500- what are some effects
> that I can expect?
> I have attached a set of files that I am using for your reference, I only
> change lcStrategic values in it and compare the results.
>
>
> On Mon, Jun 5, 2023 at 10:54 AM Jakob Erdmann 
> wrote:
>
>> see
>> https://github.com/eclipse/sumo/blob/de92290f118f38780aaf9b809a415ef981779b50/src/microsim/MSVehicle.cpp#L5787-L5848
>>
>> Am Mo., 5. Juni 2023 um 16:24 Uhr schrieb Soumya Sharma via sumo-user <
>> sumo-user@eclipse.org>:
>>
>>> Hi Jakob,
>>> Thanks for the information, that is very helpful.
>>>
>>> Also, in one of your previous emails, you mentioned:
>>> "The default look-ahead distance for strategic decision has a maximum
>>> range of about 3000m. You can reduce this distance by setting vType
>>> attribute 'lcStrategic' to a value in [0, 1[. "
>>>
>>> Where does this 3000m distance come from? is it the same as laDist? and
>>> where can I find these default values and the code corresponding to
>>> defaults?
>>> My goal is to understand how the look-ahead distance of a vehicle
>>> changes with changing parameters like "lcStrategic" and "lcLookaheadLeft",
>>> "lcAssertive" and "lcSpeedGain".
>>>
>>> Thanks!
>>>
>>> On Mon, Jun 5, 2023 at 7:57 AM Jakob Erdmann 
>>> wrote:
>>>
 - All these attributes are factors and thus unitless
 - in the laDist computation, the value of LOOK_FORWARD is the time
 (10s) which is then scaled


 Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
 sumo-user@eclipse.org>:

> Hello,
> I am trying to conduct a sensitivity analysis of car-following and
> lane-changing parameters in SUMO for hypothetical freeway segments (basic
> and weaving). I tried changing headway values (car-following) and
> lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
> values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
> My trucks are using the CACC model.
> The two metrics I am interested in are the travel rates (secs/ mi) by
> vehicle type and the number of lane changes per vehicle type. I found that
> there was no change in travel rate and a number of lane changes when I
> changed the value of lcStrategic to 500, 1000, and 1500. I don't 
> understand
> why there was no effect of changing the parameter values.
> Next, I want to look into other parameters like "lcLookaheadLeft",
> "lcAssertive" and "lcSpeedGain".
>
> *Question*: I would like to understand the units of the parameters
> "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".
>
> The SUMO documentation says:
>
>1. lcStrategic: The eagerness for performing strategic lane
>changing. Higher values result in earlier lane-changing. default: 1.0,
>range [0-inf), -1 A value of 0 sets the lookahead-distance to 0
>(vehicles can still change at the end of their lane) whereas -1 
> disables
>strategic changing completely.
>2. lcLookaheadLeft: Factor for configuring the strategic lookahead
>distance when a change to the left is necessary (relative to right
>lookahead). default: 2.0, range [0-inf)
>3. lcAssertive: Willingness to accept lower front and rear gaps on
>the target lane. The required gap is divided by this value. default: 1,
>range: positive reals
>4. lcSpeedGain: The eagerness for performing lane changing to gain
>speed. Higher values result in more lane-changing. default: 1.0, range
>[0-inf)
>
> These definitions don't mention any units explicitly, are they all
> factors? i.e. unitless or are some of them in meters and some unitless?
>
> I was checking the code
> for
> LC2013 and found that look ahead distance (laDist) is being
> calculated as follows:
>
> laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ?
> 1 : myLookaheadLeft);
>
>
> If this is how the look-ahead distance for a vehicle is calculated
> when making lane-changing decisions, then both lcLookaheadLeft and
> lcStrategic specified will be used to calculate 

Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Soumya Sharma via sumo-user
Thank you.
Could you provide a little context of what this code, specifically those
lines are doing?

If I change lcStrategic from 1000 to 500, or 1500- what are some effects
that I can expect?
I have attached a set of files that I am using for your reference, I only
change lcStrategic values in it and compare the results.


On Mon, Jun 5, 2023 at 10:54 AM Jakob Erdmann  wrote:

> see
> https://github.com/eclipse/sumo/blob/de92290f118f38780aaf9b809a415ef981779b50/src/microsim/MSVehicle.cpp#L5787-L5848
>
> Am Mo., 5. Juni 2023 um 16:24 Uhr schrieb Soumya Sharma via sumo-user <
> sumo-user@eclipse.org>:
>
>> Hi Jakob,
>> Thanks for the information, that is very helpful.
>>
>> Also, in one of your previous emails, you mentioned:
>> "The default look-ahead distance for strategic decision has a maximum
>> range of about 3000m. You can reduce this distance by setting vType
>> attribute 'lcStrategic' to a value in [0, 1[. "
>>
>> Where does this 3000m distance come from? is it the same as laDist? and
>> where can I find these default values and the code corresponding to
>> defaults?
>> My goal is to understand how the look-ahead distance of a vehicle
>> changes with changing parameters like "lcStrategic" and "lcLookaheadLeft",
>> "lcAssertive" and "lcSpeedGain".
>>
>> Thanks!
>>
>> On Mon, Jun 5, 2023 at 7:57 AM Jakob Erdmann 
>> wrote:
>>
>>> - All these attributes are factors and thus unitless
>>> - in the laDist computation, the value of LOOK_FORWARD is the time (10s)
>>> which is then scaled
>>>
>>>
>>> Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
>>> sumo-user@eclipse.org>:
>>>
 Hello,
 I am trying to conduct a sensitivity analysis of car-following and
 lane-changing parameters in SUMO for hypothetical freeway segments (basic
 and weaving). I tried changing headway values (car-following) and
 lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
 values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
 My trucks are using the CACC model.
 The two metrics I am interested in are the travel rates (secs/ mi) by
 vehicle type and the number of lane changes per vehicle type. I found that
 there was no change in travel rate and a number of lane changes when I
 changed the value of lcStrategic to 500, 1000, and 1500. I don't understand
 why there was no effect of changing the parameter values.
 Next, I want to look into other parameters like "lcLookaheadLeft",
 "lcAssertive" and "lcSpeedGain".

 *Question*: I would like to understand the units of the parameters
 "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".

 The SUMO documentation says:

1. lcStrategic: The eagerness for performing strategic lane
changing. Higher values result in earlier lane-changing. default: 1.0,
range [0-inf), -1 A value of 0 sets the lookahead-distance to 0
(vehicles can still change at the end of their lane) whereas -1 disables
strategic changing completely.
2. lcLookaheadLeft: Factor for configuring the strategic lookahead
distance when a change to the left is necessary (relative to right
lookahead). default: 2.0, range [0-inf)
3. lcAssertive: Willingness to accept lower front and rear gaps on
the target lane. The required gap is divided by this value. default: 1,
range: positive reals
4. lcSpeedGain: The eagerness for performing lane changing to gain
speed. Higher values result in more lane-changing. default: 1.0, range
[0-inf)

 These definitions don't mention any units explicitly, are they all
 factors? i.e. unitless or are some of them in meters and some unitless?

 I was checking the code
 for
 LC2013 and found that look ahead distance (laDist) is being
 calculated as follows:

 laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ?
 1 : myLookaheadLeft);


 If this is how the look-ahead distance for a vehicle is calculated when
 making lane-changing decisions, then both lcLookaheadLeft and
 lcStrategic specified will be used to calculate laDist but I don't know
 what what the units of any of these parameters are. For laDist to be in
 distance units, speed would be multiplied by time here.

 Please share any information that is available as it would help me
 understand my results better.

 Thanks,
 Soumya.
 ___
 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
>>> 

Re: [sumo-user] Question

2023-06-05 Thread Jakob Erdmann
This years SUMO User conference included a publication on that topic.
Unfortunately, we cannot put the proceedings online yet but I will send you
the paper as a direct message.


Am Mo., 5. Juni 2023 um 16:22 Uhr schrieb maziyar layegh <
maziyar.layegh1...@gmail.com>:

> To whom it may concern
>
> I hope this email finds you well. As a PhD student at Concordia
> University, I am currently working on my thesis, which focuses on
> integrating SUMO (Simulation of Urban MObility) with Unreal Engine. My
> objective is to utilize TraCI (Traffic Control Interface) to establish a
> connection between these two platforms.
>
> Fortunately, I have successfully established a connection between SUMO and
> Python, with SUMO acting as a server and Python as a client. However, I am
> facing challenges in connecting Unreal Engine to this setup and effectively
> transferring data between SUMO and Unreal Engine. The ultimate goal is to
> employ an Unreal Engine for having a real human driver operating within the
> network generated by SUMO.
>
> I would be immensely grateful if you could lend your expertise and support
> to help me overcome this obstacle. Your assistance would be invaluable to
> the progress of my research. Thank you for considering my request, and I
> eagerly await your response.
>
> best regards,
>
> Maziyar Layegh
> ___
> 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


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Jakob Erdmann
see
https://github.com/eclipse/sumo/blob/de92290f118f38780aaf9b809a415ef981779b50/src/microsim/MSVehicle.cpp#L5787-L5848

Am Mo., 5. Juni 2023 um 16:24 Uhr schrieb Soumya Sharma via sumo-user <
sumo-user@eclipse.org>:

> Hi Jakob,
> Thanks for the information, that is very helpful.
>
> Also, in one of your previous emails, you mentioned:
> "The default look-ahead distance for strategic decision has a maximum
> range of about 3000m. You can reduce this distance by setting vType
> attribute 'lcStrategic' to a value in [0, 1[. "
>
> Where does this 3000m distance come from? is it the same as laDist? and
> where can I find these default values and the code corresponding to
> defaults?
> My goal is to understand how the look-ahead distance of a vehicle
> changes with changing parameters like "lcStrategic" and "lcLookaheadLeft",
> "lcAssertive" and "lcSpeedGain".
>
> Thanks!
>
> On Mon, Jun 5, 2023 at 7:57 AM Jakob Erdmann 
> wrote:
>
>> - All these attributes are factors and thus unitless
>> - in the laDist computation, the value of LOOK_FORWARD is the time (10s)
>> which is then scaled
>>
>>
>> Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
>> sumo-user@eclipse.org>:
>>
>>> Hello,
>>> I am trying to conduct a sensitivity analysis of car-following and
>>> lane-changing parameters in SUMO for hypothetical freeway segments (basic
>>> and weaving). I tried changing headway values (car-following) and
>>> lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
>>> values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
>>> My trucks are using the CACC model.
>>> The two metrics I am interested in are the travel rates (secs/ mi) by
>>> vehicle type and the number of lane changes per vehicle type. I found that
>>> there was no change in travel rate and a number of lane changes when I
>>> changed the value of lcStrategic to 500, 1000, and 1500. I don't understand
>>> why there was no effect of changing the parameter values.
>>> Next, I want to look into other parameters like "lcLookaheadLeft",
>>> "lcAssertive" and "lcSpeedGain".
>>>
>>> *Question*: I would like to understand the units of the parameters
>>> "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".
>>>
>>> The SUMO documentation says:
>>>
>>>1. lcStrategic: The eagerness for performing strategic lane
>>>changing. Higher values result in earlier lane-changing. default: 1.0,
>>>range [0-inf), -1 A value of 0 sets the lookahead-distance to 0
>>>(vehicles can still change at the end of their lane) whereas -1 disables
>>>strategic changing completely.
>>>2. lcLookaheadLeft: Factor for configuring the strategic lookahead
>>>distance when a change to the left is necessary (relative to right
>>>lookahead). default: 2.0, range [0-inf)
>>>3. lcAssertive: Willingness to accept lower front and rear gaps on
>>>the target lane. The required gap is divided by this value. default: 1,
>>>range: positive reals
>>>4. lcSpeedGain: The eagerness for performing lane changing to gain
>>>speed. Higher values result in more lane-changing. default: 1.0, range
>>>[0-inf)
>>>
>>> These definitions don't mention any units explicitly, are they all
>>> factors? i.e. unitless or are some of them in meters and some unitless?
>>>
>>> I was checking the code
>>> for
>>> LC2013 and found that look ahead distance (laDist) is being
>>> calculated as follows:
>>>
>>> laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ? 1
>>> : myLookaheadLeft);
>>>
>>>
>>> If this is how the look-ahead distance for a vehicle is calculated when
>>> making lane-changing decisions, then both lcLookaheadLeft and
>>> lcStrategic specified will be used to calculate laDist but I don't know
>>> what what the units of any of these parameters are. For laDist to be in
>>> distance units, speed would be multiplied by time here.
>>>
>>> Please share any information that is available as it would help me
>>> understand my results better.
>>>
>>> Thanks,
>>> Soumya.
>>> ___
>>> 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
>>
>
>
> --
> Thank you,
> Soumya Sharma
>
> ___
> 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


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Soumya Sharma via sumo-user
Hi Jakob,
Thanks for the information, that is very helpful.

Also, in one of your previous emails, you mentioned:
"The default look-ahead distance for strategic decision has a maximum range
of about 3000m. You can reduce this distance by setting vType attribute '
lcStrategic' to a value in [0, 1[. "

Where does this 3000m distance come from? is it the same as laDist? and
where can I find these default values and the code corresponding to
defaults?
My goal is to understand how the look-ahead distance of a vehicle
changes with changing parameters like "lcStrategic" and "lcLookaheadLeft",
"lcAssertive" and "lcSpeedGain".

Thanks!

On Mon, Jun 5, 2023 at 7:57 AM Jakob Erdmann  wrote:

> - All these attributes are factors and thus unitless
> - in the laDist computation, the value of LOOK_FORWARD is the time (10s)
> which is then scaled
>
>
> Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
> sumo-user@eclipse.org>:
>
>> Hello,
>> I am trying to conduct a sensitivity analysis of car-following and
>> lane-changing parameters in SUMO for hypothetical freeway segments (basic
>> and weaving). I tried changing headway values (car-following) and
>> lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
>> values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
>> My trucks are using the CACC model.
>> The two metrics I am interested in are the travel rates (secs/ mi) by
>> vehicle type and the number of lane changes per vehicle type. I found that
>> there was no change in travel rate and a number of lane changes when I
>> changed the value of lcStrategic to 500, 1000, and 1500. I don't understand
>> why there was no effect of changing the parameter values.
>> Next, I want to look into other parameters like "lcLookaheadLeft",
>> "lcAssertive" and "lcSpeedGain".
>>
>> *Question*: I would like to understand the units of the parameters
>> "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".
>>
>> The SUMO documentation says:
>>
>>1. lcStrategic: The eagerness for performing strategic lane changing.
>>Higher values result in earlier lane-changing. default: 1.0, range 
>> [0-inf),
>>-1 A value of 0 sets the lookahead-distance to 0 (vehicles can still
>>change at the end of their lane) whereas -1 disables strategic changing
>>completely.
>>2. lcLookaheadLeft: Factor for configuring the strategic lookahead
>>distance when a change to the left is necessary (relative to right
>>lookahead). default: 2.0, range [0-inf)
>>3. lcAssertive: Willingness to accept lower front and rear gaps on
>>the target lane. The required gap is divided by this value. default: 1,
>>range: positive reals
>>4. lcSpeedGain: The eagerness for performing lane changing to gain
>>speed. Higher values result in more lane-changing. default: 1.0, range
>>[0-inf)
>>
>> These definitions don't mention any units explicitly, are they all
>> factors? i.e. unitless or are some of them in meters and some unitless?
>>
>> I was checking the code
>> for
>> LC2013 and found that look ahead distance (laDist) is being
>> calculated as follows:
>>
>> laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ? 1
>> : myLookaheadLeft);
>>
>>
>> If this is how the look-ahead distance for a vehicle is calculated when
>> making lane-changing decisions, then both lcLookaheadLeft and
>> lcStrategic specified will be used to calculate laDist but I don't know
>> what what the units of any of these parameters are. For laDist to be in
>> distance units, speed would be multiplied by time here.
>>
>> Please share any information that is available as it would help me
>> understand my results better.
>>
>> Thanks,
>> Soumya.
>> ___
>> 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
>


-- 
Thank you,
Soumya Sharma
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Question

2023-06-05 Thread maziyar layegh
To whom it may concern

I hope this email finds you well. As a PhD student at Concordia University,
I am currently working on my thesis, which focuses on integrating SUMO
(Simulation of Urban MObility) with Unreal Engine. My objective is to
utilize TraCI (Traffic Control Interface) to establish a connection between
these two platforms.

Fortunately, I have successfully established a connection between SUMO and
Python, with SUMO acting as a server and Python as a client. However, I am
facing challenges in connecting Unreal Engine to this setup and effectively
transferring data between SUMO and Unreal Engine. The ultimate goal is to
employ an Unreal Engine for having a real human driver operating within the
network generated by SUMO.

I would be immensely grateful if you could lend your expertise and support
to help me overcome this obstacle. Your assistance would be invaluable to
the progress of my research. Thank you for considering my request, and I
eagerly await your response.

best regards,

Maziyar Layegh
___
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] Is road grade taken into account in determining vehicle speed?

2023-06-05 Thread Jakob Erdmann
https://github.com/eclipse/sumo/blob/961730c2501c4810d7b36fd27c2c13b0d3b128d4/src/microsim/cfmodels/MSCFModel_KraussPS.cpp#L44-L55

Am Mo., 5. Juni 2023 um 14:13 Uhr schrieb ryota ishida :

> Dear Jakob
>
> Thanks for the reply.
> I would like to know how the gradient is taken into account in the
> KraussPS model.
> However, I can't find any appropriate references in SUMOdocumentation.
> If you know of any formulas or references, please let me know.
>
> Best regards
>
> 2023年6月5日(月) 1:18 Jakob Erdmann :
>
>> Of all the carFollowModels in sumo, currently the only ones that takes
>> grade into account are "KraussPS" (which stands for Krauss plus Slope) and
>> "Rail".
>> You could override model accelerations via TraCI using vehicle.getSlope
>> and vehicle.setAccel and vehicle.setDecel (the latter two set upper and
>> lower bounds on acceleration) or you could override an existing model:
>> https://sumo.dlr.de/docs/Developer/How_To/Car-Following_Model.html
>>
>>
>> Am So., 4. Juni 2023 um 12:10 Uhr schrieb ryota ishida <
>> ishira...@gmail.com>:
>>
>>> Dear all
>>>
>>>
>>> I have a question about SUMO's vehicle speed.
>>>
>>> Is the effect of road grade taken into account in determining the
>>> vehicle speed?
>>>
>>> (From looking at Krauss' paper on vehicle following models, it does not
>>> appear that gradient is taken into account)
>>>
>>> Also, is it possible to calculate speeds taking road gradient into
>>> account?
>>>
>>>
>>> Best regards
>>>
>>> Ishi
>>> ___
>>> 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 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


Re: [sumo-user] Is road grade taken into account in determining vehicle speed?

2023-06-05 Thread ryota ishida
Dear Jakob

Thanks for the reply.
I would like to know how the gradient is taken into account in the KraussPS
model.
However, I can't find any appropriate references in SUMOdocumentation.
If you know of any formulas or references, please let me know.

Best regards

2023年6月5日(月) 1:18 Jakob Erdmann :

> Of all the carFollowModels in sumo, currently the only ones that takes
> grade into account are "KraussPS" (which stands for Krauss plus Slope) and
> "Rail".
> You could override model accelerations via TraCI using vehicle.getSlope
> and vehicle.setAccel and vehicle.setDecel (the latter two set upper and
> lower bounds on acceleration) or you could override an existing model:
> https://sumo.dlr.de/docs/Developer/How_To/Car-Following_Model.html
>
>
> Am So., 4. Juni 2023 um 12:10 Uhr schrieb ryota ishida <
> ishira...@gmail.com>:
>
>> Dear all
>>
>>
>> I have a question about SUMO's vehicle speed.
>>
>> Is the effect of road grade taken into account in determining the vehicle
>> speed?
>>
>> (From looking at Krauss' paper on vehicle following models, it does not
>> appear that gradient is taken into account)
>>
>> Also, is it possible to calculate speeds taking road gradient into
>> account?
>>
>>
>> Best regards
>>
>> Ishi
>> ___
>> 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 mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Units of lcStrategic, lcLookaheadLeft, lcAssertive, lcSpeedGain

2023-06-05 Thread Jakob Erdmann
- All these attributes are factors and thus unitless
- in the laDist computation, the value of LOOK_FORWARD is the time (10s)
which is then scaled


Am So., 4. Juni 2023 um 04:24 Uhr schrieb Soumya Sharma via sumo-user <
sumo-user@eclipse.org>:

> Hello,
> I am trying to conduct a sensitivity analysis of car-following and
> lane-changing parameters in SUMO for hypothetical freeway segments (basic
> and weaving). I tried changing headway values (car-following) and
> lcStrategic values (lane-changing) for a basic segment. I used lcStrategic
> values of 500, 1000, and 1500 for trucks in simulations (length = 15.25m).
> My trucks are using the CACC model.
> The two metrics I am interested in are the travel rates (secs/ mi) by
> vehicle type and the number of lane changes per vehicle type. I found that
> there was no change in travel rate and a number of lane changes when I
> changed the value of lcStrategic to 500, 1000, and 1500. I don't understand
> why there was no effect of changing the parameter values.
> Next, I want to look into other parameters like "lcLookaheadLeft",
> "lcAssertive" and "lcSpeedGain".
>
> *Question*: I would like to understand the units of the parameters
> "lcStrategic" and "lcLookaheadLeft", "lcAssertive" and "lcSpeedGain".
>
> The SUMO documentation says:
>
>1. lcStrategic: The eagerness for performing strategic lane changing.
>Higher values result in earlier lane-changing. default: 1.0, range [0-inf),
>-1 A value of 0 sets the lookahead-distance to 0 (vehicles can still
>change at the end of their lane) whereas -1 disables strategic changing
>completely.
>2. lcLookaheadLeft: Factor for configuring the strategic lookahead
>distance when a change to the left is necessary (relative to right
>lookahead). default: 2.0, range [0-inf)
>3. lcAssertive: Willingness to accept lower front and rear gaps on the
>target lane. The required gap is divided by this value. default: 1, range:
>positive reals
>4. lcSpeedGain: The eagerness for performing lane changing to gain
>speed. Higher values result in more lane-changing. default: 1.0, range
>[0-inf)
>
> These definitions don't mention any units explicitly, are they all
> factors? i.e. unitless or are some of them in meters and some unitless?
>
> I was checking the code
> for
> LC2013 and found that look ahead distance (laDist) is being calculated as
> follows:
>
> laDist = myLookAheadSpeed * LOOK_FORWARD * myStrategicParam * (right ? 1 :
> myLookaheadLeft);
>
>
> If this is how the look-ahead distance for a vehicle is calculated when
> making lane-changing decisions, then both lcLookaheadLeft and lcStrategic
> specified will be used to calculate laDist but I don't know what what the
> units of any of these parameters are. For laDist to be in distance units,
> speed would be multiplied by time here.
>
> Please share any information that is available as it would help me
> understand my results better.
>
> Thanks,
> Soumya.
> ___
> 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


Re: [sumo-user] libsumo DLL load error

2023-06-05 Thread Michael Behrisch

Hi,
we regularly experience difficulties in using anaconda because it brings 
its own libraries. Can you retry with a pure python?


Best regards,
Michael

Am 02.06.23 um 09:02 schrieb 최석환:

Dear all,

I'm going to run sumo using libsumo and Python multiprocessing packages.
I successfully installed it using pip install libsumo.

However, importing libsumo from python results in the error message 
"Module not found."

My error message is as follows

---ImportErrorTraceback 
(most recent call last) Cell In[1], line 97fromtqdmimporttqdm 8frommultiprocessingimportProcess, 
Pool > 9importlibsumoFile C:\Program Files 
(x86)\Eclipse\Sumo\tools\libsumo\__init__.py:3028fromtraciimportconnection, constants, exceptions, 
_vehicle, _person, _trafficlight, _simulation # noqa29fromtraci.stepimportStepManager, 
StepListener # noqa---> 30from.libsumoimportvehicle, simulation, person, trafficlight # 
noqa31from.libsumoimportTraCIStage, TraCINextStopData, TraCIReservation, TraCILogic, TraCIPhase, 
TraCIException # noqa32from.libsumoimportTraCICollision, TraCISignalConstraint # noqaFile 
C:\Program Files (x86)\Eclipse\Sumo\tools\libsumo\libsumo.py:1311# Import the low-level C/C++ 
module12if__package__ or"."in__name__: ---> 13from.import_libsumo 14else: 
15import_libsumoImportError: DLL load failed while importing _libsumo: Module not found.



My environment is sumo 1.17, libsumo 1.17, and I use python 3.10.9 in 
anaconda3.
I added site-package, sumo tools, sumo bin, etc. from anaconda env to 
the path in the Windows system environment variable, but I still get DLL 
load error.

How should I solve this problem?

Thank you so much for your kind response and good insights all the time.


___
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