Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] [From: External] Re: Close the part of the lane for construction
  • From: "Desai, Rohit (VWoA-ECC)" <Rohit.Desai@xxxxxx>
  • Date: Wed, 12 Jul 2023 05:42:58 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vw.com; dmarc=pass action=none header.from=vw.com; dkim=pass header.d=vw.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=afhOZcdFR3veH90EoBefqKeqGb7MqPpiSTbLagIhpz4=; b=WYkgDhNEZALK8TXo+Zubx6ARIf8rI/Qoj7Y2gDT6Ug9yF9enQMg20R5LHvkcK6jag4yxXmYsISJYd98APMy76pk2V+QwkdIfT1dreSvtqyKVImk3lbD55XbtIOwh66H2EJfZQGj8rQX+g5BNIjoOZzIW0mb4cLQdQullWSse24kL9v5dBOspjvKiImEyD8HFc72HUnJhT2LRWpA0LgJlPb3EKRhqseD0TaNULCudJAn6ZISko9bmhXIAcsY6uQKOxxw3FGLM/MZtFXazAoJ9SbMbCAsApbrrOW5OfAIyd5YGYdNdEk7zxgx4dyoqx7QbqnNVS6AH6k1+GjN9n463/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k7m+Yl9B3TXEntObtiUern5BexvIa6taSU/4T0Iz6n30KJKnMh8P19Qb7wIbrYdyGIQjO6SF/yKCNG1nyrjC+D/Y5wv/MasUso9ACDIyY5wpS6k3YehTda825rgcNEPaiQg/nl8FvKSfNYQ1yjG9ygSM8psBYQAwvTVJ5GAdG3XHhim0t1gasSUyQgBM45zLfgj5UkGTS9qwWIgE+K27xyF5uB6RyzcAlb/r/Y+w6mXwSw44ytLsXYdmERLpXLsnua+5u5YpyS9n+k41ecSj9qXyDIC2wVnTSP3KaYiflp0BPv0LyvVUykgNL8LRoQf4ZpCLoW0K5jkuZi1n7YsEpg==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Msip_labels: MSIP_Label_2dcc62b5-3644-4e86-9729-856739a0d33d_Enabled=True; MSIP_Label_2dcc62b5-3644-4e86-9729-856739a0d33d_SiteId=11590e71-96da-476f-972d-10da30c8e6b2; MSIP_Label_2dcc62b5-3644-4e86-9729-856739a0d33d_SetDate=2023-07-06T18:41:55.8243502Z; MSIP_Label_2dcc62b5-3644-4e86-9729-856739a0d33d_ContentBits=0; MSIP_Label_2dcc62b5-3644-4e86-9729-856739a0d33d_Method=Standard
  • Thread-index: AQHZtIOr2w1SdA0vr0GIz4veIpXa3g==
  • Thread-topic: [sumo-user] [From: External] Re: Close the part of the lane for construction

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).

 

Am Do., 6. Juli 2023 um 01:06 Uhr schrieb Desai, Rohit (VWoA-ECC) <Rohit.Desai@xxxxxx>:

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


Back to the top