Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] simpla

Did you check whether vehicle spacing is lower than maxPlatoonGap?
If vehicles do not reduce distances on their own, you could define the `catchup` type and give it a higher speedFactor and lower desired gap.
Please see the updated documentation at https://sumo.dlr.de/docs/Simpla.html (some attributes were missing in the table).

Am Di., 8. Feb. 2022 um 20:36 Uhr schrieb Yajun She <sheyajun1@xxxxxxxxx>:
Dear Jakob,

I tried using 'Simple' and Traci to form a platoon. What I expect is that some vehicles should turn blue when the platoon is formed. But it doesn't work at all,  hope you can help me out here. The following are my route file, configuration file, and python codes.

Best regards and thanks,
Yajun She

image.png

image.png

image.png

On Mon, 24 Jan 2022 at 09:36, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
In your vTypeMap, change the id 'orig_automated' to 'automated'.

Am Sa., 22. Jan. 2022 um 08:25 Uhr schrieb Yajun She <sheyajun1@xxxxxxxxx>:
Hello,

I tried to implement 'simpla' to create platoon using the following simpla configuration file and route file:
<configuration>
    <vehicleSelectors value="automated"/>
    <vTypeMap original="orig_automated" leader="leader_automated" follower="follower_automated" />
    <platoonSplitTime value="3.0"/>
    <maxPlatoonGap vaule="5.0"/>
    <catchupDist value="25"/>
    <speedFactor original="1.0" leader="1.0" follower="1.2" />
    <switchImpatienceFactor value="0.5"/>
    <controlRate value="1.0"/>
    <platoonSplitTime value="2.0"/>
</configuration>

<routes>
    <vType id="automated" minGap="1.00" accel="2.6" decel="4.5" sigma="0.5" length="5" maxSpeed="60" color="white"/>
    <vType id="orig_automated" color="white"/>
    <vType id="leader_automated" color="red"/>
    <vType id="follower_automated" color="black"/>

    <route id="east_west" edges="A1B1 B1C1" color="yellow"/>
    <route id="south_north" edges="B0B1 B1B2" color="yellow"/>

    <flow id="flow_0" type="automated" begin="0.00" route="east_west" vehsPerHour="1600"/>
    <flow id="flow_1" type="automated" begin="0.00" route="south_north" vehsPerHour="1600"/>
</routes>


However, I am facing this issue while loading "simpla" configuration file: 
C:\Python37\python.exe C:/pythonProject/main.py
1.0: WARNING: No vType specified for PlatoonMode 'LEADER' for vehicle 'flow_0.0'. Behavior within platoon is NOT altered. This warning is issued only once. (PVehicle)
1.0: WARNING: No vType specified for PlatoonMode 'FOLLOWER' for vehicle 'flow_0.0'. Behavior within platoon is NOT altered. This warning is issued only once. (PVehicle)
1.0: WARNING: No vType specified for PlatoonMode 'CATCHUP' for vehicle 'flow_0.0'. Behavior within platoon is NOT altered. This warning is issued only once. (PVehicle)
1.0: WARNING: No vType specified for PlatoonMode 'CATCHUP_FOLLOWER' for vehicle 'flow_0.0'. Behavior within platoon is NOT altered. This warning is issued only once. (PVehicle)

I don't know if I have to change any other configuration, hope anyone of you can help me out!

Best regards and thanks,
Yajun 
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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