Skip to content

Commit

Permalink
Use get_message_order_timestamp(..) with update_with_limited_rate(..)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
  • Loading branch information
morlov-apexai committed Feb 9, 2025
1 parent 74db33a commit a6d02d2
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions rosbag2_transport/src/rosbag2_transport/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1099,13 +1099,8 @@ void PlayerImpl::play_messages_from_queue()
}
// Updating progress bar in this code section protected
// by the mutex skip_message_in_main_play_loop_mutex_.
if (play_options_.message_order == MessageOrder::RECEIVED_TIMESTAMP) {
progress_bar_->update_with_limited_rate(
message_ptr->recv_timestamp, PlayerStatus::RUNNING);
} else if (play_options_.message_order == MessageOrder::SENT_TIMESTAMP) {
progress_bar_->update_with_limited_rate(
message_ptr->send_timestamp, PlayerStatus::RUNNING);
}
progress_bar_->update_with_limited_rate(
get_message_order_timestamp(message_ptr), PlayerStatus::RUNNING);
}
message_ptr = take_next_message_from_queue();
}
Expand Down

0 comments on commit a6d02d2

Please sign in to comment.