ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

TF2-Eigen 3.4 compatibility

asked 2022-06-20 10:59:07 -0500

Vic gravatar image

I'm working in a quite big project in ROS 1, Noetic. In this project, some code need Eigen 3.4.9. However, some other code needs tf2, including eigen conversions. When compiling with both of them, I have the same errors than compiling with Eigen 3. Is there a way to make this work?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-06-20 12:43:04 -0500

tfoote gravatar image

ROS Noetic targets Ubuntu Focal which comes with Eigen 3.3.7

As you need Eigen 3.4.9 I would expect that to only add API elements and not have significant backwards breaking changes to the relatively simple elements of eigen that tf2 and eigen conversions takes advantage of. 3.4.0 is the default as of jammy

To that end you should be able to install and use Eigen 3.4.9. There may be some minor tweaks that are needed to the code base, but as long as it stays in the 3 major version I would expect it to be generally compatible, but obviously it's not tested or supported so you'll be on your own to make it work.

Note: When you upgrade the version of Eigen any package that is building against it will need to be built from source on your system so that everything that you're using will be using a consistent version of Eigen. You should not use the binaries of anything that uses Eigen if you're upgrading it.

edit flag offensive delete link more

Comments

Thanks for the answer. Are there any ressource on how to build from source on the system tf2?

Vic gravatar image Vic  ( 2022-06-20 14:31:53 -0500 )edit
1

Here's how to install from source fully. http://wiki.ros.org/Installation/Source You don't have to do everything, but anything that uses Eigen or depends on something that uses Eigen will have to be compiled from source. If you don't know how to select the packages well I'd strongly recommend just compiling everything to avoid the potentially complicated debugging of failiures.

tfoote gravatar image tfoote  ( 2022-06-20 14:53:09 -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

2 followers

Stats

Asked: 2022-06-20 10:59:07 -0500

Seen: 25 times

Last updated: Jun 20