Skip to content

Commit

Permalink
Show remapped topic names
Browse files Browse the repository at this point in the history
Signed-off-by: Tamaki Nishino <otamachan@gmail.com>
  • Loading branch information
otamachan committed Apr 25, 2024
1 parent c8a27cd commit e354e41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions imu_filter_madgwick/src/imu_filter_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,13 @@ void ImuFilterMadgwickRos::checkTopicsTimerCallback()
if (use_mag_)
RCLCPP_WARN_STREAM(
get_logger(),
"Still waiting for data on topics /imu/data_raw and /imu/mag...");
"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/data_raw...");
"Still waiting for data on topic "
<< imu_subscriber_->getTopic() << "...");
}

#include "rclcpp_components/register_node_macro.hpp"
Expand Down

0 comments on commit e354e41

Please sign in to comment.