Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Trucks not stopping at the ContainerStop using traci
  • From: Hector A Martinez <hmartinez@xxxxxxxxx>
  • Date: Mon, 4 Mar 2024 16:23:15 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mitre.org; dmarc=pass action=none header.from=mitre.org; dkim=pass header.d=mitre.org; 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=VChu1Mf8GDEqxAjxqS7px2Rny0/ooWjZzf3TS4yEzoM=; b=iHdwzPPMJ8b7vgYpA8ycs9e826Z4cA9b/FwIz19xwNJzvQdYw4rZpVOwetof1HxSsVyx5nR6wSceWOQKKzaq1bsa4eSgsA30wCzF0wG6P/kV2QV7W8EEHpXXkO3ahLjARoTzvrZBIL7Mehx0LmcvIV57WuFKJbYZgtiLGqADnTuj57DjiO5Ihv3mO1xBp5eKxgC/gsKXBjc5XHYSDeGZg81L4pm3Ou9HaKhE7EWuFJ0JymhRGKepN0sg/p5nD8CfWD2MqXIkiJFSo8EFGS9+gcw80CzIDXM0JsH7tYF4211RiUC2h46EPmm1FNhR3HAvHOYSy2I9pta7jvLUqY9j3w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WJWPo4iACSjhT+gchNN8EjkF4gQDThQEfJEwAaVR9HHEt17/1Ak+cWR2CBOwu2jBb7P68+F09lKAl5EVR7gRSzqPsg8shVjz8hexkAohIlhxAl2T4KuJMQI729UqeHD7Hy9MLtXemifP+NwYkGUiJi5xqSbtAbFksnpUD9uYo3Sn1kiT7dv6rdhPY4vKEw/wYKTBwPxl388nLRnHk9Nejkz7RfkN2+baexW7pe7h/eQuE5PadYe3z4BYF9oiu+bN4FumIN34IsUfIvwP0POgazmS0GawKIkiT20qQwFJerkR1yWkq2MKp1v4Oks0JNAoCe1BzEq4I5oNm7Lk9fJIzw==
  • 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>
  • Thread-index: AdpuT0I16WsGv08OS4yViIHSvBBurA==
  • Thread-topic: Trucks not stopping at the ContainerStop using traci

Dear sumo community,

 

I am having trouble with getting my Trucks to stop at the ContainerStop when I use traci.vehicle.insertStop.

 

Here is my route creation:

<route id="O_D" edges="-1007481313#2 -784198482#1" />

 

Here is how I create the truck to use the route:

    def create_sumo_truck(self, truck):

        """

        Inject a new truck vehicle with a valid route ID into SUMO model.

        """

        self.log(f"creating traci truck {truck.name}")

        traci.vehicle.add(truck.name,

                          truck.journey[0],  # routeID must exist in rou.xml file

                          'truck',           # vtype truck_spec['vtype']

                          personCapacity=1)  # single-unit truck

        traci.vehicle.setSpeed(truck.name, 60)  # m/s Fast for testing

        traci.vehicle.insertStop(truck.name,0,'D-Truck-Stop-NW',duration=500,flags=traci.constants.STOP_CONTAINER_STOP)

 

My truck slows down when it gets to the stop but keeps going and it does the 500 second stop at the end of the edge rather than at the containerStop as I would like it to.

 

Any advice would be greatly appreciated.  Thanks,

 

Hector A. Martinez, P.E.

Transportation Researcher, Resilient Transportation and Logistics LTM

MITRE | National Security Engineering Center

813.207.5365

 


Back to the top