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

unsubscribe TF listeners for InteractiveMarkers and SceneNodes #133

Merged
merged 4 commits into from
Oct 22, 2015

Conversation

T045T
Copy link
Contributor

@T045T T045T commented Oct 20, 2015

As noted in #105 and #69, InteractiveMarkers and Markers can leak memory via their TF callbacks.
This pull request adds an unsubscribeTf() function to InteractiveMarkerHandle and SceneNode to remove those callbacks.

Two places remain where leaks are possible: the Urdf and Particle classes. However, both currently never overwrite their SceneNodes, so they should be safe for now.

T045T and others added 4 commits October 20, 2015 14:58
fixes RobotWebTools#69
The ongoing TF subscription was preventing the GC from collecting InteractiveMarkerHandles, even after InteractiveMarkerClient.eraseIntMarker() was called.
…SceneNode is destroyed

this way, no lingering TF listeners should be left to leak memory (see RobotWebTools#105 )
rctoris added a commit that referenced this pull request Oct 22, 2015
unsubscribe TF listeners for InteractiveMarkers and SceneNodes
@rctoris rctoris merged commit 03eb90e into RobotWebTools:develop Oct 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants