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

pydrake: Add bindings for common.schema #14014

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

jwnimmer-tri
Copy link
Collaborator

@jwnimmer-tri jwnimmer-tri commented Sep 3, 2020

This only binds the variable-sized stochastic vector types.
The fixed-size stochastic vector type are not yet available.

Towards #13251.


This change is Reviewable

@jwnimmer-tri jwnimmer-tri marked this pull request as ready for review September 3, 2020 19:00
@jwnimmer-tri
Copy link
Collaborator Author

+@ggould-tri for review, please.

@jwnimmer-tri
Copy link
Collaborator Author

a discussion (no related file):
Oops, I forgot all.py and all_test.py. I'm testing that locally now.


Copy link
Contributor

@ggould-tri ggould-tri left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 5 files at r1.
Reviewable status: 2 unresolved discussions, LGTM missing from assignee ggould-tri(platform), needs at least two assigned reviewers (waiting on @jwnimmer-tri)


bindings/pydrake/common/schema_py.cc, line 113 at r1 (raw file):

  // values.  In the future, we should also bind Size == 1 through Size == 6
  // (to match the C++ code).  When we do that, we'll replace the suffix X with
  // the template pattern `_[Size]`, e.g., `DeterministicVector[3]`.

minor: Did you mean to have an underscore in the e.g. text?


common/schema/transform.h, line 189 at r1 (raw file):

  /// Samples this Transform.  If this is deterministic, the result is the same
  /// as GetDeterministicValue.
  math::RigidTransformd Sample(RandomGenerator* generator) const;

BTW thanks for the reminder I need to do this in my stochastic sink code.

@jwnimmer-tri
Copy link
Collaborator Author

a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

Oops, I forgot all.py and all_test.py. I'm testing that locally now.

Done.


This only binds the variable-sized stochastic vector types.
The fixed-size stochastic vector type are not yet available.
Copy link
Collaborator Author

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

Reviewable status: LGTM missing from assignee ggould-tri(platform), needs at least two assigned reviewers (waiting on @ggould-tri)


bindings/pydrake/common/schema_py.cc, line 113 at r1 (raw file):

Previously, ggould-tri wrote…

minor: Did you mean to have an underscore in the e.g. text?

Why not both? I was debating which name was best, and I don't know yet. I've noted both options.

@sammy-tri sammy-tri self-assigned this Sep 3, 2020
Copy link
Contributor

@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.

+@sammy-tri for platform review

Reviewable status: LGTM missing from assignees ggould-tri(platform),sammy-tri(platform) (waiting on @ggould-tri and @sammy-tri)

Copy link
Contributor

@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.

:lgtm:

Reviewed 4 of 5 files at r1, 3 of 3 files at r2.
Reviewable status: LGTM missing from assignee ggould-tri(platform), labeled "do not merge"

@jwnimmer-tri
Copy link
Collaborator Author

I think the missing LGTM from @ggould-tri was an oversight. If there's more to do, let me know and I'll follow up.

@jwnimmer-tri jwnimmer-tri added status: single reviewer ok https://drake.mit.edu/reviewable.html and removed status: do not merge labels Sep 4, 2020
@jwnimmer-tri jwnimmer-tri merged commit 3ec0276 into RobotLocomotion:master Sep 4, 2020
@jwnimmer-tri jwnimmer-tri deleted the schema-pybind branch September 4, 2020 03:14
@ggould-tri
Copy link
Contributor

:lgtm:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low status: single reviewer ok https://drake.mit.edu/reviewable.html
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants