I am trying to build StellaVSLAM to try on a tello. Can someone tell me what are these errors

asked 2023-02-05 21:39:42 -0500

mgrallos gravatar image

/usr/include/gtsam/base/OptionalJacobian.h:126:43: error: function definition does not declare parameters 126 | OptionalJacobian(std::nullopt_t /none/) : | ^ /usr/include/gtsam/base/OptionalJacobian.h:131:31: error: ‘optional’ in namespace ‘std’ does not name a template type 131 | OptionalJacobian(const std::optional<std::reference_wrapper<eigen::matrixxd>> optional) : | ^~~~~~~~ /usr/include/gtsam/base/OptionalJacobian.h:131:26: note: ‘std::optional’ is only available from C++17 onwards 131 | OptionalJacobian(const std::optional<std::reference_wrapper<eigen::matrixxd>> optional) : | ^~~ /usr/include/gtsam/base/OptionalJacobian.h:131:39: error: expected ‘,’ or ‘...’ before ‘<’ token 131 | OptionalJacobian(const std::optional<std::reference_wrapper<eigen::matrixxd>> optional) : | ^ /usr/include/gtsam/base/OptionalJacobian.h: In constructor ‘gtsam::OptionalJacobian<rows, cols="">::OptionalJacobian(int)’: /usr/include/gtsam/base/OptionalJacobian.h:133:9: error: ‘optional’ was not declared in this scope; did you mean ‘optind’? 133 | if (optional) { | ^~~~~~~~ | optind /usr/include/gtsam/base/OptionalJacobian.h: At global scope: /usr/include/gtsam/base/OptionalJacobian.h:214:43: error: function definition does not declare parameters 214 | OptionalJacobian(std::nullopt_t /none/) : | ^ /usr/include/gtsam/base/OptionalJacobian.h:219:31: error: ‘optional’ in namespace ‘std’ does not name a template type 219 | OptionalJacobian(const std::optional<std::reference_wrapper<eigen::matrixxd>> optional) : | ^~~~~~~~ /usr/include/gtsam/base/OptionalJacobian.h:219:26: note: ‘std::optional’ is only available from C++17 onwards 219 | OptionalJacobian(const std::optional<std::reference_wrapper<eigen::matrixxd>> optional) : | ^~~ /usr/include/gtsam/base/OptionalJacobian.h:219:39: error: expected ‘,’ or ‘...’ before ‘<’ token 219 | OptionalJacobian(const std::optional<std::reference_wrapper<eigen::matrixxd>> optional) : | ^ /usr/include/gtsam/base/OptionalJacobian.h: In constructor ‘gtsam::OptionalJacobian<-1, -1>::OptionalJacobian(int)’: /usr/include/gtsam/base/OptionalJacobian.h:221:9: error: ‘optional’ was not declared in this scope; did you mean ‘optind’? 221 | if (optional) pointer_ = &((optional).get()); | ^~~~~~~~ | optind In file included from /usr/include/gtsam/nonlinear/NonlinearFactor.h:24, from /home/mariah/tello_ws/src/stella_vslam/src/stella_vslam/optimize/internal_gtsam/projection_factor.h:4, from /home/mariah/tello_ws/src/stella_vslam/src/stella_vslam/optimize/pose_optimizer_gtsam.cc:7: /usr/include/gtsam/nonlinear/Values.h: In member function ‘std::unique_ptr<gtsam::values::constkeyvaluepair> gtsam::Values::deref_iterator::operator->()’: /usr/include/gtsam/nonlinear/Values.h:193:21: error: ‘make_unique’ is not a member of ‘std’ 193 | return std::make_unique<constkeyvaluepair>(it_->first, *(it_->second)); | ^~~~~~~~~~~ /usr/include/gtsam/nonlinear/Values.h:193:21: note: ‘std::make_unique’ is only available from C++14 onwards /usr/include/gtsam/nonlinear/Values.h:193:50: error: expected primary-expression before ‘>’ token 193 | return std::make_unique<constkeyvaluepair>(it_->first, *(it_->second)); | ^ In file included from /usr/include/gtsam/nonlinear/NonlinearFactor.h:25, from /home/mariah/tello_ws/src/stella_vslam/src/stella_vslam/optimize/internal_gtsam/projection_factor.h:4, from /home/mariah/tello_ws/src/stella_vslam/src/stella_vslam/optimize/pose_optimizer_gtsam.cc:7: /usr/include/gtsam/linear/NoiseModel.h: At global scope: /usr/include/gtsam/linear/NoiseModel.h:173:12: error: ‘optional’ in namespace ‘std’ does not name a template type 173 | std::optional<matrix> sqrt_information_; | ^~~~~~~~ /usr/include/gtsam/linear/NoiseModel.h:173:7: note: ‘std::optional’ is only available from C++17 onwards 173 | std::optional<matrix> sqrt_information_; | ^~~ /usr/include/gtsam/linear/NoiseModel.h:193:27: error: ‘optional’ in namespace ‘std’ does not name a template ... (more)

edit retag flag offensive close merge delete