From c43d40af5f06d23f2dfefcc9d1db239852b4c13c Mon Sep 17 00:00:00 2001 From: Alexey Panferov Date: Wed, 20 Mar 2024 17:41:36 +0300 Subject: [PATCH] fix(test_node): fix uncrustify errors Signed-off-by: Alexey Panferov --- common/test_node/src/test_node.cpp | 2 +- common/test_node/src/test_pub.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/test_node/src/test_node.cpp b/common/test_node/src/test_node.cpp index 3c5e4c7633..c1fd6ce8e2 100644 --- a/common/test_node/src/test_node.cpp +++ b/common/test_node/src/test_node.cpp @@ -29,7 +29,7 @@ TestNode::TestNode(const rclcpp::NodeOptions & options) autoware_node::AutowareNode::self_name.c_str()); monitored_subscription_ = autoware_node::AutowareNode::create_monitored_subscription( - "topic", 10, 10, std::bind(&TestNode::topic_callback, this, _1)); + "topic", 10, 10, std::bind(&TestNode::topic_callback, this, _1)); } void TestNode::topic_callback(const std_msgs::msg::String::SharedPtr msg) diff --git a/common/test_node/src/test_pub.cpp b/common/test_node/src/test_pub.cpp index 695b291427..3be86c7160 100644 --- a/common/test_node/src/test_pub.cpp +++ b/common/test_node/src/test_pub.cpp @@ -29,7 +29,8 @@ using std::chrono::operator""ms; class MinimalPublisher : public rclcpp::Node { public: - MinimalPublisher() : Node("minimal_publisher"), count_(0) + MinimalPublisher() + : Node("minimal_publisher"), count_(0) { rclcpp::QoS qos_profile(10); declare_parameter("hz", 10); @@ -37,8 +38,8 @@ class MinimalPublisher : public rclcpp::Node std::chrono::milliseconds timer_period{static_cast(1.0 / hz * 1000)}; std::chrono::milliseconds lease_duration{static_cast(1.0 / hz * 1000 * 1.1)}; qos_profile.liveliness(RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC) - .liveliness_lease_duration(lease_duration) - .deadline(lease_duration); + .liveliness_lease_duration(lease_duration) + .deadline(lease_duration); publisher_ = this->create_publisher("topic", qos_profile); timer_ = this->create_wall_timer(timer_period, std::bind(&MinimalPublisher::timer_callback, this));