hector_quadrotor icon indicating copy to clipboard operation
hector_quadrotor copied to clipboard

failed to complie

Open cdlwhm1217096231 opened this issue 6 years ago • 2 comments

when I use catkin_make hector_quadrotor ,the following errors will be appear.please help me!!!thank you! 1、/hector_quadrotor_tutorial/src/hector_localization/hector_pose_estimation_core/src/measurements/poseupdate.cpp:385:73: error: cannot convert ‘const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 1, 1, 0, 1, 1> >, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<double, double>, const Eigen::Matrix<double, 1, 1, 0, 1, 1>, const Eigen::Matrix<double, 1, 1, 0, 1, 1> > >’ to ‘double’ in initialization double error2 = error.transpose() * Ix * (Ix + Iy).inverse() * Iy * error; 2、/hector_quadrotor_tutorial/src/hector_localization/hector_pose_estimation_core/src/measurements/poseupdate.cpp:234:154: required from here/hector_quadrotor_tutorial/src/hector_localization/hector_pose_estimation_core/src/measurements/poseupdate.cpp:385:73: error: cannot convert ‘const Eigen::CwiseBinaryOp<Eigen::internal::scalar_product_op<double, double>, const Eigen::CwiseNullaryOp<Eigen::internal::scalar_constant_op, const Eigen::Matrix<double, 1, 1, 0, 1, 1> >, const Eigen::Matrix<double, 1, 1, 0, 1, 1> >’ to ‘double’ in initialization

cdlwhm1217096231 avatar Mar 29 '18 13:03 cdlwhm1217096231

I think the problem is the version of Eigen. Try installing Eigen3 and then proceed.

suraj2596 avatar Nov 10 '18 19:11 suraj2596

#78 Please go to this issue. I have answered it and it will solve the problem.

ggsharma avatar Sep 26 '19 02:09 ggsharma