Skip to content

Add C++ example with OpenCV and Eigen #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Oct 23, 2023
Merged

Add C++ example with OpenCV and Eigen #1

merged 16 commits into from
Oct 23, 2023

Conversation

roym899
Copy link
Collaborator

@roym899 roym899 commented Oct 12, 2023

TODOs

  • log std::vector<Eigen::Vector3f>
  • log Eigen::MatrixX3f
  • log poses and camera
  • log image from OpenCV (wait for Image archetype constructors)
  • clean up code
  • remove hardcoded paths in CMakeLists.txt (wait for better way to install)
  • add install instructions for Rerun and other dependencies required to build this example

Comment on lines +12 to +13
static_assert(sizeof(components::Position3D) == sizeof(Eigen::Vector3f));
static_assert(alignof(components::Position3D) <= alignof(Eigen::Vector3f));
Copy link
Member

Choose a reason for hiding this comment

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

ComponentBatch should have borrow_compatible which does these and a few other checks checks for you on 💡

@emilk
Copy link
Member

emilk commented Oct 20, 2023

I'm gonna see if we can use pixi to install eigen, opencv, and arrow

@emilk
Copy link
Member

emilk commented Oct 20, 2023

pixi run run just works™️ now. I love pixi!

@emilk
Copy link
Member

emilk commented Oct 20, 2023

Code will become a lot simpler once this is merged:

@emilk emilk marked this pull request as ready for review October 23, 2023 09:39
@Wumpf Wumpf self-requested a review October 23, 2023 15:28
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

some more fine tuning to do, in particular with the adapters, but good start

@Wumpf Wumpf merged commit eb65105 into main Oct 23, 2023
@Wumpf Wumpf deleted the roym899/cpp_example branch October 23, 2023 15:31
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.

3 participants