For the default model, the sigmaState is equal to
`traci.vehicle.getLateralLanePosition` (there is no internal mySigmaState
variable).
The requirement of setting this for the default lane change model is now
tracked here: https://github.com/eclipse/sumo/issues/12568

Am Mo., 6. Feb. 2023 um 12:22 Uhr schrieb Mahima <mahim...@gmail.com>:

> Hi Jakob,
>
> Can you please add the following to the default lane change model?
>
> } else if (key == "sigmaState") {
> mySigmaState = doubleValue;
>
> I would like to copy sigma state of each vehicle from one partition to
> another.
>
> Thanks
>
> On Fri, Sep 16, 2022 at 10:30 AM Jakob Erdmann <namdre.s...@gmail.com>
> wrote:
>
>> The latest development version contains experimental read/write access to
>> the internal state of the lane change models using the vehicle.setParameter
>> / getParameter API
>> i.e. traci.vehicle.getParameter(vehID,
>> laneChangeModel.keepRightProbability"), traci.vehicle.setParameter(vehID,
>> laneChangeModel.keepRightProbability", str(0.5))
>> see
>> https://github.com/eclipse/sumo/commit/c82cfca0a62a89d2409469dc892729715afa2770
>> (note, the pre-compiled binaries will not reflect this change until
>> tomorrow).
>>
>> regards,
>> Jakob
>>
>> Am Do., 15. Sept. 2022 um 09:56 Uhr schrieb Mahima <mahim...@gmail.com>:
>>
>>> Thanks, for your reply.
>>> I am using the default car following and lane change models.
>>> Actually, I am working on a parallel version of sumo and I am moving
>>> vehicles from one partition to another. With the vehicle I also want to
>>> copy the lanechange state and value of keepRightProbability. So that my
>>> vehicle shows the same lane change behavior as it was on the previous
>>> partition. Currently, when I am just moving the vehicle without copying the
>>> lanechange state it is showing sudden lane change to right at the red
>>> traffic light. On the other hand, if run on sumo it stays on the leftmost
>>> lane for all these timesteps.
>>>
>>> I read the following and thought of copying the lanechangestate as well.
>>> *In the current lane-changing model, each vehicle maintains a variable
>>> keepRightProbability which is decremented over time and triggers a lane
>>> change to the right once a lower threshold value is exceeded (negative
>>> values are used in allusion to the variable speedGainProbability).*
>>>
>>> Please suggest how I can set the same lane change bitmask.
>>>
>>> Thanks.
>>>
>>> On Thu, Sep 15, 2022 at 10:44 AM Jakob Erdmann <namdre.s...@gmail.com>
>>> wrote:
>>>
>>>> This cannot currently be done.
>>>> What effects in terms of simulation behavior would you like to see in
>>>> response to changing the lane change state?
>>>>
>>>> Am Do., 15. Sept. 2022 um 09:30 Uhr schrieb Mahima <mahim...@gmail.com
>>>> >:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a query regarding setting lane change state of a vehicle. I am
>>>>> moving a vehicle using moveTo. I also want to set the same lane change
>>>>> state of this vehicle as at the previous position.
>>>>>
>>>>> Please suggest how this can be done.
>>>>>
>>>>> Thanks,
>>>>> _______________________________________________
>>>>> 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
>>
> _______________________________________________
> 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

Reply via email to