File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ TreeExecutionServer::TreeExecutionServer(const rclcpp::Node::SharedPtr& node)
73
73
handle_accepted (std::move (goal_handle));
74
74
});
75
75
76
- p_->client_server = rclcpp_action::create_client<ExecuteTree>(node , action_name);
76
+ p_->client_server = rclcpp_action::create_client<ExecuteTree>(node_ , action_name);
77
77
78
78
// we use a wall timer to run asynchronously executeRegistration();
79
79
rclcpp::VoidCallbackType callback = [this ]() {
@@ -105,8 +105,6 @@ void TreeExecutionServer::executeRegistration()
105
105
// load trees (XML) from multiple directories
106
106
RegisterBehaviorTrees (p_->params , p_->factory , node_);
107
107
108
- p_->factory_initialized_ = true ;
109
-
110
108
// launch initalization behavior tree if set
111
109
if (!p_->params .tree_on_initialization .empty ())
112
110
{
@@ -116,6 +114,8 @@ void TreeExecutionServer::executeRegistration()
116
114
auto send_goal_options = rclcpp_action::Client<ExecuteTree>::SendGoalOptions ();
117
115
p_->client_server ->async_send_goal (goal_msg, send_goal_options);
118
116
}
117
+
118
+ p_->factory_initialized_ = true ;
119
119
}
120
120
121
121
rclcpp::node_interfaces::NodeBaseInterface::SharedPtr
You can’t perform that action at this time.
0 commit comments