forked from shenlan2017/fusion-based-perception
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frame_build.h
28 lines (22 loc) · 933 Bytes
/
frame_build.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include <string>
#include <list>
#include <tuple>
#include "input_data_type.h"
#include <boost/filesystem.hpp>
#include "fusion/object.h"
namespace proto_input
{
enum FileTag
{
LOCATION,
CAMERA,
LIDAR,
RADAR
};
std::list<std::tuple<double, FileTag, std::string> > buildSensorInputSequence(boost::filesystem::path data_dir, const char* data_name, FileTag tag);
std::vector<std::tuple<double, FileTag, std::string> > frameTimeMatch(std::list<std::tuple<double, FileTag, std::string> >&& data, size_t type_num);
std::vector<std::tuple<double, FileTag, std::string> > mergeInputSequence(std::vector<std::list<std::tuple<double, FileTag, std::string> > >&& data);
kit::perception::fusion::LiDARObjectPtr makeLiDARObjectPtr(LidarObject raw_lo, double time);
kit::perception::fusion::CameraObjectPtr makeCameraObjectPtr(CameraObject raw_co, double time);
}