-
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
Meshcat SetProperty Method Can't Toggle Visibility #19702
Comments
Possibly #19578 is relevant here. I can take a look this week. |
Note that |
\CC @RussTedrake FYI I think this is working as intended. We have a struct /** Determines whether our meshcat path should be default to being visible. */
bool visible_by_default{true}; When In your example code above, it seems pretty easy to set Aside: It seems a bit unusual to visualize |
I can confirm that using I mainly noticed this as a change in behavior (even if it is a change from unexpected behavior to expected behavior). If I run this code with Drake built at eb88259, for example, the behavior is as expected. I've seen the code used this way in a couple places, including Russ' manipulation notes. (Here, here, and here.) Re the aside, this was a cobbled together attempt at a MWE, partially inspired by this. In my current project, I'm using |
I think either one of #19577 or #19578 would have caused this change in behavior. In #19577, we started running the initialization event during In #19578, we delayed the "set visible" from an initialization event to the first stepped event, but that would still happen during
I've opened a PR to clean up the notes: RussTedrake/manipulation#239. For others reading this, I'll underline again that in my mind the If there are cases where the high-level API is not capable enough, I'm always happy to hear feedback in case we can improve it. |
What happened?
Previously, I was able to toggle the visibility of a meshcat visualizer programmatically with, e.g.,
However, I've noticed that this no longer seems to work. I put together a simple example below (partially based on this). I would expect it to display the collision geometry, but not the visual geometry, but both are visible.
Version
70fc904
What operating system are you using?
Ubuntu 22.04
What installation option are you using?
compiled from source code using CMake
Relevant log output
No response
The text was updated successfully, but these errors were encountered: