Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
cartographer_ros::PlayableBag Class Reference

#include <playable_bag.h>

Public Types

using FilteringEarlyMessageHandler = std::function< bool(const rosbag::MessageInstance &)>
 

Public Member Functions

int bag_id () const
 
std::tuple< ros::Time, ros::TimeGetBeginEndTime () const
 
rosbag::MessageInstance GetNextMessage ()
 
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)
 

Private Member Functions

void AdvanceOneMessage ()
 
void AdvanceUntilMessageAvailable ()
 

Private Attributes

std::unique_ptr< rosbag::Bagbag_
 
const std::string bag_filename_
 
const int bag_id_
 
const ::ros::Duration buffer_delay_
 
std::deque< rosbag::MessageInstancebuffered_messages_
 
const double duration_in_seconds_
 
FilteringEarlyMessageHandler filtering_early_message_handler_
 
bool finished_
 
int log_counter_
 
std::unique_ptr< rosbag::Viewview_
 
rosbag::View::const_iterator view_iterator_
 

Detailed Description

Definition at line 28 of file playable_bag.h.

Member Typedef Documentation

◆ FilteringEarlyMessageHandler

Definition at line 34 of file playable_bag.h.

Constructor & Destructor Documentation

◆ PlayableBag()

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.

Member Function Documentation

◆ AdvanceOneMessage()

void cartographer_ros::PlayableBag::AdvanceOneMessage ( )
private

Definition at line 78 of file playable_bag.cc.

◆ AdvanceUntilMessageAvailable()

void cartographer_ros::PlayableBag::AdvanceUntilMessageAvailable ( )
private

Definition at line 92 of file playable_bag.cc.

◆ bag_id()

int cartographer_ros::PlayableBag::bag_id ( ) const

Definition at line 76 of file playable_bag.cc.

◆ GetBeginEndTime()

std::tuple< ros::Time, ros::Time > cartographer_ros::PlayableBag::GetBeginEndTime ( ) const

Definition at line 53 of file playable_bag.cc.

◆ GetNextMessage()

rosbag::MessageInstance cartographer_ros::PlayableBag::GetNextMessage ( )

Definition at line 57 of file playable_bag.cc.

◆ IsMessageAvailable()

bool cartographer_ros::PlayableBag::IsMessageAvailable ( ) const

Definition at line 70 of file playable_bag.cc.

◆ PeekMessageTime()

ros::Time cartographer_ros::PlayableBag::PeekMessageTime ( ) const

Definition at line 48 of file playable_bag.cc.

Member Data Documentation

◆ bag_

std::unique_ptr<rosbag::Bag> cartographer_ros::PlayableBag::bag_
private

Definition at line 51 of file playable_bag.h.

◆ bag_filename_

const std::string cartographer_ros::PlayableBag::bag_filename_
private

Definition at line 56 of file playable_bag.h.

◆ bag_id_

const int cartographer_ros::PlayableBag::bag_id_
private

Definition at line 55 of file playable_bag.h.

◆ buffer_delay_

const ::ros::Duration cartographer_ros::PlayableBag::buffer_delay_
private

Definition at line 60 of file playable_bag.h.

◆ buffered_messages_

std::deque<rosbag::MessageInstance> cartographer_ros::PlayableBag::buffered_messages_
private

Definition at line 59 of file playable_bag.h.

◆ duration_in_seconds_

const double cartographer_ros::PlayableBag::duration_in_seconds_
private

Definition at line 57 of file playable_bag.h.

◆ filtering_early_message_handler_

FilteringEarlyMessageHandler cartographer_ros::PlayableBag::filtering_early_message_handler_
private

Definition at line 61 of file playable_bag.h.

◆ finished_

bool cartographer_ros::PlayableBag::finished_
private

Definition at line 54 of file playable_bag.h.

◆ log_counter_

int cartographer_ros::PlayableBag::log_counter_
private

Definition at line 58 of file playable_bag.h.

◆ view_

std::unique_ptr<rosbag::View> cartographer_ros::PlayableBag::view_
private

Definition at line 52 of file playable_bag.h.

◆ view_iterator_

rosbag::View::const_iterator cartographer_ros::PlayableBag::view_iterator_
private

Definition at line 53 of file playable_bag.h.


The documentation for this class was generated from the following files:


cartographer_ros
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:06:05