Skip to content

Commit 3dbe682

Browse files
author
M. Fatih Cırıt
committed
refactor local variable name
Signed-off-by: M. Fatih Cırıt <mfc@leodrive.ai>
1 parent dbf528d commit 3dbe682

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

common/tier4_autoware_utils/include/tier4_autoware_utils/ros/published_time_publisher.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ class PublishedTimePublisher
4545
// if the publisher is not in the map, create a new publisher for published time
4646
ensure_publisher_exists(gid_key, publisher->get_topic_name());
4747

48-
const auto & pub_published_time_ = publishers_[gid_key];
48+
const auto & pub_published_time = publishers_[gid_key];
4949

5050
// Check if there are any subscribers, otherwise don't do anything
51-
if (pub_published_time_->get_subscription_count() > 0) {
51+
if (pub_published_time->get_subscription_count() > 0) {
5252
PublishedTime published_time;
5353

5454
published_time.header.stamp = stamp;
5555
published_time.published_stamp = rclcpp::Clock().now();
5656

57-
pub_published_time_->publish(published_time);
57+
pub_published_time->publish(published_time);
5858
}
5959
}
6060

@@ -66,16 +66,16 @@ class PublishedTimePublisher
6666
// if the publisher is not in the map, create a new publisher for published time
6767
ensure_publisher_exists(gid_key, publisher->get_topic_name());
6868

69-
const auto & pub_published_time_ = publishers_[gid_key];
69+
const auto & pub_published_time = publishers_[gid_key];
7070

7171
// Check if there are any subscribers, otherwise don't do anything
72-
if (pub_published_time_->get_subscription_count() > 0) {
72+
if (pub_published_time->get_subscription_count() > 0) {
7373
PublishedTime published_time;
7474

7575
published_time.header = header;
7676
published_time.published_stamp = rclcpp::Clock().now();
7777

78-
pub_published_time_->publish(published_time);
78+
pub_published_time->publish(published_time);
7979
}
8080
}
8181

0 commit comments

Comments
 (0)