@@ -19,7 +19,7 @@ declare class Action<TGoal, TFeedback, TResult> extends EventEmitter2 {
19
19
name : string ;
20
20
actionType : string ;
21
21
isAdvertised : boolean ;
22
- _actionCallback : ( ( request : ActionGoal < TGoal > , response : any ) => any ) | null ;
22
+ _actionCallback : ( ( goal : TGoal , response : any ) => any ) | null ;
23
23
_cancelCallback : any ;
24
24
/**
25
25
* @callback sendGoalResultCallback
@@ -52,7 +52,7 @@ declare class Action<TGoal, TFeedback, TResult> extends EventEmitter2 {
52
52
cancelGoal ( id : string ) : void ;
53
53
/**
54
54
* @callback advertiseCallback
55
- * @param {ActionGoal< TGoal> } request - The action goal.
55
+ * @param {TGoal } goal - The action goal.
56
56
* @param {Object } response - An empty dictionary. Take care not to overwrite this. Instead, only modify the values within.
57
57
* It should return true if the action has finished successfully,
58
58
* i.e., without any fatal errors.
@@ -63,7 +63,7 @@ declare class Action<TGoal, TFeedback, TResult> extends EventEmitter2 {
63
63
*
64
64
* @param {advertiseCallback } callback - This works similarly to the callback for a C++ action.
65
65
*/
66
- advertise ( callback : ( request : ActionGoal < TGoal > , response : any ) => any ) : void ;
66
+ advertise ( callback : ( goal : TGoal , response : any ) => any ) : void ;
67
67
/**
68
68
* Unadvertise a previously advertised action.
69
69
*/
@@ -103,6 +103,5 @@ declare class Action<TGoal, TFeedback, TResult> extends EventEmitter2 {
103
103
import EventEmitter2_1 = require( "eventemitter2" ) ;
104
104
import EventEmitter2 = EventEmitter2_1 . EventEmitter2 ;
105
105
import Ros = require( "../core/Ros" ) ;
106
- import ActionGoal = require( "./ActionGoal" ) ;
107
106
import ActionFeedback = require( "./ActionFeedback" ) ;
108
107
import ActionResult = require( "./ActionResult" ) ;
0 commit comments