#include <playable_bag.h>
Public Member Functions | |
int | bag_id () const |
double | duration_in_seconds () const |
bool | finished () const |
std::tuple< ros::Time, ros::Time > | GetBeginEndTime () const |
rosbag::MessageInstance | GetNextMessage (cartographer_ros_msgs::BagfileProgress *progress) |
bool | IsMessageAvailable () const |
ros::Time | PeekMessageTime () const |
PlayableBag (const std::string &bag_filename, int bag_id, ros::Time start_time, ros::Time end_time, ros::Duration buffer_delay, FilteringEarlyMessageHandler filtering_early_message_handler) | |
std::set< std::string > | topics () const |
Private Member Functions | |
void | AdvanceOneMessage () |
void | AdvanceUntilMessageAvailable () |
Private Attributes | |
std::unique_ptr< rosbag::Bag > | bag_ |
const std::string | bag_filename_ |
const int | bag_id_ |
const ::ros::Duration | buffer_delay_ |
std::deque < rosbag::MessageInstance > | buffered_messages_ |
const double | duration_in_seconds_ |
FilteringEarlyMessageHandler | filtering_early_message_handler_ |
bool | finished_ |
int | message_counter_ |
std::set< std::string > | topics_ |
std::unique_ptr< rosbag::View > | view_ |
rosbag::View::const_iterator | view_iterator_ |
Definition at line 31 of file playable_bag.h.
cartographer_ros::PlayableBag::PlayableBag | ( | const std::string & | bag_filename, |
int | bag_id, | ||
ros::Time | start_time, | ||
ros::Time | end_time, | ||
ros::Duration | buffer_delay, | ||
FilteringEarlyMessageHandler | filtering_early_message_handler | ||
) |
Definition at line 26 of file playable_bag.cc.
void cartographer_ros::PlayableBag::AdvanceOneMessage | ( | ) | [private] |
Definition at line 90 of file playable_bag.cc.
void cartographer_ros::PlayableBag::AdvanceUntilMessageAvailable | ( | ) | [private] |
Definition at line 105 of file playable_bag.cc.
int cartographer_ros::PlayableBag::bag_id | ( | ) | const |
Definition at line 88 of file playable_bag.cc.
double cartographer_ros::PlayableBag::duration_in_seconds | ( | ) | const [inline] |
Definition at line 51 of file playable_bag.h.
bool cartographer_ros::PlayableBag::finished | ( | ) | const [inline] |
Definition at line 52 of file playable_bag.h.
std::tuple< ros::Time, ros::Time > cartographer_ros::PlayableBag::GetBeginEndTime | ( | ) | const |
Definition at line 54 of file playable_bag.cc.
rosbag::MessageInstance cartographer_ros::PlayableBag::GetNextMessage | ( | cartographer_ros_msgs::BagfileProgress * | progress | ) |
Definition at line 58 of file playable_bag.cc.
bool cartographer_ros::PlayableBag::IsMessageAvailable | ( | ) | const |
Definition at line 82 of file playable_bag.cc.
Definition at line 49 of file playable_bag.cc.
std::set<std::string> cartographer_ros::PlayableBag::topics | ( | ) | const [inline] |
Definition at line 50 of file playable_bag.h.
std::unique_ptr<rosbag::Bag> cartographer_ros::PlayableBag::bag_ [private] |
Definition at line 58 of file playable_bag.h.
const std::string cartographer_ros::PlayableBag::bag_filename_ [private] |
Definition at line 63 of file playable_bag.h.
const int cartographer_ros::PlayableBag::bag_id_ [private] |
Definition at line 62 of file playable_bag.h.
const ::ros::Duration cartographer_ros::PlayableBag::buffer_delay_ [private] |
Definition at line 67 of file playable_bag.h.
std::deque<rosbag::MessageInstance> cartographer_ros::PlayableBag::buffered_messages_ [private] |
Definition at line 66 of file playable_bag.h.
const double cartographer_ros::PlayableBag::duration_in_seconds_ [private] |
Definition at line 64 of file playable_bag.h.
FilteringEarlyMessageHandler cartographer_ros::PlayableBag::filtering_early_message_handler_ [private] |
Definition at line 68 of file playable_bag.h.
bool cartographer_ros::PlayableBag::finished_ [private] |
Definition at line 61 of file playable_bag.h.
int cartographer_ros::PlayableBag::message_counter_ [private] |
Definition at line 65 of file playable_bag.h.
std::set<std::string> cartographer_ros::PlayableBag::topics_ [private] |
Definition at line 69 of file playable_bag.h.
std::unique_ptr<rosbag::View> cartographer_ros::PlayableBag::view_ [private] |
Definition at line 59 of file playable_bag.h.
Definition at line 60 of file playable_bag.h.