Hello,
I am modifying the sumo to simulate daily routines of a certain
population. the destination is chosen dynamically according to the
time of the day and the locations of the other vehicles.
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 and the stop.reached is
changed to true through the processNextStop function in msVehicle
the next time step the stop is removed and the vehicle proceed with
the movement normally, while the stop time is 20000, this happens only
when stop.parking is set to true
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
------------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel