@@ -1080,18 +1080,19 @@ class Node extends rclnodejs.ShadowNode {
10801080 *
10811081 * When the `no_mangle` parameter is `true`, the provided `topic` should be a valid
10821082 * topic name for the middleware (useful when combining ROS with native middleware (e.g. DDS)
1083- * apps). When the `no_mangle` parameter is `False `, the provided `topic` should
1083+ * apps). When the `no_mangle` parameter is `false `, the provided `topic` should
10841084 * follow ROS topic name conventions.
10851085 *
10861086 * `topic` may be a relative, private, or fully qualified topic name.
10871087 * A relative or private topic will be expanded using this node's namespace and name.
10881088 * The queried `topic` is not remapped.
1089+ *
10891090 * @param {string } topic - The topic on which to find the publishers.
1090- * @param {boolean } noDemangle - If `true`, `topic` needs to be a valid middleware topic
1091+ * @param {boolean } [ noDemangle=false] - If `true`, `topic` needs to be a valid middleware topic
10911092 * name, otherwise it should be a valid ROS topic name. Defaults to `false`.
10921093 * @returns {Array } - list of publishers
10931094 */
1094- getPublishersInfoByTopic ( topic , noDemangle ) {
1095+ getPublishersInfoByTopic ( topic , noDemangle = false ) {
10951096 return rclnodejs . getPublishersInfoByTopic (
10961097 this . handle ,
10971098 this . _getValidatedTopic ( topic , noDemangle ) ,
@@ -1107,18 +1108,19 @@ class Node extends rclnodejs.ShadowNode {
11071108 *
11081109 * When the `no_mangle` parameter is `true`, the provided `topic` should be a valid
11091110 * topic name for the middleware (useful when combining ROS with native middleware (e.g. DDS)
1110- * apps). When the `no_mangle` parameter is `False `, the provided `topic` should
1111+ * apps). When the `no_mangle` parameter is `false `, the provided `topic` should
11111112 * follow ROS topic name conventions.
11121113 *
11131114 * `topic` may be a relative, private, or fully qualified topic name.
11141115 * A relative or private topic will be expanded using this node's namespace and name.
11151116 * The queried `topic` is not remapped.
1117+ *
11161118 * @param {string } topic - The topic on which to find the subscriptions.
1117- * @param {boolean } noDemangle - If `True `, `topic` needs to be a valid middleware topic
1118- name, otherwise it should be a valid ROS topic name. Defaults to `False `.
1119+ * @param {boolean } [ noDemangle=false] - If `true `, `topic` needs to be a valid middleware topic
1120+ name, otherwise it should be a valid ROS topic name. Defaults to `false `.
11191121 * @returns {Array } - list of subscriptions
11201122 */
1121- getSubscriptionsInfoByTopic ( topic , noDemangle ) {
1123+ getSubscriptionsInfoByTopic ( topic , noDemangle = false ) {
11221124 return rclnodejs . getSubscriptionsInfoByTopic (
11231125 this . handle ,
11241126 this . _getValidatedTopic ( topic , noDemangle ) ,
@@ -1457,7 +1459,7 @@ class Node extends rclnodejs.ShadowNode {
14571459 * Determine if a parameter descriptor exists.
14581460 *
14591461 * @param {string } name - The name of a descriptor to for.
1460- * @return {boolean } - True if a descriptor has been declared; otherwise false.
1462+ * @return {boolean } - true if a descriptor has been declared; otherwise false.
14611463 */
14621464 hasParameterDescriptor ( name ) {
14631465 return ! ! this . getParameterDescriptor ( name ) ;
0 commit comments