报错:Is this a non-const reference? If so, make const or use a pointer: std::vector<float> &pinhole_obj_w_center_weight
解决:函数传入参数由
std::vector<float> &some_param,
改成
const std::vector<float> &some_param,
前面加const
传入参数为 结构体 / 常量,如果修改后传出,用指针形式;如果只传入不传出,用常量引用形式(const xxx &)