Skip to content

Commit

Permalink
Add proper message for --start-paused (#1537)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Froehlich <christoph.froehlich@ait.ac.at>
  • Loading branch information
christophfroehlich authored Jan 15, 2024
1 parent f3d62df commit 317286c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rosbag2_transport/src/rosbag2_transport/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ void RecorderImpl::record()
discovery_future_ =
std::async(std::launch::async, std::bind(&RecorderImpl::topics_discovery, this));
}
RCLCPP_INFO(node->get_logger(), "Recording...");
if (record_options_.start_paused) {
RCLCPP_INFO(
node->get_logger(), "Wait for recording: Press %s to start.",
enum_key_code_to_str(Recorder::kPauseResumeToggleKey).c_str());
} else {
RCLCPP_INFO(node->get_logger(), "Recording...");
}
}

void RecorderImpl::event_publisher_thread_main()
Expand Down

0 comments on commit 317286c

Please sign in to comment.