Skip to content

Commit b80ccb4

Browse files
committed
Revert "[BtActionNode] [BtServiceNode] clear between calls (ros-navigation#4887)"
This reverts commit a33909b.
1 parent ea0caa0 commit b80ccb4

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

nav2_behavior_tree/include/nav2_behavior_tree/bt_action_node.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ class BtActionNode : public BT::ActionNodeBase
199199
// reset the flag to send the goal or not, allowing the user the option to set it in on_tick
200200
should_send_goal_ = true;
201201

202-
// Clear the input and output messages to make sure we have no leftover from previous calls
203-
goal_ = typename ActionT::Goal();
204-
result_ = typename rclcpp_action::ClientGoalHandle<ActionT>::WrappedResult();
205-
206202
// user defined callback, may modify "should_send_goal_".
207203
on_tick();
208204

nav2_behavior_tree/include/nav2_behavior_tree/bt_service_node.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ class BtServiceNode : public BT::ActionNodeBase
141141
should_send_request_ = true;
142142
should_fail_not_sent_request_ = true;
143143

144-
// Clear the input request to make sure we have no leftover from previous calls
145-
request_ = std::make_shared<typename ServiceT::Request>();
146-
147144
// user defined callback, may modify "should_send_request_".
148145
on_tick();
149146

0 commit comments

Comments
 (0)