From 23f282c66bd741372fc7935bffd956207f711a80 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 18:36:35 -0800 Subject: [PATCH] [humble] Give proper log message for `--start-paused` (backport #1537) (#1541) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add proper message for --start-paused (#1537) Signed-off-by: Christoph Froehlich (cherry picked from commit 317286c98472205593d5b0a791d06fea42613ba3) # Conflicts: # rosbag2_transport/src/rosbag2_transport/recorder.cpp * Address merge conflicts Signed-off-by: Michael Orlov --------- Signed-off-by: Michael Orlov Co-authored-by: Christoph Fröhlich Co-authored-by: Michael Orlov --- rosbag2_transport/src/rosbag2_transport/recorder.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rosbag2_transport/src/rosbag2_transport/recorder.cpp b/rosbag2_transport/src/rosbag2_transport/recorder.cpp index 7f72a43b94..573e0c0c92 100644 --- a/rosbag2_transport/src/rosbag2_transport/recorder.cpp +++ b/rosbag2_transport/src/rosbag2_transport/recorder.cpp @@ -200,7 +200,14 @@ void Recorder::record() discovery_future_ = std::async(std::launch::async, std::bind(&Recorder::topics_discovery, this)); } - RCLCPP_INFO(get_logger(), "Recording..."); + + if (record_options_.start_paused) { + RCLCPP_INFO( + get_logger(), "Waiting for recording: Press %s to start.", + enum_key_code_to_str(Recorder::kPauseResumeToggleKey).c_str()); + } else { + RCLCPP_INFO(get_logger(), "Recording..."); + } } void Recorder::event_publisher_thread_main()