yubaoliu / RDS-SLAM

DS-SLAM: Real-Time Dynamic SLAM Using Semantic Segmentation Methods
GNU General Public License v3.0
227 stars 24 forks source link

‘class Eigen::SparseMatrix<double>’ has no member named ‘setIdentity’ #5

Closed mmksir closed 2 years ago

mmksir commented 2 years ago

When I use catkin_make, there is an error:

/catkin_ws/src/RDS-SLAM/SLAM/src/MLPnPsolver.cpp:403:11: error: ‘class Eigen::SparseMatrix’ has no member named ‘setIdentity’ P.setIdentity(); // standard

I find where the errors occur in the code MLPnPsolver.cppimage

Is the SparseMatrix P here can't use the . setidentity() function? Or is there a problem with my eigen version? but my Eigen version is 3.1.0

mmksir commented 2 years ago

I'm sorry to trouble you, I have solve this problem by use Eigen 3.2.8