-
Notifications
You must be signed in to change notification settings - Fork 939
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
Fix deferred robot model loading #2244
Conversation
This reverts commit 4e72ac5 as the delayed loading results in link properties NOT being loaded.
This is a (in my opinion) rather dirty workaround because RViz enables Displays systematically *before* loading their properties. So the patch loads the required property a second time *before* everything else. Assuming this ever changes we can remove this code again. A Display's "enabled" state is encoded in a boolean property the Display inherits from. The way loading works (recursively running through the properties) this special property is loaded first and triggers onEnable because of the Property's changed() signal. A second "Enabled" property exists in RViz's Displays but does not change behavior at all.
I would consider it a rewrite. @furushchev please have a try on whether this works as expected in your setup. |
It is cleaning the history of #2223, which didn't reflect (anymore) what we actually did 😉 |
Codecov Report
@@ Coverage Diff @@
## master #2244 +/- ##
=======================================
Coverage 57.73% 57.73%
=======================================
Files 326 326
Lines 25629 25629
=======================================
Hits 14797 14797
Misses 10832 10832
Continue to review full report at Codecov.
|
Ping @furushchev: This is awaiting your approval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified this in master
. Thanks.
This is a cleanup of #2223. Fixes #2222.
Note that the melodic-devel branch is missing #1625. For this reason the PR here doesn't apply 1:1 to melodic.
I will file a similar PR for melodic.