Skip to content

Commit fa98c27

Browse files
chfritzchris-smith
authored andcommitted
Remove latching from action client publications (#97)
Make action client publications not latch by default to be consistent with the C++ implementation.
1 parent 5f6aa36 commit fa98c27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/ActionClientInterface.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class ActionClientInterface extends EventEmitter {
4141

4242
const nh = options.nh;
4343

44-
const goalOptions = Object.assign({ queueSize: 10, latching: true }, options.goal);
44+
const goalOptions = Object.assign({ queueSize: 10, latching: false }, options.goal);
4545
this._goalPub = nh.advertise(this._actionServer + '/goal',
4646
this._actionType + 'Goal',
4747
goalOptions);
4848

49-
const cancelOptions = Object.assign({ queueSize: 10, latching: true }, options.cancel);
49+
const cancelOptions = Object.assign({ queueSize: 10, latching: false }, options.cancel);
5050
this._cancelPub = nh.advertise(this._actionServer + '/cancel',
5151
'actionlib_msgs/GoalID',
5252
cancelOptions);

0 commit comments

Comments
 (0)