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

class_: Register reclaim_from_cpp with constructing type #33

Conversation

EricCousineau-TRI
Copy link
Collaborator

@EricCousineau-TRI EricCousineau-TRI commented Nov 19, 2019

@EricCousineau-TRI
Copy link
Collaborator Author

This came about because I was trying to bind Simulator::release_context(), but would get the following error:

Instance is registered but does not have a registered reclaim method. Internal error?

@EricCousineau-TRI
Copy link
Collaborator Author

FTR, debugging in a prior push was helpful for me. I will try to upstream some utilities / suggestions.
Specifically, commit 09a1b0c (focus CI) and 87dd63a (drilling in to debug).

Copy link
Collaborator Author

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

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

+@sammy-tri for review, please?

Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on @sammy-tri)

Copy link

@sammy-tri sammy-tri left a comment

Choose a reason for hiding this comment

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

I think I understand at a surface level what's going on from the test and the linked PR, but I'm not going to claim I understand what's going on in the pybind11 internals. If it solves your problem, :lgtm:.

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@EricCousineau-TRI
Copy link
Collaborator Author

Thanks!

@EricCousineau-TRI EricCousineau-TRI merged commit cb82d59 into RobotLocomotion:drake Apr 14, 2020
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