28 bool 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;
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);
bool LoadData(const std::string &file, std::vector< base::Object > *objects, const std::string &frame_id)
Definition: test_tools.h:28
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
ObjectType type
Definition: v2x_object.h:182
SensorType sensor_type
Definition: v2x_object.h:146
Definition: v2x_object.h:126
Eigen::Vector3d Vector3d
Definition: frame_transform.h:27
std::string frame_id
Definition: v2x_object.h:160
std::vector< float > sub_type_probs
Definition: v2x_object.h:192
void Set(Val value, Var variance)
Definition: v2x_object.h:77
Infod theta
Definition: v2x_object.h:170
std::vector< float > type_probs
Definition: v2x_object.h:188
Eigen::Matrix3d Matrix3d
Definition: base_map_fwd.h:33
ObjectSubType sub_type
Definition: v2x_object.h:190
Info3d size
Definition: v2x_object.h:178
Info3d position
Definition: v2x_object.h:166