I am working with ROS structure and facing some problem with debugging, and I found this snippet:
ros.visualization.GLNode = Class.extend({
init: function () {
this.meshGroupIDs = [ ];
this.matrix = sglIdentityM4();
this.children = [ ];
},
});
What do these lines mean?
ros.visualization.GLnode :: Is it trying to load some files? What does this . represent?
Class.extend:: What does this do? Is it trying to extend the class, and if so then which one? In my way it will be GLnode.
this.matrix:: I always have doubts when I see this command what does it do?
init : function() :: What does this function mean in js? Is it a keyword? If not then why does everyone use it in onloadbody or window.onload()?