Skip to content

Commit

Permalink
Merge pull request RobotWebTools#195 from Rayman/fix-jsdoc
Browse files Browse the repository at this point in the history
Fix JSDoc
  • Loading branch information
rctoris committed Sep 8, 2015
2 parents 5306d8d + 359a8d3 commit cafd9b9
Show file tree
Hide file tree
Showing 30 changed files with 44 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ module.exports = function(grunt) {
'./src/**/*.js'
],
options: {
destination: './doc'
destination: './doc',
private: false
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/RosLib.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
/**
* @fileOverview
* @author Russell Toris - rctoris@wpi.edu
*/

/**
* If you use roslib in a browser, all the classes will be exported to a global variable called ROSLIB.
*
* If you use nodejs, this is the variable you get when you require('roslib')
*/
var ROSLIB = this.ROSLIB || {
REVISION : '0.18.0-SNAPSHOT'
};
Expand Down
2 changes: 1 addition & 1 deletion src/RosLibNode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* ROSLIB Node exclusive extensions
* @fileOverview ROSLIB Node exclusive extensions
*/
var assign = require('object-assign');

Expand Down
1 change: 1 addition & 0 deletions src/actionlib/ActionClient.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Russell Toris - rctoris@wpi.edu
*/

Expand Down
1 change: 1 addition & 0 deletions src/actionlib/Goal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Russell Toris - rctoris@wpi.edu
*/

Expand Down
1 change: 1 addition & 0 deletions src/actionlib/SimpleActionServer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Laura Lindzey - lindzey@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/core/Message.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - baalexander@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/core/Param.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - baalexander@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/core/Ros.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - baalexander@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/core/Service.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - baalexander@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/core/ServiceRequest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - balexander@willowgarage.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/core/ServiceResponse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - balexander@willowgarage.com
*/

Expand Down
9 changes: 9 additions & 0 deletions src/core/SocketAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Note to anyone reviewing this code: these functions are called
* in the context of their parent object, unless bound
* @fileOverview
*/
'use strict';

Expand All @@ -20,6 +21,7 @@ if(typeof bson !== 'undefined'){
* gzipping over WebSockets * is not supported yet), this function places the
* "image" in a canvas element then decodes the * "image" as a Base64 string.
*
* @private
* @param data - object containing the PNG data.
* @param callback - function with params:
* * data - the uncompressed data
Expand Down Expand Up @@ -63,6 +65,9 @@ function decompressPng(data, callback) {
* Events listeners for a WebSocket or TCP socket to a JavaScript
* ROS Client. Sets up Messages for a given topic to trigger an
* event on the ROS client.
*
* @namespace SocketAdapter
* @private
*/
function SocketAdapter(client) {
function handleMessage(message) {
Expand All @@ -78,6 +83,7 @@ function SocketAdapter(client) {
* Emits a 'connection' event on WebSocket connection.
*
* @param event - the argument to emit with the event.
* @memberof SocketAdapter
*/
onopen: function onOpen(event) {
client.isConnected = true;
Expand All @@ -88,6 +94,7 @@ function SocketAdapter(client) {
* Emits a 'close' event on WebSocket disconnection.
*
* @param event - the argument to emit with the event.
* @memberof SocketAdapter
*/
onclose: function onClose(event) {
client.isConnected = false;
Expand All @@ -98,6 +105,7 @@ function SocketAdapter(client) {
* Emits an 'error' event whenever there was an error.
*
* @param event - the argument to emit with the event.
* @memberof SocketAdapter
*/
onerror: function onError(event) {
client.emit('error', event);
Expand All @@ -108,6 +116,7 @@ function SocketAdapter(client) {
* topic, service, or param.
*
* @param message - the raw JSON message from rosbridge.
* @memberof SocketAdapter
*/
onmessage: function onMessage(message) {
if(typeof Blob !== 'undefined' && message.data instanceof Blob) {
Expand Down
1 change: 1 addition & 0 deletions src/core/Topic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author Brandon Alexander - baalexander@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/math/Pose.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author David Gossow - dgossow@willowgarage.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/math/Quaternion.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author David Gossow - dgossow@willowgarage.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/math/Transform.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author David Gossow - dgossow@willowgarage.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/math/Vector3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author David Gossow - dgossow@willowgarage.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/node/RosTCP.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var util = require('util');

/**
* Same as core Ros except supports TCP connections
* @private
*/
function RosTCP(options) {
options = options || {};
Expand Down
1 change: 1 addition & 0 deletions src/tf/TFClient.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileoverview
* @author David Gossow - dgossow@willowgarage.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfBox.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfColor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfCylinder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfJoint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author David V. Lu!! davidvlu@gmail.com
*/

Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfMaterial.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfMesh.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfModel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfSphere.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down
1 change: 1 addition & 0 deletions src/urdf/UrdfVisual.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**
* @fileOverview
* @author Benjamin Pitzer - ben.pitzer@gmail.com
* @author Russell Toris - rctoris@wpi.edu
*/
Expand Down

0 comments on commit cafd9b9

Please sign in to comment.