ManiAm / VENTOS_Public

VEhicular NeTwork Open Simulator (VENTOS)
http://maniam.github.io/VENTOS/
GNU General Public License v3.0
57 stars 25 forks source link

Simulation Questions #26

Open xwenarthur opened 6 years ago

xwenarthur commented 6 years ago

Hi Mani!

It's me again :). VENTOS is really a powerful tool when simulating platoons. It helps me a lot. But I still got some problems:

  1. How could I change the penetration of platoon-enabled vehicles?
  2. How should I insert some platoon-enabled vehicles which drive on some lanes and then switch to one platoon-exclusive lane after forming platoons?
  3. There is a error when I am running configuration. Do you have any idea? It looks like the picture attached. screen shot 2018-04-24 at 00 47 01

Thank you!

xwenarthur commented 6 years ago

Another question: Can I set the departure lane of platoon or flow to be "allowed", "free" and so on like that in SUMO? Because I found in VENTOS manual, the type of departLane attribute is only set to be int. But in SUMO it can be int or string.

ManiAm commented 6 years ago

Can I set the departure lane of platoon or flow to be "allowed", "free" and so on

It is doable for individual vehicles, but unfortunately it is not possible for platoon insertion (at the current version).

ManiAm commented 6 years ago

There is a error when I am running configuration. Do you have any idea? It looks like the picture attached.

As the error says, you have two or more nodes in the addNode.xml file with identical names. The id assigned to each node should be unique.

ManiAm commented 6 years ago

How should I insert some platoon-enabled vehicles which drive on some lanes and then switch to one platoon-exclusive lane after forming platoons?

Platoons that can switch lanes are only possible when pltMgmtProt is true. I have not tested changing lanes in platoons extensively though!

xwenarthur commented 6 years ago

Can the cacc vehicles form platoons by themselves? If not, in order to insert massive platoons, do I have to do it one by one? Or is there any approach which can let me do batch import?

xwenarthur commented 6 years ago

When I run the simulation, I got some warnings like the figure. And the cacc vehicles stops at the start point of the segment. Does that mean the cacc vehicles can only be inserted through vehicle_platoon?

screen shot 2018-04-26 at 13 35 18
ManiAm commented 6 years ago

When I run the simulation, I got some warnings

The CACC vehicle must be part of a platoon. This is because the CACC car-following controller needs some parameters from nearby vehicles (front, back or more depending on the controller type). The warning tells you that the CACC vehicle is not part of any platoons and does not know how to get the parameters. So it sets the vehicle's speed to zero.

ManiAm commented 6 years ago

Can the cacc vehicles form platoons by themselves?

if pltMgmtProt=false then the platoon is fixed in size and it can not perform any maneuvers. But if pltMgmtProt=true then CACC vehicles in a platoon can perform maneuvers such as joining to the front platoon or split.

in order to insert massive platoons, do I have to do it one by one? Or is there any approach which can let me do batch import?

What do you mean by a massive platoon? do you mean a platoon with a large size? If pltMgmtProt=false then you can insert an arbitrary size platoon by changing the size parameter. But you have to make sure that there is enough space on a lane for the platoon to be inserted. If pltMgmtProt=true then you can change the platoon size during simulation. Check '4.3.1 Changing Platoon Optimal size' on page 92.

xwenarthur commented 6 years ago

I mean if I can insert many platoons once via VENTOS. For example, if I need to insert 100 platoons, is there any approach that could allow me to do it like inserting vehicle flows? Do you have any idea?

Thank you!

ManiAm commented 6 years ago

Unfortunately you can't inserts platoon flows right now. I will add it into the feature request.

xwenarthur commented 6 years ago

But there is only one month left for me :(. So could you please give me some advice on how to implement that feature if I need to insert many platoons like inserting traffic flows?

Thank you sincerely! :)

ManiAm commented 6 years ago

So could you please give me some advice on how to implement that feature if I need to insert many platoons like inserting traffic flows?

The code should be added into the addNode file. Unfortunately it is not a one, two, three step that I can describe here and I don't have enough free time slots these days to work on it.

xwenarthur commented 6 years ago

Ok... So is it possible now to insert platoons whose departure time follows certain distribution like poisson, uniform or something?

Thank you!

ManiAm commented 6 years ago

you can get idea from the vehicle flow in the addNode file.

xwenarthur commented 6 years ago

I got a problem when setting the departure lane of vehicle flow to be "best". Please see the attached figure.

screen shot 2018-05-01 at 22 02 34
ManiAm commented 6 years ago

you should use the equivalent negative value for those not the string literal. This is similar to section '3.4 Adding Motor-vehicles and Bikes' of the manual on page 66.

xwenarthur commented 6 years ago

Hi Mani,

Could you give me some advice on how to increase the simulation speed. It may take me up to half an hour if I want to run a 3600-second simulation.

Thank you!

ManiAm commented 6 years ago
  1. Use sumo (instead of sumo-gui)

Network.TraCI.SUMOapplication = "sumo"

  1. Run your simulation in the command-line mode (cmdenv) using the run configuration.

2018-05-16_13-22-17

  1. set the emulation to false. This is not stable and you might not get accurate results. If you experience unusual results, set it back to true.

Network.V[*].nic.phy80211p.emulationActive = false

xwenarthur commented 6 years ago

HI Mani!

I set the departure lane of a platoon to be "-5" which means "the best". But I got a problem like this:

screen shot 2018-05-16 at 15 45 36

My code looks like this:

screen shot 2018-05-16 at 15 47 55

Any thoughts?

Thank you!

ManiAm commented 6 years ago

only vehicle and vehicle flow support minus values (free, best, etc.). For platoons, you need to use a non-negative value (>= 0). In other words, you should specify the exact lane (>= 0) that the platoon is going to be inserted.

xwenarthur commented 6 years ago
  1. Can I insert a platoon which isn't static at first?

  2. I set: Network.TraCI.SUMOapplication = "sumo" and use command line mode. But when running the simulation, the sumo-guy still shows up. :( What's wrong?

Thank you!!!