Skip to content
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

Map enhancements: add visitor arg to ::expose() with overloads, rename overload_base_get_item_for_std_map #507

Merged
merged 7 commits into from
Sep 26, 2024

Conversation

ManifoldFR
Copy link
Member

@ManifoldFR ManifoldFR commented Sep 23, 2024

Also:

  • split GenericMapPythonVisitor into its own file eigenpy/map.hpp
  • move EmptyPythonVisitor to its own header file eigenpy/utils/empty-visitor
  • rename overload_base_get_item_for_std_map to drop the std mention, move out of eigenpy::details namespace

Resolves #506

@ManifoldFR
Copy link
Member Author

ManifoldFR commented Sep 23, 2024

@edantec can you please compile this branch to see if it resolves Simple-Robotics/aligator/issues/209 when you use the eigenpy::overload_base_get_item_for_map visitor ?

@ManifoldFR ManifoldFR changed the title Map enhancements: add visitor arg to ::expose() with overloads Map enhancements: add visitor arg to ::expose() with overloads, rename overload_base_get_item_for_std_map Sep 23, 2024
ManifoldFR added a commit to Simple-Robotics/aligator that referenced this pull request Sep 23, 2024
ManifoldFR added a commit to Simple-Robotics/aligator that referenced this pull request Sep 23, 2024
@edantec
Copy link

edantec commented Sep 23, 2024

@edantec can you please compile this branch to see if it resolves Simple-Robotics/aligator/issues/209 when you use the eigenpy::overload_base_get_item_for_map visitor ?

Done, everything is working well

@ManifoldFR
Copy link
Member Author

@edantec can you please compile this branch to see if it resolves Simple-Robotics/aligator/issues/209 when you use the eigenpy::overload_base_get_item_for_map visitor ?

Done, everything is working well

note: it ended up not working for std::pair, which can't be returned by reference unless we expose them by class
😅

include/eigenpy/std-map.hpp Show resolved Hide resolved
include/eigenpy/map.hpp Outdated Show resolved Hide resolved
@ManifoldFR ManifoldFR merged commit 9608a04 into stack-of-tasks:devel Sep 26, 2024
34 checks passed
@ManifoldFR ManifoldFR deleted the topic/map-enhancements branch September 26, 2024 10:18
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.

4 participants