When i do catkin_make i have this errors. But when i add include <numeric>
and include <vector>
i have the same problem.
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:1:0:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:47:101: error: ‘std::vector’ has not been declared
bool read_obj_detection_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &strings);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:47:107: error: expected ‘,’ or ‘...’ before ‘<’ token
bool read_obj_detection_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &strings);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:49:102: error: ‘std::vector’ has not been declared
bool read_obj_detection2_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &strings);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:49:108: error: expected ‘,’ or ‘...’ before ‘<’ token
bool read_obj_detection2_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &strings);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:52:52: error: ‘std::vector’ has not been declared
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx, int top_k);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:52:58: error: expected ‘,’ or ‘...’ before ‘<’ token
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx, int top_k);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:53:52: error: ‘std::vector’ has not been declared
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:53:58: error: expected ‘,’ or ‘...’ before ‘<’ token
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:60:30: error: ‘vector’ in namespace ‘std’ does not name a template type
void print_vector(const std::vector &vec);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:60:36: error: expected ‘,’ or ‘...’ before ‘<’ token
void print_vector(const std::vector &vec);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:64:51: error: ‘std::vector’ has not been declared
void linespace(T starting, T ending, T step, std::vector &res);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:64:57: error: expected ‘,’ or ‘...’ before ‘<’ token
void linespace(T starting, T ending, T step, std::vector &res);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:236:101: error: ‘std::vector’ has not been declared
bool read_obj_detection_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &all_strings)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:236:107: error: expected ‘,’ or ‘...’ before ‘<’ token
bool read_obj_detection_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &all_strings)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In function ‘bool read_obj_detection_txt(std::__cxx11::string, Eigen::MatrixXd&, int)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:238:37: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(const string&)’
if (!std::ifstream(txt_file_name))
^
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:9:0:
/usr/include/c++/5/fstream:495:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/5/fstream:495:7: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const char*’
/usr/include/c++/5/fstream:481:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/5/fstream:481:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/5/fstream:455:11: note: candidate: std::basic_ifstream::basic_ifstream(const std::basic_ifstream&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/5/fstream:455:11: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const std::basic_ifstream&’
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:243:5: error: ‘all_strings’ was not declared in this scope
all_strings.clear();
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: At global scope:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:274:102: error: ‘std::vector’ has not been declared
bool read_obj_detection2_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &all_strings)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:274:108: error: expected ‘,’ or ‘...’ before ‘<’ token
bool read_obj_detection2_txt(const std::string txt_file_name, Eigen::MatrixXd &read_number_mat, std::vectorstd::string &all_strings)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In function ‘bool read_obj_detection2_txt(std::__cxx11::string, Eigen::MatrixXd&, int)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:276:37: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(const string&)’
if (!std::ifstream(txt_file_name))
^
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:9:0:
/usr/include/c++/5/fstream:495:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/5/fstream:495:7: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const char*’
/usr/include/c++/5/fstream:481:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/5/fstream:481:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/5/fstream:455:11: note: candidate: std::basic_ifstream::basic_ifstream(const std::basic_ifstream&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/5/fstream:455:11: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const std::basic_ifstream&’
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:281:5: error: ‘all_strings’ was not declared in this scope
all_strings.clear();
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: At global scope:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:316:52: error: ‘std::vector’ has not been declared
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx, int top_k)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:316:58: error: expected ‘,’ or ‘...’ before ‘<’ token
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx, int top_k)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In function ‘void sort_indexes(const VectorXd&, int)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:318:23: error: ‘idx’ was not declared in this scope
std::partial_sort(idx.begin(), idx.begin() + top_k, idx.end(), [&vec](int i1, int i2) { return vec(i1) < vec(i2); });
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:318:50: error: ‘top_k’ was not declared in this scope
std::partial_sort(idx.begin(), idx.begin() + top_k, idx.end(), [&vec](int i1, int i2) { return vec(i1) < vec(i2); });
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:318:119: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
std::partial_sort(idx.begin(), idx.begin() + top_k, idx.end(), [&vec](int i1, int i2) { return vec(i1) < vec(i2); });
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: At global scope:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:321:52: error: ‘std::vector’ has not been declared
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:321:58: error: expected ‘,’ or ‘...’ before ‘<’ token
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In function ‘void sort_indexes(const VectorXd&, int)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:321:6: error: redefinition of ‘void sort_indexes(const VectorXd&, int)’
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:316:6: note: ‘void sort_indexes(const VectorXd&, int)’ previously defined here
void sort_indexes(const Eigen::VectorXd &vec, std::vector &idx, int top_k)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:323:10: error: ‘idx’ was not declared in this scope
sort(idx.begin(), idx.end(), [&vec](int i1, int i2) { return vec(i1) < vec(i2); });
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:323:85: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
sort(idx.begin(), idx.end(), [&vec](int i1, int i2) { return vec(i1) < vec(i2); });
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:323:86: error: ‘sort’ was not declared in this scope
sort(idx.begin(), idx.end(), [&vec](int i1, int i2) { return vec(i1) < vec(i2); });
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:323:86: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from /usr/local/include/eigen3/Eigen/Core:269,
from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/matrix_utils.h:4,
from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:1:
/usr/include/c++/5/bits/stl_algo.h:4718:5: note: ‘std::sort’
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: At global scope:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:339:30: error: ‘vector’ in namespace ‘std’ does not name a template type
void print_vector(const std::vector &vec)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:339:36: error: expected ‘,’ or ‘...’ before ‘<’ token
void print_vector(const std::vector &vec)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In function ‘void print_vector(int)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:341:28: error: ‘vec’ was not declared in this scope
for (size_t i = 0; i < vec.size(); i++)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: At global scope:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:345:39: error: ‘vector’ in namespace ‘std’ does not name a template type
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:345:45: error: expected ‘,’ or ‘...’ before ‘<’ token
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:345:15: error: template-id ‘print_vector<>’ for ‘void print_vector(int)’ does not match any template declaration
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:346:39: error: ‘vector’ in namespace ‘std’ does not name a template type
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:346:45: error: expected ‘,’ or ‘...’ before ‘<’ token
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:346:15: error: template-id ‘print_vector<>’ for ‘void print_vector(int)’ does not match any template declaration
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:347:39: error: ‘vector’ in namespace ‘std’ does not name a template type
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:347:45: error: expected ‘,’ or ‘...’ before ‘<’ token
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:347:15: error: template-id ‘print_vector<>’ for ‘void print_vector(int)’ does not match any template declaration
template void print_vector(const std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:350:51: error: ‘std::vector’ has not been declared
void linespace(T starting, T ending, T step, std::vector &res)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:350:57: error: expected ‘,’ or ‘...’ before ‘<’ token
void linespace(T starting, T ending, T step, std::vector &res)
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In function ‘void linespace(T, T, T, int)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:352:5: error: ‘res’ was not declared in this scope
res.reserve((ending - starting) / step + 2);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: At global scope:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:364:45: error: ‘std::vector’ has not been declared
template void linespace(int, int, int, std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:364:51: error: expected ‘,’ or ‘...’ before ‘<’ token
template void linespace(int, int, int, std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:365:54: error: ‘std::vector’ has not been declared
template void linespace(double, double, double, std::vector &);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:365:60: error: expected ‘,’ or ‘...’ before ‘<’ token
template void linespace(double, double, double, std::vector &);
^
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/object_3d_util.h:12:0,
from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/object_3d_util.cpp:1:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:65:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_plot_detail_images = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:66:40: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_plot_final_images = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:67:40: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_save_final_images = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:69:28: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool print_details = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:72:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool consider_config_1 = true; // false true
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:73:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool consider_config_2 = true;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:74:44: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_sample_cam_roll_pitch = false; // sample camera roll pitch in case don't have good camera pose
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:75:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_sample_bbox_height = false; // sample object height as raw detection might not be accurate
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:77:28: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
int max_cuboid_num = 1; //final return best N cuboids
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:78:35: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
double nominal_skew_ratio = 1; // normally this 1, unless there is priors
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:79:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
double max_cut_skew = 3;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In instantiation of ‘bool read_all_number_txt(std::__cxx11::string, Eigen::Matrix<LhsScalar, -1, -1, 0>&) [with T = double; std::__cxx11::string = std::__cxx11::basic_string]’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:233:64: required from here
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:199:5: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(const string&)’
if (!std::ifstream(txt_file_name))
^
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:9:0:
/usr/include/c++/5/fstream:495:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/5/fstream:495:7: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const char*’
/usr/include/c++/5/fstream:481:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/5/fstream:481:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/5/fstream:455:11: note: candidate: std::basic_ifstream::basic_ifstream(const std::basic_ifstream&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/5/fstream:455:11: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const std::basic_ifstream&’
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp: In instantiation of ‘bool read_all_number_txt(std::__cxx11::string, Eigen::Matrix<LhsScalar, -1, -1, 0>&) [with T = int; std::__cxx11::string = std::__cxx11::basic_string]’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:234:64: required from here
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:199:5: error: no matching function for call to ‘std::basic_ifstream::basic_ifstream(const string&)’
if (!std::ifstream(txt_file_name))
^
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/matrix_utils.cpp:9:0:
/usr/include/c++/5/fstream:495:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits; std::ios_base::openmode = std::_Ios_Openmode]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
/usr/include/c++/5/fstream:495:7: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const char*’
/usr/include/c++/5/fstream:481:7: note: candidate: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char; _Traits = std::char_traits]
basic_ifstream() : __istream_type(), _M_filebuf()
^
/usr/include/c++/5/fstream:481:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/5/fstream:455:11: note: candidate: std::basic_ifstream::basic_ifstream(const std::basic_ifstream&)
class basic_ifstream : public basic_istream<_CharT, _Traits>
^
/usr/include/c++/5/fstream:455:11: note: no known conversion for argument 1 from ‘const string {aka const std::__cxx11::basic_string}’ to ‘const std::basic_ifstream&’
CMakeFiles/detect_3d_cuboid.dir/build.make:110: recipe for target 'CMakeFiles/detect_3d_cuboid.dir/src/matrix_utils.cpp.o' failed
make[2]: *** [CMakeFiles/detect_3d_cuboid.dir/src/matrix_utils.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/object_3d_util.cpp: In function ‘void fuse_normalize_scores_v2(const VectorXd&, const VectorXd&, Eigen::VectorXd&, std::vector&, double, bool)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/object_3d_util.cpp:503:9: error: ‘iota’ is not a member of ‘std’
std::iota(dist_sorted_inds.begin(), dist_sorted_inds.end(), 0);
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/object_3d_util.cpp:529:9: error: ‘iota’ is not a member of ‘std’
std::iota(final_keep_inds.begin(), final_keep_inds.end(), 0);
^
In file included from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/object_3d_util.h:12:0,
from /home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/box_proposal_detail.cpp:29:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:65:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_plot_detail_images = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:66:40: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_plot_final_images = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:67:40: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_save_final_images = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:69:28: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool print_details = false;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:72:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool consider_config_1 = true; // false true
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:73:32: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool consider_config_2 = true;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:74:44: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_sample_cam_roll_pitch = false; // sample camera roll pitch i
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:75:41: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
bool whether_sample_bbox_height = false; // sample object height as ra
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:77:28: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
int max_cuboid_num = 1; //final return best N cuboids
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:78:35: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
double nominal_skew_ratio = 1; // normally this 1, unless there is priors
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/include/detect_3d_cuboid/detect_3d_cuboid.h:79:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
double max_cut_skew = 3;
^
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/box_proposal_detail.cpp: In member function ‘void detect_3d_cuboid::detect_cuboid(const cv::Mat&, const Matrix4d&, const MatrixXd&, Eigen::MatrixXd, std::vector<std::vector<cuboid*> >&)’:
/home/valeriia/cubeslam_ws/src/cube_slam/detect_3d_cuboid/src/box_proposal_detail.cpp:531:55: error: ‘iota’ was not declared in this scope
iota(sort_idx_small.begin(), sort_idx_small.end(), 0);
^
CMakeFiles/detect_3d_cuboid.dir/build.make:86: recipe for target 'CMakeFiles/detect_3d_cuboid.dir/src/object_3d_util.cpp.o' failed
make[2]: *** [CMakeFiles/detect_3d_cuboid.dir/src/object_3d_util.cpp.o] Error 1
CMakeFiles/detect_3d_cuboid.dir/build.make:62: recipe for target 'CMakeFiles/detect_3d_cuboid.dir/src/box_proposal_detail.cpp.o' failed
make[2]: *** [CMakeFiles/detect_3d_cuboid.dir/src/box_proposal_detail.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/detect_3d_cuboid.dir/all' failed
make[1]: *** [CMakeFiles/detect_3d_cuboid.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'detect_3d_cuboid':
Command '['/home/valeriia/cubeslam_ws/devel_isolated/tictoc_profiler/env.sh', 'make', '-j6', '-l6']' returned non-zero exit status 2
Reproduce this error by running:
==> cd /home/valeriia/cubeslam_ws/build_isolated/detect_3d_cuboid && /home/valeriia/cubeslam_ws/devel_isolated/tictoc_profiler/env.sh make -j6 -l6
Command failed, exiting.