Skip to content

Commit 605ef08

Browse files
committed
Remove 'An object with the following keys'
1 parent 8615745 commit 605ef08

24 files changed

+45
-45
lines changed

src/actionlib/ActionClient.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2;
1717
* * 'result' - The result returned from the action server.
1818
*
1919
* @constructor
20-
* @param {Object} options - An object with the following keys:
20+
* @param {Object} options
2121
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
2222
* @param {string} options.serverName - The action server name, like '/fibonacci'.
2323
* @param {string} options.actionName - The action message name, like 'actionlib_tutorials/FibonacciAction'.

src/actionlib/ActionListener.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2;
1717
* * 'result' - The result returned from the action server.
1818
*
1919
* @constructor
20-
* @param {Object} options - An object with the following keys:
20+
* @param {Object} options
2121
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
2222
* @param {string} options.serverName - The action server name, like '/fibonacci'.
2323
* @param {string} options.actionName - The action message name, like 'actionlib_tutorials/FibonacciAction'.

src/actionlib/Goal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2;
1313
* * 'timeout' - If a timeout occurred while sending a goal.
1414
*
1515
* @constructor
16-
* @param {Object} options - An object with the following keys:
16+
* @param {Object} options
1717
* @param {ActionClient} options.actionClient - The ROSLIB.ActionClient to use with this goal.
1818
* @param {Object} options.goalMessage - The JSON object containing the goal for the action server.
1919
*/
@@ -86,4 +86,4 @@ Goal.prototype.cancel = function() {
8686
this.actionClient.cancelTopic.publish(cancelMessage);
8787
};
8888

89-
module.exports = Goal;
89+
module.exports = Goal;

src/actionlib/SimpleActionServer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2;
1515
* * 'cancel' - Action client has canceled the request.
1616
*
1717
* @constructor
18-
* @param {Object} options - An object with the following keys:
18+
* @param {Object} options
1919
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
2020
* @param {string} options.serverName - The action server name, like '/fibonacci'.
2121
* @param {string} options.actionName - The action message name, like 'actionlib_tutorials/FibonacciAction'.
@@ -76,7 +76,7 @@ function SimpleActionServer(options) {
7676
this.nextGoal = null; // the one that'll be preempting
7777

7878
goalListener.subscribe(function(goalMessage) {
79-
79+
8080
if(that.currentGoal) {
8181
that.nextGoal = goalMessage;
8282
// needs to happen AFTER rest is set up
@@ -222,4 +222,4 @@ SimpleActionServer.prototype.setPreempted = function() {
222222
}
223223
};
224224

225-
module.exports = SimpleActionServer;
225+
module.exports = SimpleActionServer;

src/core/Param.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var ServiceRequest = require('./ServiceRequest');
1010
* A ROS parameter.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
1515
* @param {string} options.name - The param name, like max_vel_x.
1616
*/
@@ -66,7 +66,7 @@ Param.prototype.set = function(value, callback) {
6666

6767
/**
6868
* Delete this parameter on the ROS server.
69-
*
69+
*
7070
* @param {function} callback - The callback function.
7171
*/
7272
Param.prototype.delete = function(callback) {
@@ -83,4 +83,4 @@ Param.prototype.delete = function(callback) {
8383
paramClient.callService(request, callback);
8484
};
8585

86-
module.exports = Param;
86+
module.exports = Param;

src/core/Ros.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2;
2424
* * <serviceID> - A service response came from rosbridge with the given ID.
2525
*
2626
* @constructor
27-
* @param {Object} options - An object with the following keys:
27+
* @param {Object} options
2828
* @param {string} [options.url] - The WebSocket URL for rosbridge or the node server URL to connect using socket.io (if socket.io exists in the page). Can be specified later with `connect`.
2929
* @param {boolean} [options.groovyCompatibility] - Don't use interfaces that changed after the last groovy release or rosbridge_suite and related tools (defaults to true).
3030
* @param {string} [options.transportLibrary] - One of 'websocket', 'workersocket' (default), 'socket.io' or RTCPeerConnection instance controlling how the connection is created in `connect`.
@@ -459,13 +459,13 @@ Ros.prototype.getNodes = function(callback, failedCallback) {
459459
* @param {string[]} callback.services - Array of service names hosted.
460460
* @param {function} [failedCallback] - The callback function when the service call failed with params:
461461
* @param {string} failedCallback.error - The error message reported by ROS.
462-
*
462+
*
463463
* @also
464-
*
464+
*
465465
* Retrieve a list of subscribed topics, publishing topics and services of a specific node.
466466
* <br>
467467
* These are the parameters if failedCallback is <strong>undefined</strong>.
468-
*
468+
*
469469
* @param {string} node - Name of the node.
470470
* @param {function} callback - Function with the following params:
471471
* @param {Object} callback.result - The result object with the following params:

src/core/Service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2;
1111
* A ROS service client.
1212
*
1313
* @constructor
14-
* @param {Object} options - An object with the following keys:
14+
* @param {Object} options
1515
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
1616
* @param {string} options.name - The service name, like '/add_two_ints'.
1717
* @param {string} options.serviceType - The service type, like 'rospy_tutorials/AddTwoInts'.

src/core/Topic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var Message = require('./Message');
1414
* * 'message' - The message data from rosbridge.
1515
*
1616
* @constructor
17-
* @param {Object} options - An object with the following keys:
17+
* @param {Object} options
1818
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
1919
* @param {string} options.name - The topic name, like '/cmd_vel'.
2020
* @param {string} options.messageType - The message type, like 'std_msgs/String'.

src/math/Pose.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Quaternion = require('./Quaternion');
1010
* A Pose in 3D space. Values are copied into this object.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Vector3} options.position - The ROSLIB.Vector3 describing the position.
1515
* @param {Quaternion} options.orientation - The ROSLIB.Quaternion describing the orientation.
1616
*/
@@ -69,4 +69,4 @@ Pose.prototype.getInverse = function() {
6969
return inverse;
7070
};
7171

72-
module.exports = Pose;
72+
module.exports = Pose;

src/math/Quaternion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* A Quaternion.
88
*
99
* @constructor
10-
* @param {Object} options - An object with the following keys:
10+
* @param {Object} options
1111
* @param {number} [options.x] - The x value (defaults to 0).
1212
* @param {number} [options.y] - The y value (defaults to 0).
1313
* @param {number} [options.z] - The z value (defaults to 0).

src/math/Transform.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Quaternion = require('./Quaternion');
1010
* A Transform in 3-space. Values are copied into this object.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Vector3} options.translation - The ROSLIB.Vector3 describing the translation.
1515
* @param {Quaternion} options.rotation - The ROSLIB.Quaternion describing the rotation.
1616
*/
@@ -30,4 +30,4 @@ Transform.prototype.clone = function() {
3030
return new Transform(this);
3131
};
3232

33-
module.exports = Transform;
33+
module.exports = Transform;

src/math/Vector3.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* A 3D vector.
88
*
99
* @constructor
10-
* @param {Object} options - An object with the following keys:
10+
* @param {Object} options
1111
* @param {number} [options.x] - The x value (defaults to 0).
1212
* @param {number} [options.y] - The y value (defaults to 0).
1313
* @param {number} [options.z] - The z value (defaults to 0).
@@ -65,4 +65,4 @@ Vector3.prototype.clone = function() {
6565
return new Vector3(this);
6666
};
6767

68-
module.exports = Vector3;
68+
module.exports = Vector3;

src/node/TopicStream.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var DuplexStream = require('stream').Duplex;
66
* stream. This stream can be piped to, which will
77
* publish to the topic.
88
*
9-
* @param {Object} options - An object with the following keys:
9+
* @param {Object} options
1010
* @param {boolean} [options.subscribe] - The flag to indicate whether to subscribe to the topic and start emitting data or not (defaults to true).
1111
* @param {boolean} [options.publish] - The flag to indicate whether to register the stream as a publisher to the topic or not (defaults to true).
1212
* @param {boolean} [options.transform] - A function to change the data to be published or filter it if false is returned.
@@ -21,7 +21,7 @@ Topic.prototype.toStream = function(options) {
2121
objectMode: true
2222
});
2323
stream._read = function() {};
24-
24+
2525
// Publish to the topic if someone pipes to stream
2626
stream._write = function(chunk, encoding, callback) {
2727
if (hasTransform) {
@@ -32,7 +32,7 @@ Topic.prototype.toStream = function(options) {
3232
}
3333
callback();
3434
};
35-
35+
3636
if (options.subscribe) {
3737
this.subscribe(function(message) {
3838
stream.push(message);
@@ -47,4 +47,4 @@ Topic.prototype.toStream = function(options) {
4747
return stream;
4848
};
4949

50-
module.exports = Topic;
50+
module.exports = Topic;

src/tf/TFClient.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var Transform = require('../math/Transform');
1616
* A TF Client that listens to TFs from tf2_web_republisher.
1717
*
1818
* @constructor
19-
* @param {Object} options - An object with the following keys:
19+
* @param {Object} options
2020
* @param {Ros} options.ros - The ROSLIB.Ros connection handle.
2121
* @param {string} options.fixedFrame - The fixed frame, like '/base_link'.
2222
* @param {number} options.angularThres - The angular threshold for the TF republisher (defaults to 2.0).

src/urdf/UrdfBox.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var UrdfTypes = require('./UrdfTypes');
1111
* A Box element in a URDF.
1212
*
1313
* @constructor
14-
* @param {Object} options - An object with the following keys:
14+
* @param {Object} options
1515
* @param {Element} options.xml - The XML element to parse.
1616
*/
1717
function UrdfBox(options) {
@@ -27,4 +27,4 @@ function UrdfBox(options) {
2727
});
2828
}
2929

30-
module.exports = UrdfBox;
30+
module.exports = UrdfBox;

src/urdf/UrdfColor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* A Color element in a URDF.
99
*
1010
* @constructor
11-
* @param {Object} options - An object with the following keys:
11+
* @param {Object} options
1212
* @param {Element} options.xml - The XML element to parse.
1313
*/
1414
function UrdfColor(options) {
@@ -20,4 +20,4 @@ function UrdfColor(options) {
2020
this.a = parseFloat(rgba[3]);
2121
}
2222

23-
module.exports = UrdfColor;
23+
module.exports = UrdfColor;

src/urdf/UrdfCylinder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var UrdfTypes = require('./UrdfTypes');
1010
* A Cylinder element in a URDF.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Element} options.xml - The XML element to parse.
1515
*/
1616
function UrdfCylinder(options) {
@@ -19,4 +19,4 @@ function UrdfCylinder(options) {
1919
this.radius = parseFloat(options.xml.getAttribute('radius'));
2020
}
2121

22-
module.exports = UrdfCylinder;
22+
module.exports = UrdfCylinder;

src/urdf/UrdfJoint.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var Quaternion = require('../math/Quaternion');
1111
* A Joint element in a URDF.
1212
*
1313
* @constructor
14-
* @param {Object} options - An object with the following keys:
14+
* @param {Object} options
1515
* @param {Element} options.xml - The XML element to parse.
1616
*/
1717
function UrdfJoint(options) {

src/urdf/UrdfLink.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var UrdfVisual = require('./UrdfVisual');
1010
* A Link element in a URDF.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Element} options.xml - The XML element to parse.
1515
*/
1616
function UrdfLink(options) {
@@ -25,4 +25,4 @@ function UrdfLink(options) {
2525
}
2626
}
2727

28-
module.exports = UrdfLink;
28+
module.exports = UrdfLink;

src/urdf/UrdfMaterial.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var UrdfColor = require('./UrdfColor');
1010
* A Material element in a URDF.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Element} options.xml - The XML element to parse.
1515
*/
1616
function UrdfMaterial(options) {

src/urdf/UrdfMesh.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var UrdfTypes = require('./UrdfTypes');
1111
* A Mesh element in a URDF.
1212
*
1313
* @constructor
14-
* @param {Object} options - An object with the following keys:
14+
* @param {Object} options
1515
* @param {Element} options.xml - The XML element to parse.
1616
*/
1717
function UrdfMesh(options) {
@@ -33,4 +33,4 @@ function UrdfMesh(options) {
3333
}
3434
}
3535

36-
module.exports = UrdfMesh;
36+
module.exports = UrdfMesh;

src/urdf/UrdfModel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var XPATH_FIRST_ORDERED_NODE_TYPE = 9;
1616
* A URDF Model can be used to parse a given URDF into the appropriate elements.
1717
*
1818
* @constructor
19-
* @param {Object} options - An object with the following keys:
19+
* @param {Object} options
2020
* @param {Element} options.xml - The XML element to parse.
2121
* @param {string} options.string - The XML element to parse as a string.
2222
*/

src/urdf/UrdfSphere.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ var UrdfTypes = require('./UrdfTypes');
1010
* A Sphere element in a URDF.
1111
*
1212
* @constructor
13-
* @param {Object} options - An object with the following keys:
13+
* @param {Object} options
1414
* @param {Element} options.xml - The XML element to parse.
1515
*/
1616
function UrdfSphere(options) {
1717
this.type = UrdfTypes.URDF_SPHERE;
1818
this.radius = parseFloat(options.xml.getAttribute('radius'));
1919
}
2020

21-
module.exports = UrdfSphere;
21+
module.exports = UrdfSphere;

src/urdf/UrdfVisual.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var UrdfSphere = require('./UrdfSphere');
1818
* A Visual element in a URDF.
1919
*
2020
* @constructor
21-
* @param {Object} options - An object with the following keys:
21+
* @param {Object} options
2222
* @param {Element} options.xml - The XML element to parse.
2323
*/
2424
function UrdfVisual(options) {
@@ -127,4 +127,4 @@ function UrdfVisual(options) {
127127
}
128128
}
129129

130-
module.exports = UrdfVisual;
130+
module.exports = UrdfVisual;

0 commit comments

Comments
 (0)