@@ -45,16 +45,16 @@ class PublishedTimePublisher
45
45
// if the publisher is not in the map, create a new publisher for published time
46
46
ensure_publisher_exists (gid_key, publisher->get_topic_name ());
47
47
48
- const auto & pub_published_time_ = publishers_[gid_key];
48
+ const auto & pub_published_time = publishers_[gid_key];
49
49
50
50
// 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 ) {
52
52
PublishedTime published_time;
53
53
54
54
published_time.header .stamp = stamp;
55
55
published_time.published_stamp = rclcpp::Clock ().now ();
56
56
57
- pub_published_time_ ->publish (published_time);
57
+ pub_published_time ->publish (published_time);
58
58
}
59
59
}
60
60
@@ -66,16 +66,16 @@ class PublishedTimePublisher
66
66
// if the publisher is not in the map, create a new publisher for published time
67
67
ensure_publisher_exists (gid_key, publisher->get_topic_name ());
68
68
69
- const auto & pub_published_time_ = publishers_[gid_key];
69
+ const auto & pub_published_time = publishers_[gid_key];
70
70
71
71
// 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 ) {
73
73
PublishedTime published_time;
74
74
75
75
published_time.header = header;
76
76
published_time.published_stamp = rclcpp::Clock ().now ();
77
77
78
- pub_published_time_ ->publish (published_time);
78
+ pub_published_time ->publish (published_time);
79
79
}
80
80
}
81
81
0 commit comments