The vTypeMap declaration requires the vType ids that are loaded in the input file for the 'original' attribute. This means your <vehicle> definitions should all use type="orig_simpla". The other types (leader_simpla etc) are then assigned dynamically by simpla.
George Burslem wrote > 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"/> > > > <vehicle id="purp" vType="leader_simpla" type="leader_simpla" > route="route0" depart="0" departLane="0" color="1,0,1"> > </vehicle> > > > <vehicle id="green" vType="follower_simpla" type="follower_simpla" > route="route0" depart="0" departLane="1" color="0,1,0"> > </vehicle> > > > <vehicle id="blue" vType="follower_simpla" type="follower_simpla" > route="route0" depart="0" departLane="1" color="0,0,1"> > </vehicle> > > </routes> > > > _______________________________________________ > sumo-user mailing list > sumo-user@ > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ _______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
