Hello,
I am using the sumo-src-0.21.0 version.
When setting the stop.parking (i add the stop in the executemovement
function in mslane class)to true the following happens:
1- MSVehicleTransfer::add is called
2- the vehicle is then removed from the network reason 5
(NOTIFICATION_PARKING)
3- the vehicle then leaves the lane.
the stop queue is checked, the stop is added
the next time step the stop is removed and the vehicle proceed with
the movement normally, while the stop time is 20000
I don't know why the stop is removed when the vehicle is removed from
the network.
is this a bug that was fixed in the 0.22.0 version, or am i doing
something wrong.
here is how i add the stop, i run through the sumo64:
newStop.lane = target->getID();
newStop.startPos =0;
newStop.endPos = 30;
if(prevStopPos>newStop.endPos){
newStop.endPos=prevStopPos+10;
}
//stop duration should be in mseconds
newStop.duration = 200000; /////to do ------get
duration from
dewlling time
newStop.until = -1;
newStop.triggered = false;
newStop.parking = true;
newStop.index = STOP_INDEX_END;
bool check_addstop=veh->addStop(newStop)
thank you in advance
Quoting Jakob Erdmann <[email protected]>:
> use attribute parking="true" when defining the stop. see the udpated
> documentation here:
> http://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Stops
>
> 2015-02-25 19:47 GMT+01:00 <[email protected]>:
>
>> Hello,
>>
>> I wish to simulate normal vehicles that makes a trip and parks in a
>> vehicle parking for a certain stop time, then proceed with the journey.
>> is it possible that a vehicle halts in a parking? because when the stop is
>> made at a normal edge, it causes a traffic jam.
>>
>> thank you
>>
>>
>>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user