intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
431 stars 239 forks source link

update sumo relative path and sumo vehicle name in mininet wifi #424

Closed YichaoXu closed 1 year ago

YichaoXu commented 2 years ago

Hi,

I create a subclass of "sumo". There are some updates compared with its parent class:

We recently make certain optimisations about v2x on mininet-wifi. We will push these updates soon in there.

Best, Yichao

ramonfontes commented 2 years ago

This seems interesting. Thank you! :)

Just a question: What does vlc in sumo_vlc_ctl mean?

YichaoXu commented 2 years ago

This seems interesting. Thank you! :)

Just a question: What does vlc in sumo_vlc_ctl mean?

The vlc means the vehicle. I used the term because we are developing a v2x project (vehicle to thing).

YichaoXu commented 2 years ago

Hi,

I also add some more files there. I was wondering whether these functionalities blow are acceptable by Mininet-wifi?

Besides, we also implemented some methods to allow a car to send and receive packets by a specific network interface. However, I currently do not push them there, because I am not sure whether they are the expected functionalities for Mininet-wifi. If they are, please tell me and I update them in a new request.

Best, Yichao

ramonfontes commented 2 years ago

Yichao,

I also add some more files there. I was wondering whether these functionalities blow are acceptable by Mininet-wifi?

I was wondering if those new features aren't supported by /sumo/traci. I can use it to change the status of the cars, tls, etc.

YichaoXu commented 2 years ago

Yes, most functionalities wrap Traci methods, but they are more object-oriented. For example, if we need to change a car from lane 0 to lane 1, in Traci API, the function related is "traci.changeLane(car_id, lane_id, duration)”; in this one, we can create an instance scar for class SumoVehicle and use the property scar.lane = 1, which should be more understandable.

Besides, there also are additional ones for calculating the distance of two cars, or stoping the car etc.