Ask Your Question
0

Dealing with matrices: Eigen vs OpenCV

asked 2015-09-22 12:55:18 -0500

alextoind gravatar image

What is the best practice in ROS projects when you have to deal with NxM matrices, Nx1 (or Mx1) vectors, sums, multiplications and other basic stuff? Which approach is neater?

I usually use STL structures like std::vector and I'd like to avoid boring cycles to convert data from one type to another, if possibile.

Thank you all.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-23 19:48:23 -0500

Tom Moore gravatar image

I don't know if there's a "best" practice, but I use Eigen.

edit flag offensive delete link more

Comments

Thanks for the replay. I've made the same choice also because of the Eigen/tf conversions.

alextoind gravatar image alextoind  ( 2015-09-24 03:05:57 -0500 )edit
2

Agreed, for matrices in C++, Eigen has been #1 for a while and looks like it will stay that way. Not only is it very fast, it is very neat and easy to use.

Airuno2L gravatar image Airuno2L  ( 2015-09-24 07:01:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-09-22 12:55:18 -0500

Seen: 753 times

Last updated: Sep 23 '15