@@ -1558,7 +1558,7 @@ module.exports = function (fn, options) {
1558
1558
* If you use nodejs, this is the variable you get when you require('roslib')
1559
1559
*/
1560
1560
var ROSLIB = this . ROSLIB || {
1561
- REVISION : '1.0.1 '
1561
+ REVISION : '1.1.0 '
1562
1562
} ;
1563
1563
1564
1564
var assign = require ( 'object-assign' ) ;
@@ -2394,7 +2394,10 @@ Ros.prototype.setStatusLevel = function(level, id){
2394
2394
/**
2395
2395
* Retrieves Action Servers in ROS as an array of string
2396
2396
*
2397
+ * @param callback function with params:
2397
2398
* * 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
2398
2401
*/
2399
2402
Ros . prototype . getActionServers = function ( callback , failedCallback ) {
2400
2403
var getActionServers = new Service ( {
@@ -2426,6 +2429,8 @@ Ros.prototype.getActionServers = function(callback, failedCallback) {
2426
2429
* @param callback function with params:
2427
2430
* * topics - Array of topic names
2428
2431
* * 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
2429
2434
*/
2430
2435
Ros . prototype . getTopics = function ( callback , failedCallback ) {
2431
2436
var topicsClient = new Service ( {
@@ -2454,9 +2459,11 @@ Ros.prototype.getTopics = function(callback, failedCallback) {
2454
2459
/**
2455
2460
* Retrieves Topics in ROS as an array as specific type
2456
2461
*
2457
- * @param topicType topic type to find:
2462
+ * @param topicType topic type to find
2458
2463
* @param callback function with params:
2459
2464
* * 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
2460
2467
*/
2461
2468
Ros . prototype . getTopicsForType = function ( topicType , callback , failedCallback ) {
2462
2469
var topicsForTypeClient = new Service ( {
@@ -2489,6 +2496,8 @@ Ros.prototype.getTopicsForType = function(topicType, callback, failedCallback) {
2489
2496
*
2490
2497
* @param callback - function with the following params:
2491
2498
* * 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
2492
2501
*/
2493
2502
Ros . prototype . getServices = function ( callback , failedCallback ) {
2494
2503
var servicesClient = new Service ( {
@@ -2517,9 +2526,11 @@ Ros.prototype.getServices = function(callback, failedCallback) {
2517
2526
/**
2518
2527
* Retrieves list of services in ROS as an array as specific type
2519
2528
*
2520
- * @param serviceType service type to find:
2529
+ * @param serviceType service type to find
2521
2530
* @param callback function with params:
2522
2531
* * 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
2523
2534
*/
2524
2535
Ros . prototype . getServicesForType = function ( serviceType , callback , failedCallback ) {
2525
2536
var servicesForTypeClient = new Service ( {
@@ -2553,6 +2564,8 @@ Ros.prototype.getServicesForType = function(serviceType, callback, failedCallbac
2553
2564
* @param service name of service:
2554
2565
* @param callback - function with params:
2555
2566
* * 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
2556
2569
*/
2557
2570
Ros . prototype . getServiceRequestDetails = function ( type , callback , failedCallback ) {
2558
2571
var serviceTypeClient = new Service ( {
@@ -2583,9 +2596,11 @@ Ros.prototype.getServiceRequestDetails = function(type, callback, failedCallback
2583
2596
/**
2584
2597
* Retrieves a detail of ROS service request.
2585
2598
*
2586
- * @param service name of service:
2599
+ * @param service name of service
2587
2600
* @param callback - function with params:
2588
2601
* * 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
2589
2604
*/
2590
2605
Ros . prototype . getServiceResponseDetails = function ( type , callback , failedCallback ) {
2591
2606
var serviceTypeClient = new Service ( {
@@ -2618,6 +2633,8 @@ Ros.prototype.getServiceResponseDetails = function(type, callback, failedCallbac
2618
2633
*
2619
2634
* @param callback - function with the following params:
2620
2635
* * 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
2621
2638
*/
2622
2639
Ros . prototype . getNodes = function ( callback , failedCallback ) {
2623
2640
var nodesClient = new Service ( {
@@ -2651,6 +2668,8 @@ Ros.prototype.getNodes = function(callback, failedCallback) {
2651
2668
* * publications - array of published topic names
2652
2669
* * subscriptions - array of subscribed topic names
2653
2670
* * 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
2654
2673
*/
2655
2674
Ros . prototype . getNodeDetails = function ( node , callback , failedCallback ) {
2656
2675
var nodesClient = new Service ( {
@@ -2683,6 +2702,8 @@ Ros.prototype.getNodeDetails = function(node, callback, failedCallback) {
2683
2702
*
2684
2703
* @param callback function with params:
2685
2704
* * 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
2686
2707
*/
2687
2708
Ros . prototype . getParams = function ( callback , failedCallback ) {
2688
2709
var paramsClient = new Service ( {
@@ -2713,6 +2734,8 @@ Ros.prototype.getParams = function(callback, failedCallback) {
2713
2734
* @param topic name of the topic:
2714
2735
* @param callback - function with params:
2715
2736
* * 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
2716
2739
*/
2717
2740
Ros . prototype . getTopicType = function ( topic , callback , failedCallback ) {
2718
2741
var topicTypeClient = new Service ( {
@@ -2746,6 +2769,8 @@ Ros.prototype.getTopicType = function(topic, callback, failedCallback) {
2746
2769
* @param service name of service:
2747
2770
* @param callback - function with params:
2748
2771
* * 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
2749
2774
*/
2750
2775
Ros . prototype . getServiceType = function ( service , callback , failedCallback ) {
2751
2776
var serviceTypeClient = new Service ( {
@@ -2776,9 +2801,11 @@ Ros.prototype.getServiceType = function(service, callback, failedCallback) {
2776
2801
/**
2777
2802
* Retrieves a detail of ROS message.
2778
2803
*
2804
+ * @param message - String of a topic type
2779
2805
* @param callback - function with params:
2780
2806
* * 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
2782
2809
*/
2783
2810
Ros . prototype . getMessageDetails = function ( message , callback , failedCallback ) {
2784
2811
var messageDetailClient = new Service ( {
@@ -2864,6 +2891,9 @@ Ros.prototype.decodeTypeDefs = function(defs) {
2864
2891
* * topics - Array of topic names
2865
2892
* * types - Array of message type names
2866
2893
* * 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
+ *
2867
2897
*/
2868
2898
Ros . prototype . getTopicsAndRawTypes = function ( callback , failedCallback ) {
2869
2899
var topicsAndRawTypesClient = new Service ( {
@@ -4378,6 +4408,8 @@ function UrdfVisual(options) {
4378
4408
this . geometry = null ;
4379
4409
this . material = null ;
4380
4410
4411
+ this . name = options . xml . getAttribute ( 'name' ) ;
4412
+
4381
4413
// Origin
4382
4414
var origins = xml . getElementsByTagName ( 'origin' ) ;
4383
4415
if ( origins . length === 0 ) {
0 commit comments