tu-darmstadt-ros-pkg / hector_quadrotor

hector_quadrotor contains packages related to modeling, control and simulation of quadrotor UAV systems.
Other
378 stars 277 forks source link

failed to complie #86

Open cdlwhm1217096231 opened 6 years ago

cdlwhm1217096231 commented 6 years ago

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

suraj2596 commented 5 years ago

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

gautam-sharma1 commented 4 years ago

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