Skip to content

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 ManifoldFR requested a review from jorisv September 23, 2024 10:48
@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
Contributor

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
😅

@ManifoldFR ManifoldFR requested a review from jorisv September 25, 2024 15:47
@jcarpent jcarpent force-pushed the topic/map-enhancements branch from b8fe774 to e03f6b2 Compare September 26, 2024 09:17
@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