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

Urdf: add method unsubscribeTf #161

Merged
merged 4 commits into from
Jan 30, 2017
Merged

Conversation

achim-k
Copy link
Contributor

@achim-k achim-k commented Jan 26, 2017

adds a method to unsubscribe tf updates for all frames of the URDF's links.

@@ -118,3 +118,7 @@ ROS3D.Urdf = function(options) {
}
};
ROS3D.Urdf.prototype.__proto__ = THREE.Object3D.prototype;

ROS3D.Urdf.prototype.unsubscribeTf = function () {
this.children.forEach(function(n) { n.unsubscribeTf(); });
Copy link
Member

Choose a reason for hiding this comment

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

You may want to validate that the child objects are infact SceneNodes or atleast has the unsubscribeTf function before calling a potentially undefined method as any custom component attached to the Object3D would be returned here.

@T045T T045T merged commit 4d1ed40 into RobotWebTools:develop Jan 30, 2017
@T045T
Copy link
Contributor

T045T commented Jan 30, 2017

lgtm, thanks for reviewing, @sevenbitbyte !

@viktorku
Copy link
Member

Merged without grunt build.. Maybe add this check to your Travis CI job or make it a pre-commit hook?

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.

4 participants