brianmc95 / OpenCV2X

OMNeT++ V2X simulation framework for ETSI ITS-G5
GNU General Public License v2.0
37 stars 15 forks source link

Can I use Traci to get vehicle information?Or how do you get vehicle information? #17

Open linlingege12 opened 3 years ago

linlingege12 commented 3 years ago

I want to get of the vehicle information like veins, but I got it wrong. Can I use Traci to get vehicle information?Or how do you get vehicle information?

brianmc95 commented 3 years ago

Hi @linlingege12,

You can get some limited vehicle information from the lteControlInformation which is attached with each message in simuLTE, this really only includes the position information for the sender. Otherwise accessing this information through Traci should be possible as well it just depends on the installation. OpenCV2X with Artery uses Artery for managing the traffic and as such you will need to work with the Artery framework to understand how it uses Traci and pull out the information you want, the Traci files here are found under src/traci. In the SimuLTE only version this is managed actually through veins as well so should function the same way as it does with veins though it uses VeinsInetMobility as opposed to the usual model it uses so it's possible that it works subtly differently to the usual veins version.

Hope this was some help but feel free to fire back if you have questions.