Skip to content

Commit

Permalink
[humble] Give proper log message for --start-paused (backport #1537) (
Browse files Browse the repository at this point in the history
#1541)

* Add proper message for --start-paused (#1537)

Signed-off-by: Christoph Froehlich <christoph.froehlich@ait.ac.at>
(cherry picked from commit 317286c)

# Conflicts:
#	rosbag2_transport/src/rosbag2_transport/recorder.cpp

* Address merge conflicts

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Co-authored-by: Christoph Fröhlich <christophfroehlich@users.noreply.github.com>
Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
  • Loading branch information
3 people authored Jan 18, 2024
1 parent 3f9016a commit 23f282c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rosbag2_transport/src/rosbag2_transport/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 23f282c

Please sign in to comment.