[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] SUMO gap2pred MSCFModel_CC
|
Hi Thodoris,
the gap2pred and the predspeed variable are passed to any car following
model in sumo so that the model can decide what to do (accelerate or
brake). gap2pred is simply the distance in meters to the preceding
vehicle, while predspeed is the speed of the preceding vehicle in meters
per second.
With respect to MSCFModel_CC, the model requires additional data to
compute what to do, depending on the CACC algorithm you choose. This is
where the communication comes into place. For example, if you are using
the default CACC (PATH's CACC) the control law also requires
acceleration and speed of the first vehicle in the platoon, which can
only be obtained by means of communication.
As a side note, I guess you should better switch to a sumo version from
1.2.0 onward, as starting from 1.2.0 my platooning models have been
included in the official sumo release, so you don't need a special
version of sumo.
Does this answer your question?
Best,
Michele
On 26/03/2020 17:17, Thodoris Zerlentis wrote:
Hi,
I am trying to use SUMO as a Platoon simulation software, through Plexe
and Veins extensions. I am currently using 0.32 version for SUMO.
So my question is how the 'gap2pred' and 'predspeed' variables used in
MSCFModel_CC are defined. I get the meaning of those variables but their
definition in the code is a mystery for me. I cant find any function
that serves that purpose. I found through sourceforge archives an older
version of SUMO where gap2pred was defined in the MSVehicle.h as a
function. But this function isn't in use any more. Although i think it
might has something to do with the getcarfollowVariables() function, but
i cannot either find all the cars defined variables. Please enlighten me.
Best regards,
Thodoris Zerlentis
Undergraduate Mechanical Engineer Student
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
--
Michele Segata, PhD
Department of Information Engineering and Computer Science
University of Trento, Italy
https://ans.disi.unitn.it/~segata/