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 Mar 27, 2024
1 parent 8646daf commit 9cfeb2c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
#include "autoware_control_center_msgs/srv/autoware_node_error.hpp"
#include "autoware_control_center_msgs/srv/autoware_node_register.hpp"

#include <string>
#include <map>
#include <string>
#include <unordered_map>
#include <vector>

Expand Down
6 changes: 4 additions & 2 deletions common/autoware_control_center/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<package format="3">
<name>autoware_control_center</name>
<version>0.0.0</version>
<description>Autoware Control Center (ACC) is an Autoware.Core package designed to manage
and monitor Autoware nodes within a system.</description>
<description>
Autoware Control Center (ACC) is an Autoware.Core package designed to manage
and monitor Autoware nodes within a system.
</description>
<maintainer email="[email protected]">M. Fatih Cırıt</maintainer>
<license>Apache-2.0</license>

Expand Down
9 changes: 5 additions & 4 deletions common/autoware_node/src/autoware_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <autoware_utils/ros/uuid_helper.hpp>
#include <rclcpp/rclcpp.hpp>

#include "autoware_control_center_msgs/srv/autoware_node_register.hpp"
#include "autoware_control_center_msgs/msg/status.hpp"
#include "autoware_control_center_msgs/srv/autoware_node_register.hpp"

#include <chrono>

Expand All @@ -35,7 +35,8 @@ AutowareNode::AutowareNode(
: LifecycleNode(node_name, ns, options)
{
RCLCPP_INFO(get_logger(), "AutowareNode::AutowareNode()");
declare_parameter<int>("heartbeat_period", 200); // TODO(lexavtanke): remove default and add schema
declare_parameter<int>(
"heartbeat_period", 200); // TODO(lexavtanke): remove default and add schema
declare_parameter<int>("register_timer_period", 500);
std::chrono::milliseconds heartbeat_period(get_parameter("heartbeat_period").as_int());
std::chrono::milliseconds register_timer_period(get_parameter("register_timer_period").as_int());
Expand Down Expand Up @@ -68,8 +69,8 @@ AutowareNode::AutowareNode(
"/autoware_control_center/srv/autoware_node_register", rmw_qos_profile_default,
callback_group_mut_ex_);

register_timer_ =
this->create_wall_timer(register_timer_period, std::bind(&AutowareNode::register_callback, this));
register_timer_ = this->create_wall_timer(
register_timer_period, std::bind(&AutowareNode::register_callback, this));

using std::placeholders::_1;
using std::placeholders::_2;
Expand Down

0 comments on commit 9cfeb2c

Please sign in to comment.