zhaokun506 / parking

自动泊车算法 混合A* 障碍物约束转化为行车走廊约束的优化与 apollo TDR-OBCA的比较
MIT License
95 stars 42 forks source link

Lots of errors #2

Open builderQZC opened 1 year ago

builderQZC commented 1 year ago

当我make的时候,出现了很多以下的错误,麻烦问下,怎么解决这些问题呢,感觉是程序变量的问题: make [ 4%] Built target configs [ 22%] Built target common_math [ 24%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/distance_approach_apollo_problem.cc.o [ 26%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/distance_approach_ipopt_corridor_interface.cc.o /home/yahboom/parking/parking/trajectory_smoother/distance_approach_ipopt_corridor_interface.cc: In member function ‘virtual bool DistanceApproachIPOPTCorridorInterface::get_nlp_info(int&, int&, int&, int&, Ipopt::TNLP::IndexStyleEnum&)’: /home/yahboom/parking/parking/trajectory_smoother/distance_approach_ipopt_corridor_interface.cc:113:7: warning: unused variable ‘m3’ [-Wunused-variable] int m3 = 0; ^~ /home/yahboom/parking/parking/trajectory_smoother/distance_approach_ipopt_corridor_interface.cc: In member function ‘virtual void DistanceApproachIPOPTCorridorInterface::finalize_solution(Ipopt::SolverReturn, int, const double, const double, const double, int, const double, const double, double, const Ipopt::IpoptData, Ipopt::IpoptCalculatedQuantities)’: /home/yahboom/parking/parking/trajectory_smoother/distance_approach_ipopt_corridor_interface.cc:1273:7: warning: unused variable ‘dual_l_index’ [-Wunused-variable] int dual_l_index = l_startindex; ^~~~ /home/yahboom/parking/parking/trajectory_smoother/distance_approach_ipopt_corridor_interface.cc:1274:7: warning: unused variable ‘dual_n_index’ [-Wunused-variable] int dual_n_index = n_startindex; ^~~~ [ 28%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/distance_approach_ipopt_interface.cc.o [ 31%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/distance_approach_ipopt_relax_end_interface.cc.o [ 33%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/distance_approach_ipopt_relax_end_slack_interface.cc.o [ 35%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/distance_approach_problem.cc.o [ 37%] Building CXX object trajectory_smoother/CMakeFiles/trajectory_smoother.dir/dual_variable_warm_start_osqp_interface.cc.o In file included from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21:0: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:31: error: ‘c_float’ was not declared in this scope void assemble_P(std::vector P_data, std::vector P_indices, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:31: note: suggested alternative: ‘float’ void assemble_P(std::vector P_data, std::vector P_indices, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:38: error: template argument 1 is invalid void assemble_P(std::vector P_data, std::vector P_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:38: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:61: error: ‘c_int’ was not declared in this scope void assemble_P(std::vector P_data, std::vector P_indices, ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:61: note: suggested alternative: ‘u_int’ void assemble_P(std::vector P_data, std::vector P_indices, ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:66: error: template argument 1 is invalid void assemble_P(std::vector P_data, std::vector P_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:49:66: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:50:31: error: ‘c_int’ was not declared in this scope std::vector P_indptr); ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:50:31: note: suggested alternative: ‘u_int’ std::vector P_indptr); ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:50:36: error: template argument 1 is invalid std::vector P_indptr); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:50:36: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:52:40: error: ‘c_float’ was not declared in this scope void assemble_constraint(std::vector A_data, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:52:40: note: suggested alternative: ‘float’ void assemble_constraint(std::vector A_data, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:52:47: error: template argument 1 is invalid void assemble_constraint(std::vector A_data, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:52:47: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:53:40: error: ‘c_int’ was not declared in this scope std::vector A_indices, ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:53:40: note: suggested alternative: ‘u_int’ std::vector A_indices, ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:53:45: error: template argument 1 is invalid std::vector A_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:53:45: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:54:40: error: ‘c_int’ was not declared in this scope std::vector A_indptr); ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:54:40: note: suggested alternative: ‘u_int’ std::vector A_indptr); ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:54:45: error: template argument 1 is invalid std::vector *A_indptr); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:54:45: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:56:62: error: ‘c_float’ was not declared in this scope void assembleA(const int r, const int c, const std::vector &P_data, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:56:62: note: suggested alternative: ‘float’ void assembleA(const int r, const int c, const std::vector &P_data, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:56:69: error: template argument 1 is invalid void assembleA(const int r, const int c, const std::vector &P_data, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:56:69: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:57:36: error: ‘c_int’ was not declared in this scope const std::vector &P_indices, ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:57:36: note: suggested alternative: ‘u_int’ const std::vector &P_indices, ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:57:41: error: template argument 1 is invalid const std::vector &P_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:57:41: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:58:36: error: ‘c_int’ was not declared in this scope const std::vector &P_indptr); ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:58:36: note: suggested alternative: ‘u_int’ const std::vector &P_indptr); ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:58:41: error: template argument 1 is invalid const std::vector &P_indptr); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:58:41: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:70:62: error: ‘c_float’ was not declared in this scope void printMatrix(const int r, const int c, const std::vector &P_data, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:70:62: note: suggested alternative: ‘float’ void printMatrix(const int r, const int c, const std::vector &P_data, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:70:69: error: template argument 1 is invalid void printMatrix(const int r, const int c, const std::vector &P_data, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:70:69: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:71:36: error: ‘c_int’ was not declared in this scope const std::vector &P_indices, ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:71:36: note: suggested alternative: ‘u_int’ const std::vector &P_indices, ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:71:41: error: template argument 1 is invalid const std::vector &P_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:71:41: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:72:36: error: ‘c_int’ was not declared in this scope const std::vector &P_indptr) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:72:36: note: suggested alternative: ‘u_int’ const std::vector &P_indptr) { ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:72:41: error: template argument 1 is invalid const std::vector &P_indptr) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:72:41: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: In function ‘void printMatrix(int, int, const int&, const int&, const int&)’: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:75:35: error: request for member ‘size’ in ‘P_indptr’, which is of non-class type ‘const int’ for (size_t i = 0; i < P_indptr.size() - 1; ++i) { ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:76:19: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript if (P_indptr[i] < 0 || P_indptr[i] >= static_cast(P_indices.size())) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:76:38: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript if (P_indptr[i] < 0 || P_indptr[i] >= static_cast(P_indices.size())) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:76:70: error: request for member ‘size’ in ‘P_indices’, which is of non-class type ‘const int’ if (P_indptr[i] < 0 || P_indptr[i] >= static_cast(P_indices.size())) { ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:80:31: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript for (auto idx = P_indptr[i]; idx < P_indptr[i + 1]; ++idx) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:80:54: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript for (auto idx = P_indptr[i]; idx < P_indptr[i + 1]; ++idx) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: At global scope: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:96:49: error: ‘c_float’ was not declared in this scope const int r, const int c, const std::vector &P_data, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:96:49: note: suggested alternative: ‘float’ const int r, const int c, const std::vector &P_data, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:96:56: error: template argument 1 is invalid const int r, const int c, const std::vector &P_data, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:96:56: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:23: error: ‘c_int’ was not declared in this scope const std::vector &P_indices, const std::vector &P_indptr) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:23: note: suggested alternative: ‘u_int’ const std::vector &P_indices, const std::vector &P_indptr) { ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:28: error: template argument 1 is invalid const std::vector &P_indices, const std::vector &P_indptr) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:28: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:60: error: ‘c_int’ was not declared in this scope const std::vector &P_indices, const std::vector &P_indptr) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:60: note: suggested alternative: ‘u_int’ const std::vector &P_indices, const std::vector &P_indptr) { ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:65: error: template argument 1 is invalid const std::vector &P_indices, const std::vector &P_indptr) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:97:65: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: In member function ‘void DualVariableWarmStartOSQPInterface::assembleA(int, int, const int&, const int&, const int&)’: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:100:35: error: request for member ‘size’ in ‘P_indptr’, which is of non-class type ‘const int’ for (size_t i = 0; i < P_indptr.size() - 1; ++i) { ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:101:19: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript if (P_indptr[i] < 0 || P_indptr[i] >= static_cast(P_indices.size())) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:101:38: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript if (P_indptr[i] < 0 || P_indptr[i] >= static_cast(P_indices.size())) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:101:70: error: request for member ‘size’ in ‘P_indices’, which is of non-class type ‘const int’ if (P_indptr[i] < 0 || P_indptr[i] >= static_cast(P_indices.size())) { ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:105:31: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript for (auto idx = P_indptr[i]; idx < P_indptr[i + 1]; ++idx) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:105:54: error: invalid types ‘const int[size_t {aka long unsigned int}]’ for array subscript for (auto idx = P_indptr[i]; idx < P_indptr[i + 1]; ++idx) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: In member function ‘bool DualVariableWarmStartOSQPInterface::optimize()’: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:122:15: error: ‘c_float’ was not declared in this scope std::vector P_data; ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:122:15: note: suggested alternative: ‘float’ std::vector P_data; ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:122:22: error: template argument 1 is invalid std::vector P_data; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:122:22: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:123:15: error: ‘c_int’ was not declared in this scope std::vector P_indices; ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:123:15: note: suggested alternative: ‘u_int’ std::vector P_indices; ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:123:20: error: template argument 1 is invalid std::vector P_indices; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:123:20: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:124:20: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’ std::vector P_indptr; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:124:20: note: expected a type, got ‘c_int’ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:124:20: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:133:11: error: expected ‘;’ before ‘q’ c_float q[kNumParam]; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:135:5: error: ‘q’ was not declared in this scope q[i] = 0.0; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:139:22: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’ std::vector A_data; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:139:22: note: expected a type, got ‘c_float’ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:139:22: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:140:20: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’ std::vector A_indices; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:140:20: note: expected a type, got ‘c_int’ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:140:20: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:141:20: error: type/value mismatch at argument 1 in template parameter list for ‘template<class _Tp, class _Alloc> class std::vector’ std::vector A_indptr; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:141:20: note: expected a type, got ‘c_int’ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:141:20: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:150:11: error: expected ‘;’ before ‘lb’ c_float lb[kNumConst]; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:151:11: error: expected ‘;’ before ‘ub’ c_float ub[kNumConst]; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:153:5: error: ‘lb’ was not declared in this scope lb[i] = 0.0; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:159:7: error: ‘ub’ was not declared in this scope ub[i] = 0.0; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:161:7: error: ‘ub’ was not declared in this scope ub[i] = 2e19; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:167:40: error: ‘c_malloc’ was not declared in this scope reinterpret_cast<OSQPSettings >(c_malloc(sizeof(OSQPSettings))); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:167:40: note: suggested alternative: ‘malloc’ reinterpret_cast<OSQPSettings >(c_malloc(sizeof(OSQPSettings))); ^~~~ malloc /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:175:13: error: ‘struct OSQPSettings’ has no member named ‘polish’; did you mean ‘polishing’? settings->polish = osqpconfig.polish; ^~ polishing /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:3: error: ‘OSQPData’ was not declared in this scope OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:3: note: suggested alternative: ‘OSQPInt’ OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^~~~ OSQPInt /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:13: error: ‘data’ was not declared in this scope OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:13: note: suggested alternative: ‘atan’ OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^~~~ atan /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:37: error: ‘OSQPData’ does not name a type; did you mean ‘OSQPInt’? OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^~~~ OSQPInt /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:46: error: expected ‘>’ before ‘’ token OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:46: error: expected ‘(’ before ‘’ token /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:47: error: expected primary-expression before ‘>’ token OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:179:76: error: expected ‘)’ before ‘;’ token OSQPData data = reinterpret_cast<OSQPData >(c_malloc(sizeof(OSQPData))); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:193:55: error: request for member ‘size’ in ‘P_data’, which is of non-class type ‘int’ csc_to_triu(csc_matrix(data->n, data->n, P_data.size(), P_data.data(), ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:193:70: error: request for member ‘data’ in ‘P_data’, which is of non-class type ‘int’ csc_to_triu(csc_matrix(data->n, data->n, P_data.size(), P_data.data(), ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:194:40: error: request for member ‘data’ in ‘P_indices’, which is of non-class type ‘int’ P_indices.data(), P_indptr.data())); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:194:57: error: request for member ‘data’ in ‘P_indptr’, which is of non-class type ‘int’ P_indices.data(), P_indptr.data())); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:193:19: error: ‘csc_matrix’ was not declared in this scope csc_to_triu(csc_matrix(data->n, data->n, P_data.size(), P_data.data(), ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:193:7: error: ‘csc_to_triu’ was not declared in this scope csc_to_triu(csc_matrix(data->n, data->n, P_data.size(), P_data.data(), ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:195:13: error: ‘q’ was not declared in this scope data->q = q; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:196:49: error: request for member ‘size’ in ‘A_data’, which is of non-class type ‘int’ data->A = csc_matrix(data->m, data->n, A_data.size(), A_data.data(), ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:196:64: error: request for member ‘data’ in ‘A_data’, which is of non-class type ‘int’ data->A = csc_matrix(data->m, data->n, A_data.size(), A_data.data(), ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:197:34: error: request for member ‘data’ in ‘A_indices’, which is of non-class type ‘int’ A_indices.data(), A_indptr.data()); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:197:51: error: request for member ‘data’ in ‘A_indptr’, which is of non-class type ‘int’ A_indices.data(), A_indptr.data()); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:198:13: error: ‘lb’ was not declared in this scope data->l = lb; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:199:13: error: ‘ub’ was not declared in this scope data->u = ub; ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:207:18: error: cannot convert ‘OSQPWorkspace* {aka OSQPWorkspace}’ to ‘OSQPSolver’ for argument ‘1’ to ‘OSQPInt osqp_solve(OSQPSolver)’ osqp_solve(work); ^ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: class type ‘OSQPWorkspace {aka OSQPWorkspace}’ is incomplete typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:210:11: error: invalid use of incomplete type ‘OSQPWorkspace {aka struct OSQPWorkspace}’ if (work->info->status_val != 1 && work->info->status_val != 2) { ^~ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: forward declaration of ‘OSQPWorkspace {aka struct OSQPWorkspace}’ typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:210:42: error: invalid use of incomplete type ‘OSQPWorkspace {aka struct OSQPWorkspace}’ if (work->info->status_val != 1 && work->info->status_val != 2) { ^~ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: forward declaration of ‘OSQPWorkspace {aka struct OSQPWorkspace}’ typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:212:43: error: invalid use of incomplete type ‘OSQPWorkspace {aka struct OSQPWorkspace}’ << "return status: " << work->info->status; ^~ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: forward declaration of ‘OSQPWorkspace {aka struct OSQPWorkspace}’ typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:222:30: error: invalid use of incomplete type ‘OSQPWorkspace {aka struct OSQPWorkspace}’ l_warmup(j, i) = work->solution->x[variable_index]; ^~ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: forward declaration of ‘OSQPWorkspace {aka struct OSQPWorkspace}’ typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:230:30: error: invalid use of incomplete type ‘OSQPWorkspace {aka struct OSQPWorkspace}’ n_warmup(j, i) = work->solution->x[variable_index]; ^~ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: forward declaration of ‘OSQPWorkspace {aka struct OSQPWorkspace}’ typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqpinterface.cc:235:22: error: invalid use of incomplete type ‘OSQPWorkspace {aka struct OSQPWorkspace}’ succ = succ & (work->info->obj_val <= 1.0); ^~ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: forward declaration of ‘OSQPWorkspace {aka struct OSQPWorkspace}’ typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:238:20: error: cannot convert ‘OSQPWorkspace {aka OSQPWorkspace_}’ to ‘OSQPSolver’ for argument ‘1’ to ‘OSQPInt osqp_cleanup(OSQPSolver)’ osqp_cleanup(work); ^ In file included from /usr/local/include/osqp/osqp.h:8:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:30, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/local/include/osqp/osqp_apitypes.h:130:16: note: class type ‘OSQPWorkspace {aka OSQPWorkspace}’ is incomplete typedef struct OSQPWorkspace_ OSQPWorkspace; ^~~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:239:3: error: ‘c_free’ was not declared in this scope c_free(data->A); ^~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:239:3: note: suggested alternative: ‘free’ c_free(data->A); ^~ free /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: At global scope: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:17: error: ‘c_float’ was not declared in this scope std::vector P_data, std::vector P_indices, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:17: note: suggested alternative: ‘float’ std::vector P_data, std::vector P_indices, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:24: error: template argument 1 is invalid std::vector P_data, std::vector P_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:24: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:47: error: ‘c_int’ was not declared in this scope std::vector P_data, std::vector P_indices, ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:47: note: suggested alternative: ‘u_int’ std::vector P_data, std::vector P_indices, ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:52: error: template argument 1 is invalid std::vector P_data, std::vector P_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:309:52: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:310:17: error: ‘c_int’ was not declared in this scope std::vector P_indptr) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:310:17: note: suggested alternative: ‘u_int’ std::vector P_indptr) { ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:310:22: error: template argument 1 is invalid std::vector P_indptr) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:310:22: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: In member function ‘void DualVariableWarmStartOSQPInterface::assemble_P(int, int, int)’: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:313:15: error: ‘c_float’ was not declared in this scope std::vector P_tmp; ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:313:15: note: suggested alternative: ‘float’ std::vector P_tmp; ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:313:22: error: template argument 1 is invalid std::vector P_tmp; ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:313:22: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:328:15: error: request for member ‘emplace_back’ in ‘P_tmp’, which is of non-class type ‘int’ P_tmp.emplace_back(Aj(r, c)); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:342:22: error: ‘begin’ was not declared in this scope for (auto item : P_tmp) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:342:22: note: suggested alternative: In file included from /usr/include/c++/7/vector:66:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:24, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/include/c++/7/bits/range_access.h:105:37: note: ‘std::begin’ template const _Tp begin(const valarray<_Tp>&); ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:342:22: error: ‘end’ was not declared in this scope for (auto item : P_tmp) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:342:22: note: suggested alternative: In file included from /usr/include/c++/7/vector:66:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:24, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /usr/include/c++/7/bits/range_access.h:107:37: note: ‘std::end’ template const _Tp end(const valarray<_Tp>&); ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:343:15: error: request for member ‘emplace_back’ in ‘ P_data’, which is of non-class type ‘int’ P_data->emplace_back(item); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:351:19: error: request for member ‘emplace_back’ in ‘ P_indptr’, which is of non-class type ‘int’ P_indptr->emplace_back(first_row_location); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:353:22: error: request for member ‘emplace_back’ in ‘ P_indices’, which is of non-class type ‘int’ P_indices->emplace_back(r + l_index); ^~~~ In file included from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:29:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:364:22: error: request for member ‘size’ in ‘ P_indptr’, which is of non-class type ‘int’ CHECK_EQ(P_indptr->size(), static_cast(lambdahorizon)); // ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:368:15: error: request for member ‘emplace_back’ in ‘ P_indptr’, which is of non-class type ‘int’ P_indptr->emplace_back(first_row_location); ^~~~ In file included from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:29:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:371:20: error: request for member ‘size’ in ‘ P_data’, which is of non-class type ‘int’ CHECK_EQ(P_data->size(), P_indices->size()); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:371:39: error: request for member ‘size’ in ‘ P_indices’, which is of non-class type ‘int’ CHECK_EQ(P_data->size(), P_indices->size()); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:372:22: error: request for member ‘size’ in ‘ P_indptr’, which is of non-class type ‘int’ CHECK_EQ(P_indptr->size(), static_cast(num_ofvariables) + 1); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: At global scope: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:17: error: ‘c_float’ was not declared in this scope std::vector A_data, std::vector A_indices, ^~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:17: note: suggested alternative: ‘float’ std::vector A_data, std::vector A_indices, ^~~ float /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:24: error: template argument 1 is invalid std::vector A_data, std::vector A_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:24: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:47: error: ‘c_int’ was not declared in this scope std::vector A_data, std::vector A_indices, ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:47: note: suggested alternative: ‘u_int’ std::vector A_data, std::vector A_indices, ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:52: error: template argument 1 is invalid std::vector A_data, std::vector A_indices, ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:376:52: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:377:17: error: ‘c_int’ was not declared in this scope std::vector A_indptr) { ^~~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:377:17: note: suggested alternative: ‘u_int’ std::vector A_indptr) { ^~~~~ u_int /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:377:22: error: template argument 1 is invalid std::vector A_indptr) { ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:377:22: error: template argument 2 is invalid /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc: In member function ‘void DualVariableWarmStartOSQPInterface::assemble_constraint(int, int, int)’: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:418:17: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(r1_block(0, k)); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:419:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r1_index); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:421:17: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(r1_block(1, k)); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:422:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r1_index + 1); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:424:17: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(r2_block(0, k)); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:425:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r2_index); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:427:17: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(1.0); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:428:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r3_index); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:431:19: error: request for member ‘emplace_back’ in ‘ A_indptr’, which is of non-class type ‘int’ A_indptr->emplace_back(first_row_location); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:452:19: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(1.0); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:454:19: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(-1.0); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:456:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r1_index + k % 2); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:459:17: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplaceback(-g[k]); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:460:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r2_index); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:463:17: error: request for member ‘emplace_back’ in ‘ A_data’, which is of non-class type ‘int’ A_data->emplace_back(1.0); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:464:20: error: request for member ‘emplace_back’ in ‘ A_indices’, which is of non-class type ‘int’ A_indices->emplace_back(r4_index); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:468:19: error: request for member ‘emplace_back’ in ‘ A_indptr’, which is of non-class type ‘int’ A_indptr->emplace_back(first_row_location); ^~~~ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:478:13: error: request for member ‘emplace_back’ in ‘ A_indptr’, which is of non-class type ‘int’ A_indptr->emplace_back(first_row_location); ^~~~ In file included from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.h:29:0, from /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:21: /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:480:20: error: request for member ‘size’ in ‘ A_data’, which is of non-class type ‘int’ CHECK_EQ(A_data->size(), A_indices->size()); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:480:39: error: request for member ‘size’ in ‘ A_indices’, which is of non-class type ‘int’ CHECK_EQ(A_data->size(), A_indices->size()); ^ /home/yahboom/parking/parking/trajectory_smoother/dual_variable_warm_start_osqp_interface.cc:481:22: error: request for member ‘size’ in ‘ A_indptr’, which is of non-class type ‘int’ CHECK_EQ(A_indptr->size(), static_cast(num_ofvariables) + 1); ^ trajectory_smoother/CMakeFiles/trajectory_smoother.dir/build.make:173: recipe for target 'trajectory_smoother/CMakeFiles/trajectory_smoother.dir/dual_variable_warm_start_osqp_interface.cc.o' failed make[2]: [trajectory_smoother/CMakeFiles/trajectory_smoother.dir/dual_variable_warm_start_osqp_interface.cc.o] Error 1 CMakeFiles/Makefile2:514: recipe for target 'trajectory_smoother/CMakeFiles/trajectory_smoother.dir/all' failed make[1]: [trajectory_smoother/CMakeFiles/trajectory_smoother.dir/all] Error 2 Makefile:90: recipe for target 'all' failed make: *** [all] Error 2

Yangc6 commented 12 months ago

你解决了吗,我也遇到了同样的问题

builderQZC commented 12 months ago

没有解决,放弃这个repo了,换其他的跑了

------------------ 原始邮件 ------------------ 发件人: "zhaokun506/parking" @.>; 发送时间: 2023年12月5日(星期二) 下午2:52 @.>; @.**@.>; 主题: Re: [zhaokun506/parking] Lots of errors (Issue #2)

你解决了吗,我也遇到了同样的问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>