Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Simpla Example

Hi, 

I am trying to implement the Simpla platooning plugin for TraCI Python. TraCI appears to be working correctly and it is loading my Simpla config file. 

The simulation is running without errors, however the vehicles do not appear to be platooning. Follower vehicles are not staying in the same lane as the leader and they also overtake the leader. Below is my file setup, can you see what I am doing wrong? Does anyone have any basic examples?

I would greatly appreciate any help with this!

Simpla Config File:
<configuration>
    <controlRate value="1.0"/>
    <maxPlatoonGap value="15.0"/>
    <catchupDist value="50.0"/>
    <switchImpatienceFactor value="0.1"/>
    <platoonSplitTime value="3.0"/>
    <lcMode catchupFollower="514" catchup="514" follower="514" leader="597" original="597"/>
    <speedFactor catchupFollower="1.3" catchup="1.2" follower="1.1" leader="1.0" original="1.0"/>
    <verbosity value="1"/>
    <vTypeMap original="orig_simpla" leader="leader_simpla" follower="follower_simpla"  catchup="catchup_simpla" catchupFollower="catchupF_simpla"/>
</configuration>

Route File:
<routes>

    <vType id="orig_simpla"/>
    <vType id="leader_simpla"/>
    <vType id="follower_simpla"/>
    <vType id="catchup_simpla"/>
    <vType id="catchupF_simpla"/>

<route id="route0" edges="0to1 1to2 2to3 3to4 4to5 5to6 6to7 7to8 8to9 9to10"/>

    <!-- Purple -->
    <vehicle id="purp" vType="leader_simpla" type="leader_simpla" route="route0" depart="0" departLane="0" color="1,0,1"></vehicle>  
    <!-- Green -->
    <vehicle id="green" vType="follower_simpla" type="follower_simpla" route="route0" depart="0" departLane="1" color="0,1,0"></vehicle>
    <!-- Blue -->
    <vehicle id="blue" vType="follower_simpla" type="follower_simpla" route="route0" depart="0" departLane="1" color="0,0,1"></vehicle>

</routes> 



Back to the top