Hi Michael,
Thank you for the clarification.
I have another doubt regarding the initiation of the scenario.
The scenario includes,
1. I have 4 vehicles in a straight road going from west to east with 2 lanes.
2. Movement of vehicles on both the lanes are in west to east direction.
3. The scenario starts with 2 vehicles on lane 0 and 2 vehicles on lane 1.
So my question is how can I incorporate the above mentioned (Point 3) in sumo.
In which file should I make the necessary changes.
I tried changing route file by adding departLane="random" , but still all the
vehicles start from a single lane and I can only see one lane. Also I have
already created type file and mentioned numLanes="2".
Best Regards,
Sujit Sharan
________________________________________
From: Michael Behrisch [[email protected]]
Sent: 03 October 2015 14:15:46
To: Sharan, S.; [email protected]
Subject: Re: [sumo-user] Lateral movement while lane changing
Hi Sujit Sharan,
> The simulation is to visualize the lane change of the platoon which
is governed by the
> Lateral controller (just like the controllers of "Cruise Control",
"Adaptive Cruise Control" in longitudinal direction).
> The lane change of the vehicles in SUMO has to be governed by the
Simulink/Matlab output as lateral velocity and yaw of the vehicle.
> (Not by lane and edges defined in SUMO).
> Traci.constants does have VAR_ANGLE, but can SUMO get input of yaw
angle or lateral velocity from client( Matlab/Simulink in this case).
You could use traci.vehicle.moveToVTD which accepts precise coordinates
and an angle as input. You cannot set lateral velocity though, you would
need to update the position yourself in every step.
Regards,
Michael
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType accel="1.0" decel="5.0" id="Car" length="5.0" minGap="2.0" maxSpeed="50.0" sigma="0" />
<route id="route0" edges="1to2 out" />
<vehicle depart="1" id="veh0" departLane="random" route="route0" type="Car" />
<vehicle depart="1" id="veh1" departLane="random" route="route0" type="Car" />
<vehicle depart="1" id="veh2" departLane="random" route="route0" type="Car" />
<vehicle depart="1" id="veh3" departLane="random" route="route0" type="Car" />
</routes>
<types>
<type id="a" numLanes="2" speed="25"/>
</types>------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user