-
Notifications
You must be signed in to change notification settings - Fork 270
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
Send state message when components are removed #1235
Conversation
Signed-off-by: Nate Koenig <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo6 #1235 +/- ##
===============================================
+ Coverage 62.23% 62.26% +0.03%
===============================================
Files 275 275
Lines 22710 22713 +3
===============================================
+ Hits 14133 14142 +9
+ Misses 8577 8571 -6
Continue to review full report at Codecov.
|
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.
Nice! We just need a unit test.
Just checking that you don't think there are unforeseen side effects of this? |
I can't think of any unwanted effects, the worst I can think of is that we're publishing more state messages, but that should be negligible if there aren't components being removed every iteration. |
We have been preferring to zero out components instead of removing them for performance reasons, so I don't think we have any components that get removed every iteration. So I think this approach might work as a work around. My proposal for a more long term solution is to have a scheme where components are requested for removal, just like entities, and their removal happens after all the |
Signed-off-by: Nate Koenig <[email protected]>
Tests have been added in b2ad027 |
Signed-off-by: Nate Koenig <[email protected]>
Signed-off-by: Nate Koenig [email protected]
🦟 Bug fix
Summary
The
WorldCmdPose
was being transmitted to the GUI and back to the Server, resulting in bad behavior. See here.This PR changes the SceneBroadcaster to send a new state message when components are removed.
Before I write tests, I'd like to get some feedback on this approach.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge