@@ -1558,7 +1558,7 @@ module.exports = function (fn, options) {
15581558 * If you use nodejs, this is the variable you get when you require('roslib')
15591559 */
15601560var ROSLIB = this . ROSLIB || {
1561- REVISION : '1.0.1 '
1561+ REVISION : '1.1.0 '
15621562} ;
15631563
15641564var assign = require ( 'object-assign' ) ;
@@ -2394,7 +2394,10 @@ Ros.prototype.setStatusLevel = function(level, id){
23942394/**
23952395 * Retrieves Action Servers in ROS as an array of string
23962396 *
2397+ * @param callback function with params:
23972398 * * actionservers - Array of action server names
2399+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2400+ * * error - the error message reported by ROS
23982401 */
23992402Ros . prototype . getActionServers = function ( callback , failedCallback ) {
24002403 var getActionServers = new Service ( {
@@ -2426,6 +2429,8 @@ Ros.prototype.getActionServers = function(callback, failedCallback) {
24262429 * @param callback function with params:
24272430 * * topics - Array of topic names
24282431 * * types - Array of message type names
2432+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2433+ * * error - the error message reported by ROS
24292434 */
24302435Ros . prototype . getTopics = function ( callback , failedCallback ) {
24312436 var topicsClient = new Service ( {
@@ -2454,9 +2459,11 @@ Ros.prototype.getTopics = function(callback, failedCallback) {
24542459/**
24552460 * Retrieves Topics in ROS as an array as specific type
24562461 *
2457- * @param topicType topic type to find:
2462+ * @param topicType topic type to find
24582463 * @param callback function with params:
24592464 * * topics - Array of topic names
2465+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2466+ * * error - the error message reported by ROS
24602467 */
24612468Ros . prototype . getTopicsForType = function ( topicType , callback , failedCallback ) {
24622469 var topicsForTypeClient = new Service ( {
@@ -2489,6 +2496,8 @@ Ros.prototype.getTopicsForType = function(topicType, callback, failedCallback) {
24892496 *
24902497 * @param callback - function with the following params:
24912498 * * services - array of service names
2499+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2500+ * * error - the error message reported by ROS
24922501 */
24932502Ros . prototype . getServices = function ( callback , failedCallback ) {
24942503 var servicesClient = new Service ( {
@@ -2517,9 +2526,11 @@ Ros.prototype.getServices = function(callback, failedCallback) {
25172526/**
25182527 * Retrieves list of services in ROS as an array as specific type
25192528 *
2520- * @param serviceType service type to find:
2529+ * @param serviceType service type to find
25212530 * @param callback function with params:
25222531 * * topics - Array of service names
2532+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2533+ * * error - the error message reported by ROS
25232534 */
25242535Ros . prototype . getServicesForType = function ( serviceType , callback , failedCallback ) {
25252536 var servicesForTypeClient = new Service ( {
@@ -2553,6 +2564,8 @@ Ros.prototype.getServicesForType = function(serviceType, callback, failedCallbac
25532564 * @param service name of service:
25542565 * @param callback - function with params:
25552566 * * type - String of the service type
2567+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2568+ * * error - the error message reported by ROS
25562569 */
25572570Ros . prototype . getServiceRequestDetails = function ( type , callback , failedCallback ) {
25582571 var serviceTypeClient = new Service ( {
@@ -2583,9 +2596,11 @@ Ros.prototype.getServiceRequestDetails = function(type, callback, failedCallback
25832596/**
25842597 * Retrieves a detail of ROS service request.
25852598 *
2586- * @param service name of service:
2599+ * @param service name of service
25872600 * @param callback - function with params:
25882601 * * type - String of the service type
2602+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2603+ * * error - the error message reported by ROS
25892604 */
25902605Ros . prototype . getServiceResponseDetails = function ( type , callback , failedCallback ) {
25912606 var serviceTypeClient = new Service ( {
@@ -2618,6 +2633,8 @@ Ros.prototype.getServiceResponseDetails = function(type, callback, failedCallbac
26182633 *
26192634 * @param callback - function with the following params:
26202635 * * nodes - array of node names
2636+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2637+ * * error - the error message reported by ROS
26212638 */
26222639Ros . prototype . getNodes = function ( callback , failedCallback ) {
26232640 var nodesClient = new Service ( {
@@ -2651,6 +2668,8 @@ Ros.prototype.getNodes = function(callback, failedCallback) {
26512668 * * publications - array of published topic names
26522669 * * subscriptions - array of subscribed topic names
26532670 * * services - array of service names hosted
2671+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2672+ * * error - the error message reported by ROS
26542673 */
26552674Ros . prototype . getNodeDetails = function ( node , callback , failedCallback ) {
26562675 var nodesClient = new Service ( {
@@ -2683,6 +2702,8 @@ Ros.prototype.getNodeDetails = function(node, callback, failedCallback) {
26832702 *
26842703 * @param callback function with params:
26852704 * * params - array of param names.
2705+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2706+ * * error - the error message reported by ROS
26862707 */
26872708Ros . prototype . getParams = function ( callback , failedCallback ) {
26882709 var paramsClient = new Service ( {
@@ -2713,6 +2734,8 @@ Ros.prototype.getParams = function(callback, failedCallback) {
27132734 * @param topic name of the topic:
27142735 * @param callback - function with params:
27152736 * * type - String of the topic type
2737+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2738+ * * error - the error message reported by ROS
27162739 */
27172740Ros . prototype . getTopicType = function ( topic , callback , failedCallback ) {
27182741 var topicTypeClient = new Service ( {
@@ -2746,6 +2769,8 @@ Ros.prototype.getTopicType = function(topic, callback, failedCallback) {
27462769 * @param service name of service:
27472770 * @param callback - function with params:
27482771 * * type - String of the service type
2772+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2773+ * * error - the error message reported by ROS
27492774 */
27502775Ros . prototype . getServiceType = function ( service , callback , failedCallback ) {
27512776 var serviceTypeClient = new Service ( {
@@ -2776,9 +2801,11 @@ Ros.prototype.getServiceType = function(service, callback, failedCallback) {
27762801/**
27772802 * Retrieves a detail of ROS message.
27782803 *
2804+ * @param message - String of a topic type
27792805 * @param callback - function with params:
27802806 * * details - Array of the message detail
2781- * @param message - String of a topic type
2807+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2808+ * * error - the error message reported by ROS
27822809 */
27832810Ros . prototype . getMessageDetails = function ( message , callback , failedCallback ) {
27842811 var messageDetailClient = new Service ( {
@@ -2864,6 +2891,9 @@ Ros.prototype.decodeTypeDefs = function(defs) {
28642891 * * topics - Array of topic names
28652892 * * types - Array of message type names
28662893 * * typedefs_full_text - Array of full definitions of message types, similar to `gendeps --cat`
2894+ * @param failedCallback - the callback function when the service call failed (optional). Params:
2895+ * * error - the error message reported by ROS
2896+ *
28672897 */
28682898Ros . prototype . getTopicsAndRawTypes = function ( callback , failedCallback ) {
28692899 var topicsAndRawTypesClient = new Service ( {
@@ -4378,6 +4408,8 @@ function UrdfVisual(options) {
43784408 this . geometry = null ;
43794409 this . material = null ;
43804410
4411+ this . name = options . xml . getAttribute ( 'name' ) ;
4412+
43814413 // Origin
43824414 var origins = xml . getElementsByTagName ( 'origin' ) ;
43834415 if ( origins . length === 0 ) {
0 commit comments