eigen problem

asked 2017-11-26 01:44:43 -0500

vwilk gravatar image

updated 2017-11-30 06:58:22 -0500

mgruhler gravatar image


i'm ros beginer so recently, i have constructed the code about ros with eigen

but it was faild. in command window, the message was written like the below(this is error when i launched roslaunch)

state_estimation_DynBkMdl: /usr/include/eigen3/Eigen/src/Core/Assign.h:498: Derived& Eigen::DenseBase<Derived>::lazyAssign(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::CwiseUnaryOp<Eigen::internal::scalar_quotient1_op<float>, const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<float>, const Eigen::Matrix<float, -1, -1>, const Eigen::Matrix<float, -1, -1> > >; Derived = Eigen::Block<Eigen::Matrix<float, -1, -1>, -1, 1, true>]: Assertion `rows() == other.rows() && cols() == other.cols()' failed.
[state_estimation_DynBkMdl-2] process has died [pid 7468, exit code -6, cmd /home/odroid/catkin_ws/devel/lib/barc_cpp/state_estimation_DynBkMdl __name:=state_estimation_DynBkMdl __log:=/home/odroid/.ros/log/c6ea4d7c-d5b1-11e7-a2b7-909f330ec39c/state_estimation_DynBkMdl-2.log].
log file: /home/odroid/.ros/log/c6ea4d7c-d5b1-11e7-a2b7-909f330ec39c/state_estimation_DynBkMdl-2*.log

in my opinion, the dimension of matrix has a error. but i couldn't find the error line.

in fact, i have never seen the error message. so i couldn't fix the code error

so could you help me??

thank you for reading.

edit retag flag offensive close merge delete


This is most probably not the full error Output. Please edit your question with more context...

mgruhler gravatar image mgruhler  ( 2017-11-28 01:15:25 -0500 )edit

i'm sorry to be late reply, and thank you for reading. as you mentioned, i edited more detailed. so please read my error and if you want more detaild, i 'll give you

vwilk gravatar image vwilk  ( 2017-11-30 03:41:49 -0500 )edit

Yes, you are right, the matix does not have the same dimensions. What I missed before is that this is a failed Assertion during runtime.

Anyways, more info, i.e. the relevant parts of you code, as well as a more in depth description of what you are really trying to do would be helpful...

mgruhler gravatar image mgruhler  ( 2017-11-30 07:04:10 -0500 )edit