No. But these bits are not the internal state anyway. They are more like a
description of the situation on the road that are computed based on the
internal state.

Am So., 25. Sept. 2022 um 11:28 Uhr schrieb Mahima <mahim...@gmail.com>:

> Thanks for your reply.
>
> Using the latest development version, Can I copy paste the whole lane
> change bitset for a vehicle while moving the vehicle?
>
>
>    - 2^0: stay
>    - 2^1: left
>    - 2^2: right
>    - 2^3: strategic
>    - 2^4: cooperative
>    - 2^5: speedGain
>    - 2^6: keepRight
>    - 2^7: TraCI
>    - 2^8: urgent
>    - 2^9: blocked by left leader
>    - 2^10: blocked by left follower
>    - 2^11: blocked by right leader
>    - 2^12: blocked by right follower
>    - 2^13: overlapping
>    - 2^14: insufficient space
>    - 2^15: sublane
>
>
> 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