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

Show remapped topic names #196

Merged
merged 3 commits into from
Apr 26, 2024
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
12 changes: 7 additions & 5 deletions imu_filter_madgwick/src/imu_filter_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,14 @@ void ImuFilterMadgwickRos::reconfigCallback(
void ImuFilterMadgwickRos::checkTopicsTimerCallback()
{
if (use_mag_)
RCLCPP_WARN_STREAM(
get_logger(),
"Still waiting for data on topics /imu/data_raw and /imu/mag...");
else
RCLCPP_WARN_STREAM(get_logger(),
"Still waiting for data on topic /imu/data_raw...");
"Still waiting for data on topics "
<< imu_subscriber_->getTopic() << " and "
<< mag_subscriber_->getTopic() << "...");
else
RCLCPP_WARN_STREAM(get_logger(), "Still waiting for data on topic "
<< imu_subscriber_->getTopic()
<< "...");
}

#include "rclcpp_components/register_node_macro.hpp"
Expand Down