Skip to content
Snippets Groups Projects
PlatoonController.h 704 B
Newer Older
Hoop77's avatar
-
Hoop77 committed
//
// Created by philipp on 12.02.18.
//

#ifndef CAR_PLATOONCONTROLLER_H
#define CAR_PLATOONCONTROLLER_H

Franz Bethke's avatar
Franz Bethke committed
#include <functional>

#include "PlatoonProtocolLib/Vehicle.h"
#include "PC2CarLib/CommandReceiver.h"
#include "EgoMotion.h"

Hoop77's avatar
-
Hoop77 committed
namespace car
{

class PlatoonController
{
public:
Franz Bethke's avatar
Franz Bethke committed
    using Callback = std::function<void()>;
    
    PlatoonController(platoonProtocol::Vehicle::Ptr c2c,
                      pc2car::CommandReceiver::Ptr pc,
                      EgoMotion& egoMotion);
Franz Bethke's avatar
Franz Bethke committed
      
Hoop77's avatar
-  
Hoop77 committed
    void run();
    Callback cruiseControllerNotify;
Hoop77's avatar
-
Hoop77 committed

private:

    platoonProtocol::Vehicle::Ptr c2c;
    pc2car::CommandReceiver::Ptr pc;
    EgoMotion& egoMotion;

Hoop77's avatar
-
Hoop77 committed
};

}

#endif //CAR_PLATOONCONTROLLER_H