File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ var Transform = require('../math/Transform');
24
24
* * updateDelay - the time (in ms) to wait after a new subscription
25
25
* to update the TF republisher's list of TFs
26
26
* * topicTimeout - the timeout parameter for the TF republisher
27
+ * * serverName (optional) - the name of the tf2_web_republisher server
27
28
*/
28
29
function TFClient ( options ) {
29
30
options = options || { } ;
@@ -40,6 +41,7 @@ function TFClient(options) {
40
41
secs : secs ,
41
42
nsecs : nsecs
42
43
} ;
44
+ this . serverName = options . serverName || '/tf2_web_republisher' ;
43
45
44
46
this . currentGoal = false ;
45
47
this . currentTopic = false ;
@@ -48,7 +50,7 @@ function TFClient(options) {
48
50
49
51
// Create an Action client
50
52
this . actionClient = this . ros . ActionClient ( {
51
- serverName : '/tf2_web_republisher' ,
53
+ serverName : this . serverName ,
52
54
actionName : 'tf2_web_republisher/TFSubscriptionAction'
53
55
} ) ;
54
56
You can’t perform that action at this time.
0 commit comments