File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import { EventEmitter } from 'eventemitter3' ;
7
7
import Ros from '../core/Ros.js' ;
8
- import { GoalStatus } from '../core/GoalStatus.ts ' ;
8
+ import { GoalStatus } from '../types/RosMessageTypes.js ' ;
9
9
10
10
/**
11
11
* A ROS 2 action client.
@@ -217,7 +217,7 @@ export default class Action extends EventEmitter {
217
217
id : id ,
218
218
action : this . name ,
219
219
values : result ,
220
- status : GoalStatus . STATUS_SUCCEEDED ,
220
+ status : GoalStatus . Succeeded ,
221
221
result : true
222
222
} ;
223
223
this . ros . callOnConnection ( call ) ;
@@ -235,7 +235,7 @@ export default class Action extends EventEmitter {
235
235
id : id ,
236
236
action : this . name ,
237
237
values : result ,
238
- status : GoalStatus . STATUS_CANCELED ,
238
+ status : GoalStatus . Canceled ,
239
239
result : true
240
240
} ;
241
241
this . ros . callOnConnection ( call ) ;
@@ -251,7 +251,7 @@ export default class Action extends EventEmitter {
251
251
op : 'action_result' ,
252
252
id : id ,
253
253
action : this . name ,
254
- status : GoalStatus . STATUS_ABORTED ,
254
+ status : GoalStatus . Aborted ,
255
255
result : false
256
256
} ;
257
257
this . ros . callOnConnection ( call ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments