File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 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)
7373 handle_accepted (std::move (goal_handle));
7474 });
7575
76- p_->client_server = rclcpp_action::create_client<ExecuteTree>(node , action_name);
76+ p_->client_server = rclcpp_action::create_client<ExecuteTree>(node_ , action_name);
7777
7878 // we use a wall timer to run asynchronously executeRegistration();
7979 rclcpp::VoidCallbackType callback = [this ]() {
@@ -105,8 +105,6 @@ void TreeExecutionServer::executeRegistration()
105105 // load trees (XML) from multiple directories
106106 RegisterBehaviorTrees (p_->params , p_->factory , node_);
107107
108- p_->factory_initialized_ = true ;
109-
110108 // launch initalization behavior tree if set
111109 if (!p_->params .tree_on_initialization .empty ())
112110 {
@@ -116,6 +114,8 @@ void TreeExecutionServer::executeRegistration()
116114 auto send_goal_options = rclcpp_action::Client<ExecuteTree>::SendGoalOptions ();
117115 p_->client_server ->async_send_goal (goal_msg, send_goal_options);
118116 }
117+
118+ p_->factory_initialized_ = true ;
119119}
120120
121121rclcpp::node_interfaces::NodeBaseInterface::SharedPtr
You can’t perform that action at this time.
0 commit comments