Skip to content

Commit

Permalink
feat(autoware_node): add send normal state after registration
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
  • Loading branch information
lexavtanke committed Feb 29, 2024
1 parent 5e96d5b commit 85058c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/autoware_node/src/autoware_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@ void AutowareNode::register_callback()
};

auto future_result = cli_register_->async_send_request(req, response_received_callback);

RCLCPP_INFO(get_logger(), "Sent request");

std::string msg = self_name + " node started";
autoware_control_center_msgs::msg::AutowareNodeState node_state;
node_state.status = autoware_control_center_msgs::msg::AutowareNodeState::NORMAL;
send_state(node_state, msg);
RCLCPP_INFO(get_logger(), "Sent node state");
}

void AutowareNode::heartbeat_callback()
Expand Down

0 comments on commit 85058c7

Please sign in to comment.