Insert a humanVehicle in plexe.

61 views
Skip to first unread message

Nehal Baganal

unread,
Jun 5, 2020, 1:27:52 AM6/5/20
to OMNeT++ Users
I have made a intersection using sumo and now i want to implement a platoon on one edge and a human vehicle on other edge such that they intersect at intersection.
I have gone through Example-5 in plexe on how to insert a non-platoon vehicle.
I want to how to change the route of the non-platoon vehicle such that it flows on different edge.

my route file looks something like this:
<routes>
    <vType id="vtypeauto" accel="2.5" decel="9.0" sigma="0.5" length="4" minGap="0" maxSpeed="1000" color="1,0,0" probability="1" speedFactor="1000"
        carFollowModel="CC" tauEngine="0.5" omegaN="0.2" xi="1" c1="0.5" lanesCount="4" ccAccel="1.5" ploegKp="0.2" ploegKd="0.7" ploegH="0.5" />

    <route id="platoon_route" edges="1i 2o"/>

    <vType id="vtypehuman" accel="2.5" decel="6.0" sigma="0.5" length="4" minGap="0" maxSpeed="27.77778" color="0,0,1"    probability="1">

   <flow id ="carflow" type="vtypehuman" beg="0" end"0" departLane ="0" from="3i" to="4o" />
</routes>

please help

Michele Segata

unread,
Jun 29, 2020, 2:47:27 AM6/29/20
to omn...@googlegroups.com
Dear Nehal,

you should add a new route for the human vehicles in your route file
after the route for platoons and then change the traffic manager so that
human vehicles are inserted in the different route. In [1] you should
change

addVehicleToQueue(0, human);

with

addVehicleToQueue(1, human);

Best,
Michele

[1]
https://github.com/michele-segata/plexe-veins/blob/master/src/plexe/traffic/PlatoonsPlusHumanTraffic.cc#L145
> --
> You received this message because you are subscribed to the Google
> Groups "OMNeT++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to omnetpp+u...@googlegroups.com
> <mailto:omnetpp+u...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/omnetpp/61921a93-1478-4514-a687-f192ab439fe4o%40googlegroups.com
> <https://groups.google.com/d/msgid/omnetpp/61921a93-1478-4514-a687-f192ab439fe4o%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Michele Segata, PhD
Assistant Professor at the Faculty of Computer Science
University of Bolzano, Italy
https://ans.disi.unitn.it/~segata/
Reply all
Reply to author
Forward
0 new messages