-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
framework_py: Expose AbstractValue
and Value<>
instantiations.
#7933
framework_py: Expose AbstractValue
and Value<>
instantiations.
#7933
Conversation
222206e
to
34d0903
Compare
+@jadecastro for feature review, please. \cc @jwnimmer-tri Regarding the potential lifetime issues with Review status: 0 of 6 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Follow up: Just thinking about it more, this caveat (deleting memory in C++ due to In this case, I'll add some |
I'd like to wait until at least a round of feature review before platforming. Review status: 0 of 6 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Pass complete. Reviewed 6 of 6 files at r1. bindings/pydrake/systems/framework_py.cc, line 434 at r1 (raw file):
BTW, here the spelling binding name is different from the class name. bindings/pydrake/systems/systems_pybind.h, line 18 at r1 (raw file):
BTW, It seems like this binding is designed to wrap classes like bindings/pydrake/systems/systems_pybind.h, line 38 at r1 (raw file):
BTW, I'm not following what you mean in option (a). Consider rephrasing this. Comments from Reviewable |
a578fd8
to
071c6bd
Compare
Review status: 2 of 6 files reviewed at latest revision, 3 unresolved discussions. bindings/pydrake/systems/framework_py.cc, line 434 at r1 (raw file): Previously, jadecastro (Jonathan DeCastro) wrote…
Done. (Added rationale for why this was done.) bindings/pydrake/systems/systems_pybind.h, line 18 at r1 (raw file): Previously, jadecastro (Jonathan DeCastro) wrote…
Done. bindings/pydrake/systems/systems_pybind.h, line 38 at r1 (raw file): Previously, jadecastro (Jonathan DeCastro) wrote…
Done. Given the comment I made at the top, I've bubbled this up as a user-visible docstring. Comments from Reviewable |
Reviewed 2 of 6 files at r1, 4 of 4 files at r2. bindings/pydrake/systems/BUILD.bazel, line 72 at r2 (raw file):
BTW I hadn't seen this before -- is that just to avoid repeating the long name? bindings/pydrake/systems/framework_py.cc, line 453 at r2 (raw file):
BTW just want to make sure this is what you intended. bindings/pydrake/systems/test/value_test.py, line 79 at r2 (raw file):
BTW unclear which object -- presumably the move-only object can't be copied? Comments from Reviewable |
Review status: all files reviewed at latest revision, 3 unresolved discussions. Comments from Reviewable |
071c6bd
to
51ff3e0
Compare
Added a generalization of the emplace constructor. Review status: 1 of 7 files reviewed at latest revision, 3 unresolved discussions. bindings/pydrake/systems/BUILD.bazel, line 72 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. This was more of a way to try and bundle transient dependencies of mixed types - I haven't tried out a way to try and make a provider which can provide both Python and C++ dependencies (e.g. For now, just removed the alias, and used the target. bindings/pydrake/systems/framework_py.cc, line 453 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. bindings/pydrake/systems/test/value_test.py, line 79 at r2 (raw file): Previously, sherm1 (Michael Sherman) wrote…
Done. Clarified both the action, cloning rather than copying, and Comments from Reviewable |
Reviewed 6 of 6 files at r3. Comments from Reviewable |
Partially addresses the
AbstractValues
bullet point of #7660. Next step is to implement unrestricted updates.This change is