28bool LoadData(
const std::string& file, std::vector<base::Object>* objects,
29 const std::string& frame_id) {
31 fin.open(file.c_str(), std::ios::in);
36 while (getline(fin, line)) {
37 std::istringstream iss(line);
38 float sub_type_probs, x, y, z, xx, xy, xz, yx, yy, yz, zx, zy, zz;
42 iss >> type >> sub_type >> sub_type_probs >> x >> y >> z >> xx >> xy >>
43 xz >> yx >> yy >> yz >> zx >> zy >> zz;
45 var << xx, xy, xz, yx, yy, yz, zx, zy, zz;
47 obj.
type = base::ObjectType::VEHICLE;
48 Eigen::Vector3d car_size, bus_size, van_size;
49 Eigen::Matrix3d id_var;
50 car_size << 4.2, 2.0, 1.8;
51 bus_size << 12, 2.2, 3;
52 van_size << 4.5, 2.1, 2;
53 id_var << 1, 0, 0, 0, 1, 0, 0, 0, 1;
56 obj.
sub_type = base::ObjectSubType::CAR;
60 obj.
sub_type = base::ObjectSubType::VAN;
64 obj.
sub_type = base::ObjectSubType::BUS;
70 obj.
sensor_type = base::SensorType::MONOCULAR_CAMERA;
76 objects->push_back(obj);