Plexe

The Platooning Extension for Veins.

Plexe API

The Plexe API is located on the Veins side and extends the TraCI methods that standard Veins provides to enable some specific platooning functionalities. The methods are defined and implemented in src/veins/modules/mobility/traci/TraCICommandInterface.*. API methods can be invoked using the traciVehicle interface pointer in the modules. You find the traciVehicle interface pointer already declared in most of the modules in src/veins/modules/application/platooning. To load the pointer on your own, declare the following variables

1 2
Veins::TraCIMobility *mobility; Veins::TraCICommandInterface::Vehicle *traciVehicle;

and set their values in the following way within the initialize method of your module

1 2
mobility = Veins::TraCIMobilityAccess().get(getParentModule()); traciVehicle = mobility->getVehicleCommandInterface();

Among other TraCI methods, in traciVehicle you find the following Plexe methods: