Hi SumoUsers,
I tried following approach to stop a vehicle at a certain position on the edge but the beheviour is not as I expected, vehicle doesn’t stop at the give
startPos, it travelled till the end of the edge and stopped for given duration. Following is my code, can someone please help me understand the parameters here ? from the documentation I found out this
setStop(self,
vehID, edgeID, pos=1.0, laneIndex=0, duration=-1073741824.0, flags=0, startPos=-1073741824.0, until=-1073741824.0)
My code is : trying to stop the vehicle at 300.00 for given duration.
Note : edge length is 500
traci.vehicle.setStop(vehID="Car_1",edgeID="1" ,startPos=300.00,duration=100)
I appreciate any thoughts on this.
Thanks,
Rohit
Internal
From:
sumo-user <sumo-user-bounces@xxxxxxxxxxx> on behalf of Desai, Rohit (VWoA-ECC) <Rohit.Desai@xxxxxx>
Date: Thursday, July 6, 2023 at 11:43 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] [From: External] Re: Close the part of the lane for construction
Thanks for the quick response, I will try the same.
Internal
Internal
From:
sumo-user <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Date: Wednesday, July 5, 2023 at 10:42 PM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: [From: External] Re: [sumo-user] Close the part of the lane for construction
CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
|
The easiest way is to close a complete lane using traci.lane.setAllowed(laneID, "authority") and re-open it later with traci.lane.setAllowed(laneID, "all") (or whatever the prior permissions used to be).
For closing only a part, the recommended way is to place a stopped vehicle (traci.vehicle.add, traci.vehicle.setStop, later remove it with traci.vehicle.remove).
Hi SumoUsers,
I am new to the sumo, still learning most of the things.
I would like to know what’s is the way to close a part of the lane for construction or accident scenario ?
When I read across couple of old posts people had created a ghost vehicle in in the simulation, is this is how it is achieved ?
How can I do the lane closer(part of the lane) through TraCI and open back after some time ?
Any thoughts will be greatly appreciated.
Thanks,
Rohit
Internal
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user