ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Dealing with matrices: Eigen vs OpenCV

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

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 -0600

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 -0600 )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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 909 times

Last updated: Sep 23 '15