46 auto& obj = new_object->object_ptr;
47 if (obj->lidar_supplement.is_clustered) {
48 hull_.GetConvexHull(obj->lidar_supplement.cloud_world, &obj->polygon);
50 hull_.GetConvexHullWithoutGroundAndHead(
51 obj->lidar_supplement.cloud_world,
69 Eigen::Vector3f local_direction = obj->direction;
70 Eigen::Vector3d local_center = obj->center;
71 Eigen::Vector3f local_size = obj->size;
72 obj->direction = new_object->output_direction.cast<
float>();
75 new_object->center = obj->center;
76 new_object->size = obj->size.cast<
double>();
78 obj->center = local_center;
79 obj->size = local_size;
80 obj->direction = local_direction;
81 new_object->output_center = new_object->center;
82 new_object->output_direction = new_object->direction;
83 new_object->output_size = new_object->size;
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...