Skip to content

Commit 2e6dbf0

Browse files
committed
refactor(GoalStatus): Remove old GoalStatus enum, point to new types module
Signed-off-by: Drew Hoener <[email protected]>
1 parent 8f37a2c commit 2e6dbf0

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/core/Action.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import { EventEmitter } from 'eventemitter3';
77
import Ros from '../core/Ros.js';
8-
import { GoalStatus } from '../core/GoalStatus.ts';
8+
import { GoalStatus } from '../types/RosMessageTypes.js';
99

1010
/**
1111
* A ROS 2 action client.
@@ -217,7 +217,7 @@ export default class Action extends EventEmitter {
217217
id: id,
218218
action: this.name,
219219
values: result,
220-
status: GoalStatus.STATUS_SUCCEEDED,
220+
status: GoalStatus.Succeeded,
221221
result: true
222222
};
223223
this.ros.callOnConnection(call);
@@ -235,7 +235,7 @@ export default class Action extends EventEmitter {
235235
id: id,
236236
action: this.name,
237237
values: result,
238-
status: GoalStatus.STATUS_CANCELED,
238+
status: GoalStatus.Canceled,
239239
result: true
240240
};
241241
this.ros.callOnConnection(call);
@@ -251,7 +251,7 @@ export default class Action extends EventEmitter {
251251
op: 'action_result',
252252
id: id,
253253
action: this.name,
254-
status: GoalStatus.STATUS_ABORTED,
254+
status: GoalStatus.Aborted,
255255
result: false
256256
};
257257
this.ros.callOnConnection(call);

src/core/GoalStatus.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)