Skip to content

Commit bd8c700

Browse files
Improve docs (#533)
* Add fileoverview tags * Fix docstrings of global lib functions
1 parent 288601d commit bd8c700

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+60
-5
lines changed

examples/js/ColladaLoader.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author mrdoob / http://mrdoob.com/
34
* @author Mugen87 / https://github.com/Mugen87
45
*

shims/three/ColladaLoader.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author mrdoob / http://mrdoob.com/
34
* @author Mugen87 / https://github.com/Mugen87
45
*

shims/three/MTLLoader.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* Loads a Wavefront .mtl file specifying materials
34
*
45
* @author angelxuanchang

shims/three/OBJLoader.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author mrdoob / http://mrdoob.com/
34
*
45
* @Modified by Jose Rojas from OBJLoader.js@r106

shims/three/STLLoader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author aleeper / http://adamleeper.com/
34
* @author mrdoob / http://mrdoob.com/
45
* @author gero3 / https://github.com/gero3
@@ -321,4 +322,4 @@ THREE.STLLoader.prototype = {
321322

322323
}
323324

324-
};
325+
};

src/Ros3D.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
/**
2+
* @fileOverview
23
* @author Russell Toris - [email protected]
34
* @author David Gossow - [email protected]
45
*/
56

67
var ROS3D = ROS3D || {
8+
/**
9+
* @description Library version
10+
*/
711
REVISION : '1.1.0'
812
};
913

@@ -47,7 +51,8 @@ ROS3D.INTERACTIVE_MARKER_FIXED = 1;
4751
ROS3D.INTERACTIVE_MARKER_VIEW_FACING = 2;
4852

4953
/**
50-
* Create a THREE material based on the given RGBA values.
54+
* @function makeColorMaterial
55+
* @description Create a THREE material based on the given RGBA values.
5156
*
5257
* @param r - the red value
5358
* @param g - the green value
@@ -79,7 +84,8 @@ ROS3D.makeColorMaterial = function(r, g, b, a) {
7984
};
8085

8186
/**
82-
* Return the intersection between the mouseray and the plane.
87+
* @function intersectPlane
88+
* @description Return the intersection between the mouseray and the plane.
8389
*
8490
* @param mouseRay - the mouse ray
8591
* @param planeOrigin - the origin of the plane
@@ -105,7 +111,8 @@ ROS3D.intersectPlane = function(mouseRay, planeOrigin, planeNormal) {
105111
};
106112

107113
/**
108-
* Find the closest point on targetRay to any point on mouseRay. Math taken from
114+
* @function findClosestPoint
115+
* @description Find the closest point on targetRay to any point on mouseRay. Math taken from
109116
* http://paulbourke.net/geometry/lineline3d/
110117
*
111118
* @param targetRay - the target ray to use
@@ -135,7 +142,8 @@ ROS3D.findClosestPoint = function(targetRay, mouseRay) {
135142
};
136143

137144
/**
138-
* Find the closest point between the axis and the mouse.
145+
* @function closestAxisPoint
146+
* @description Find the closest point between the axis and the mouse.
139147
*
140148
* @param axisRay - the ray from the axis
141149
* @param camera - the camera to project from

src/depthcloud/DepthCloud.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Julius Kammerl - [email protected]
34
*/
45

src/interactivemarkers/InteractiveMarker.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/interactivemarkers/InteractiveMarkerClient.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/interactivemarkers/InteractiveMarkerControl.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/interactivemarkers/InteractiveMarkerHandle.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/interactivemarkers/InteractiveMarkerMenu.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/markers/Marker.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
* @author Russell Toris - [email protected]
45
*/

src/markers/MarkerArrayClient.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Russell Toris - [email protected]
34
* @author Nils Berg - [email protected]
45
*/

src/markers/MarkerClient.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Russell Toris - [email protected]
34
*/
45

src/models/Arrow.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/models/Arrow2.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jihoon Lee - [email protected]
34
*/
45

src/models/Axes.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/models/Grid.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Russell Toris - [email protected]
34
*/
45

src/models/MeshLoader.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jose Rojas - [email protected]
34
*/
45

src/models/MeshResource.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jihoon Lee - [email protected]
34
* @author Russell Toris - [email protected]
45
*/

src/models/TriangleList.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/navigation/ColorOcTree.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Peter Sari - [email protected]
34
*/
45

src/navigation/OcTree.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Peter Sari - [email protected]
34
*/
45

src/navigation/OcTreeBase.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Peter Sari - [email protected]
34
*/
45

src/navigation/OcTreeBaseNode.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Peter Sari - [email protected]
34
*/
45

src/navigation/OcTreeClient.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Peter Sari - [email protected]
34
*/
45

src/navigation/OccupancyGrid.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Russell Toris - [email protected]
34
*/
45

src/navigation/OccupancyGridClient.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Russell Toris - [email protected]
34
*/
45

src/navigation/Odometry.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/navigation/Path.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/navigation/Point.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/navigation/Polygon.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/navigation/Pose.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/navigation/PoseArray.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/navigation/PoseWithCovariance.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/sensors/LaserScan.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
*/
45

src/sensors/NavSatFix.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Mathieu Bredif - [email protected]
34
*/
45

src/sensors/PointCloud2.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
* @author Mathieu Bredif - [email protected]
45
*/

src/sensors/Points.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David V. Lu!! - [email protected]
34
* @author Mathieu Bredif - [email protected]
45
*/

src/sensors/TFAxes.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jihoon Lee - [email protected]
34
*/
45
/**

src/urdf/Urdf.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jihoon Lee - [email protected]
34
* @author Russell Toris - [email protected]
45
*/

src/urdf/UrdfClient.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jihoon Lee - [email protected]
34
* @author Russell Toris - [email protected]
45
*/

src/visualization/SceneNode.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author Jihoon Lee - [email protected]
34
* @author Russell Toris - [email protected]
45
*/

src/visualization/Viewer.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
* @author Russell Toris - [email protected]
45
* @author Jihoon Lee - [email protected]

src/visualization/interaction/Highlighter.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/visualization/interaction/MouseHandler.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
*/
45

src/visualization/interaction/OrbitControls.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/**
2+
* @fileOverview
23
* @author David Gossow - [email protected]
34
* @author Xueqiao Xu - [email protected]
45
* @author Mr.doob - http://mrdoob.com

0 commit comments

Comments
 (0)