Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jan 23, 2024
1 parent 33e936d commit 25967dc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include "autoware_control_center/visibility_control.hpp"
#include "rclcpp_lifecycle/lifecycle_node.hpp"

#include "autoware_control_center_msgs/msg/heartbeat.hpp"
#include "autoware_control_center_msgs/msg/autoware_node_reports.hpp"
#include "autoware_control_center_msgs/msg/heartbeat.hpp"
#include "autoware_control_center_msgs/srv/autoware_node_deregister.hpp"
#include "autoware_control_center_msgs/srv/autoware_node_register.hpp"

Expand All @@ -45,7 +45,8 @@ class AutowareControlCenter : public rclcpp_lifecycle::LifecycleNode
rclcpp::Service<autoware_control_center_msgs::srv::AutowareNodeRegister>::SharedPtr srv_register_;
rclcpp::Service<autoware_control_center_msgs::srv::AutowareNodeDeregister>::SharedPtr
srv_deregister_;
rclcpp::Publisher<autoware_control_center_msgs::msg::AutowareNodeReports>::SharedPtr node_reports_pub_;
rclcpp::Publisher<autoware_control_center_msgs::msg::AutowareNodeReports>::SharedPtr
node_reports_pub_;
NodeRegistry node_registry_;
std::unordered_map<
std::string, rclcpp::Subscription<autoware_control_center_msgs::msg::Heartbeat>::SharedPtr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include <tier4_autoware_utils/ros/uuid_helper.hpp>

#include "autoware_control_center_msgs/msg/heartbeat.hpp"
#include "autoware_control_center_msgs/msg/autoware_node_report.hpp"
#include "autoware_control_center_msgs/msg/heartbeat.hpp"
#include "autoware_control_center_msgs/srv/autoware_control_center_deregister.hpp"
#include <unique_identifier_msgs/msg/uuid.hpp>

Expand Down Expand Up @@ -58,10 +58,11 @@ AutowareControlCenter::AutowareControlCenter(const rclcpp::NodeOptions & options
"~/srv/autoware_node_deregister",
std::bind(&AutowareControlCenter::deregister_node, this, _1, _2),
rmw_qos_profile_services_default, callback_group_mut_ex_);

node_reports_pub_ = create_publisher<autoware_control_center_msgs::msg::AutowareNodeReports>(
"~/autoware_node_reports", 1);
node_reports_timer_ = create_wall_timer(1000ms, std::bind(&AutowareControlCenter::node_reports_callback, this));
node_reports_timer_ =
create_wall_timer(1000ms, std::bind(&AutowareControlCenter::node_reports_callback, this));

acc_uuid = tier4_autoware_utils::generateUUID();
countdown = 10;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# NodeStatus message designed to provide current status of Autoware node registered to Autoware Control Center
# NodeStatus message designed to provide current status of Autoware node registered to Autoware Control Center

string name_node
bool alive
builtin_interfaces/Duration last_heartbeat
bool alive
builtin_interfaces/Duration last_heartbeat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NodeRegisterStatus message designed to provide the information about all nodes currently
# NodeRegisterStatus message designed to provide the information about all nodes currently

builtin_interfaces/Time stamp
AutowareNodeReport[] nodes
AutowareNodeReport[] nodes

0 comments on commit 25967dc

Please sign in to comment.