Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RJD-1495/fix #1511

Merged
merged 5 commits into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions external/concealer/include/concealer/subscriber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct Subscriber

typename rclcpp::Subscription<Message>::SharedPtr subscription;

auto operator()() const -> const auto & { return *std::atomic_load(&current_value); }
auto operator()() const -> Message { return *std::atomic_load(&current_value); }

template <typename Autoware, typename Callback>
explicit Subscriber(
Expand All @@ -37,7 +37,7 @@ struct Subscriber
topic, quality_of_service,
[this, callback](const typename Message::ConstSharedPtr & message) {
if (std::atomic_store(&current_value, message); current_value) {
callback(*std::atomic_load(&current_value));
callback((*this)());
}
}))
{
Expand Down
Loading