Skip to content

Add eigen support#67

Open
PepMS wants to merge 4 commits into
PickNikRobotics:mainfrom
PepMS:add_eigen_support
Open

Add eigen support#67
PepMS wants to merge 4 commits into
PickNikRobotics:mainfrom
PepMS:add_eigen_support

Conversation

@PepMS
Copy link
Copy Markdown

@PepMS PepMS commented Jan 22, 2026

As discussed in #66 , this PR adds the possibility to log Eigen::VectorXd objects.

Adding Eigen compatibility is configurable through cmake variables and the use of preprocessor directives inside the code.

@henrygerardmoore henrygerardmoore self-requested a review January 22, 2026 18:19
RegistrationID registerValue(const std::string& name, const std::array<T, N>* value);

#if DATA_TAMER_EIGEN_SUPPORT
RegistrationID registerValue(const std::string& prefix, const Eigen::VectorXd* value);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @PepMS, how are you doing?

Thank you very much for this PR, it's really helpful.

I have my 2 cents comment on this work.
I would believe that using the ground rules for Eigen for passing Eigen object into functions would be beneficial here.
Either using templates or Eigen::Ref.

See: https://libeigen.gitlab.io/eigen/docs-5.0/TopicFunctionTakingEigenTypes.html

My comment applies for the full PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants