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

MeshcatVisualizer sets visibility directly without events #19578

Merged

Conversation

RussTedrake
Copy link
Contributor

@RussTedrake RussTedrake commented Jun 12, 2023

Previously, the visibility parameter was not respected (a) before the initialization event or (b) if delete_on_initialization_event was false.

+@jwnimmer-tri for both reviews, please.


This change is Reviewable

@RussTedrake RussTedrake added status: single reviewer ok https://drake.mit.edu/reviewable.html release notes: fix This pull request contains fixes (no new features) labels Jun 12, 2023
Copy link
Collaborator

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

Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 unresolved discussion, LGTM missing from assignee jwnimmer-tri(platform)

a discussion (no related file):
See RussTedrake#50.

Changing the visibility should be congruent with sending the initial batch of geometry. There is no need to send it prior to that.


@jwnimmer-tri jwnimmer-tri removed the status: single reviewer ok https://drake.mit.edu/reviewable.html label Jun 12, 2023
RussTedrake added a commit to RussTedrake/drake that referenced this pull request Jun 13, 2023
Copy link
Contributor Author

@RussTedrake RussTedrake 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: 1 unresolved discussion, LGTM missing from assignee jwnimmer-tri(platform), needs at least two assigned reviewers, commits need curation (https://drake.mit.edu/reviewable.html#curated-commits) (waiting on @RussTedrake)

a discussion (no related file):

Previously, jwnimmer-tri (Jeremy Nimmer) wrote…

See RussTedrake#50.

Changing the visibility should be congruent with sending the initial batch of geometry. There is no need to send it prior to that.

I reviewed and like that change. Thanks. How should we finish out the review process?


Copy link
Collaborator

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

:lgtm: feature review.

+@rpoyner-tri for platform review per schedule, please.

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: LGTM missing from assignee rpoyner-tri(platform), commits need curation (https://drake.mit.edu/reviewable.html#curated-commits) (waiting on @RussTedrake)

a discussion (no related file):

Previously, RussTedrake (Russ Tedrake) wrote…

I reviewed and like that change. Thanks. How should we finish out the review process?

I think we can treat it as co-author and co-feature-reviewer, so all we'll need is platform review as a final step.


@jwnimmer-tri jwnimmer-tri changed the title MeshcatVisualizer sets visibility in constructor MeshcatVisualizer sets visibility directly without events Jun 13, 2023
Copy link
Contributor Author

@RussTedrake RussTedrake left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: LGTM missing from assignee rpoyner-tri(platform), commits need curation (https://drake.mit.edu/reviewable.html#curated-commits) (waiting on @RussTedrake)

@RussTedrake RussTedrake force-pushed the meshcat_visualizer_invisible branch from 854ab7f to 7e7cd52 Compare June 13, 2023 11:46
Previously, the visibility parameter was not respected (a) before the
initialization event or (b) if delete_on_initialization_event was
false.

fixup!

Update visibility exactly when we first transmit shapes to Meshcat.
(Don't add to the scene tree panel too early.)

On the same tack, don't update visibility during re-initialization.
We don't want the dummy note in the scene tree panel then, either.
@RussTedrake RussTedrake force-pushed the meshcat_visualizer_invisible branch from 7e7cd52 to 56afc18 Compare June 13, 2023 11:47
Copy link
Contributor

@rpoyner-tri rpoyner-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 3 of 3 files at r2, all commit messages.
Reviewable status: 1 unresolved discussion


-- commits line 8 at r3:
nit this line seems out of place -- should I manually delete it when merging the patch?

Copy link
Collaborator

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

Reviewed all commit messages.
Reviewable status: 1 unresolved discussion

@jwnimmer-tri jwnimmer-tri merged commit 00d71ed into RobotLocomotion:master Jun 13, 2023
@jwnimmer-tri
Copy link
Collaborator

I'm going to label this +(release notes: breaking change) not because its necessarily breaking but because it's "important" and maybe "especially surprising", so we should probably say more about it in the release notes. (See #19702.)

@jwnimmer-tri jwnimmer-tri added the release notes: breaking change This pull request contains breaking changes label Jun 30, 2023
@RussTedrake RussTedrake deleted the meshcat_visualizer_invisible branch June 30, 2023 15:57
RussTedrake added a commit to RussTedrake/drake that referenced this pull request Jul 3, 2023
…otion#19578)

Previously, the visibility parameter was not respected (a) before the
initialization event or (b) if delete_on_initialization_event was false.

Now, we update visibility exactly when we first transmit shapes to
Meshcat and we don't update visibility during (re-)initialization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: breaking change This pull request contains breaking changes release notes: fix This pull request contains fixes (no new features)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants