1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #ifndef DATA_MANAGER_H
- #define DATA_MANAGER_H
- #include <QtCore/qglobal.h>
- #include <stdarg.h>
- #include "time_manager.h"
- #if defined(DATAMANAGER_LIBRARY)
- # define DATAMANAGERSHARED_EXPORT Q_DECL_EXPORT
- #else
- # define DATAMANAGERSHARED_EXPORT Q_DECL_IMPORT
- #endif
- namespace iv {
- class DATAMANAGERSHARED_EXPORT DataManager
- {
- public:
- typedef iv::radar::radarobjectarray RadarDataType;
- typedef iv::lidar::objectarray LidarDataType;
- // typedef iv::vision::cameraobjectarray CameraDataType;
- typedef iv::vision::ObstacleInfo VisionDataType;
- typedef std::chrono::system_clock::time_point TimeType;
- // typedef std::function<void(RadarDataType&, LidarDataType&,CameraDataType&)> DataCallback;
- // typedef std::function<void(RadarDataType&,CameraDataType&)> RVCallback;
- typedef std::function<void(RadarDataType&, LidarDataType&,VisionDataType&)> DataCallback;
- typedef std::function<void(RadarDataType&,VisionDataType&)> RVCallback;
- public:
- // void init();
- void SetLidar(iv::lidar::objectarray& lidar_object_array);
- void SetRadar(iv::radar::radarobjectarray& radar_object_array);
- void SetCamera(iv::vision::ObstacleInfo& vision_object_array);
- void Ready();
- void SetDataCallback(DataCallback callback);
- void SetRVCallback(RVCallback rvcallback);
- private:
- std::shared_ptr<iv::TimeManager> data_manager_ptr_;
- std::shared_ptr<iv::TimeManager> rv_manager_ptr_;
- };
- }
- #endif // DATA_MANAGER_H
|