Skip to content

Commit

Permalink
Merge pull request #161 from achim-k/patch-1
Browse files Browse the repository at this point in the history
Urdf: add method unsubscribeTf
  • Loading branch information
T045T authored Jan 30, 2017
2 parents 4e95e79 + b9df301 commit 4d1ed40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/urdf/Urdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,9 @@ ROS3D.Urdf = function(options) {
}
};
ROS3D.Urdf.prototype.__proto__ = THREE.Object3D.prototype;

ROS3D.Urdf.prototype.unsubscribeTf = function () {
this.children.forEach(function(n) {
if (typeof n.unsubscribeTf === 'function') { n.unsubscribeTf(); }
});
};

0 comments on commit 4d1ed40

Please sign in to comment.