#include <view.h>
Classes | |
class | iterator |
An iterator that points to a MessageInstance from a bag. More... | |
struct | TrueQuery |
Public Types | |
typedef iterator | const_iterator |
Public Member Functions | |
void | addQuery (Bag const &bag, rs2rosinternal::Time const &start_time=rs2rosinternal::TIME_MIN, rs2rosinternal::Time const &end_time=rs2rosinternal::TIME_MAX) |
Add a query to a view. More... | |
void | addQuery (Bag const &bag, boost::function< bool(ConnectionInfo const *)> query, rs2rosinternal::Time const &start_time=rs2rosinternal::TIME_MIN, rs2rosinternal::Time const &end_time=rs2rosinternal::TIME_MAX) |
Add a query to a view. More... | |
iterator | begin () |
Simply copy the merge_queue state into the iterator. More... | |
iterator | end () |
Default constructed iterator signifies end. More... | |
rs2rosinternal::Time | getBeginTime () |
std::vector< const ConnectionInfo * > | getConnections () |
rs2rosinternal::Time | getEndTime () |
uint32_t | size () |
View (bool const &reduce_overlap=false) | |
Create a view on a bag. More... | |
View (Bag const &bag, rs2rosinternal::Time const &start_time=rs2rosinternal::TIME_MIN, rs2rosinternal::Time const &end_time=rs2rosinternal::TIME_MAX, bool const &reduce_overlap=false) | |
Create a view on a bag. More... | |
View (Bag const &bag, boost::function< bool(ConnectionInfo const *)> query, rs2rosinternal::Time const &start_time=rs2rosinternal::TIME_MIN, rs2rosinternal::Time const &end_time=rs2rosinternal::TIME_MAX, bool const &reduce_overlap=false) | |
Create a view and add a query. More... | |
~View () | |
Protected Member Functions | |
MessageInstance * | newMessageInstance (ConnectionInfo const *connection_info, IndexEntry const &index, Bag const &bag) |
void | update () |
void | updateQueries (BagQuery *q) |
Protected Attributes | |
std::vector< BagQuery * > | queries_ |
std::vector< MessageRange * > | ranges_ |
bool | reduce_overlap_ |
uint32_t | size_cache_ |
uint32_t | size_revision_ |
uint32_t | view_revision_ |
Private Member Functions | |
View & | operator= (View const &view) |
View (View const &view) | |
Friends | |
class | Bag |
class | iterator |
typedef iterator rosbag::View::const_iterator |
rosbag::View::View | ( | bool const & | reduce_overlap = false | ) |
rosbag::View::View | ( | Bag const & | bag, |
rs2rosinternal::Time const & | start_time = rs2rosinternal::TIME_MIN , |
||
rs2rosinternal::Time const & | end_time = rs2rosinternal::TIME_MAX , |
||
bool const & | reduce_overlap = false |
||
) |
Create a view on a bag.
param bag The bag file on which to run this query param start_time The beginning of the time range for the query param end_time The end of the time range for the query param reduce_overlap If multiple views return the same messages, reduce them to a single message
rosbag::View::View | ( | Bag const & | bag, |
boost::function< bool(ConnectionInfo const *)> | query, | ||
rs2rosinternal::Time const & | start_time = rs2rosinternal::TIME_MIN , |
||
rs2rosinternal::Time const & | end_time = rs2rosinternal::TIME_MAX , |
||
bool const & | reduce_overlap = false |
||
) |
Create a view and add a query.
param bag The bag file on which to run this query param query The actual query to evaluate which connections to include param start_time The beginning of the time range for the query param end_time The end of the time range for the query param reduce_overlap If multiple views return the same messages, reduce them to a single message
|
private |
void rosbag::View::addQuery | ( | Bag const & | bag, |
rs2rosinternal::Time const & | start_time = rs2rosinternal::TIME_MIN , |
||
rs2rosinternal::Time const & | end_time = rs2rosinternal::TIME_MAX |
||
) |
void rosbag::View::addQuery | ( | Bag const & | bag, |
boost::function< bool(ConnectionInfo const *)> | query, | ||
rs2rosinternal::Time const & | start_time = rs2rosinternal::TIME_MIN , |
||
rs2rosinternal::Time const & | end_time = rs2rosinternal::TIME_MAX |
||
) |
Add a query to a view.
param bag The bag file on which to run this query param query The actual query to evaluate which connections to include param start_time The beginning of the time range for the query param end_time The end of the time range for the query
View::iterator rosbag::View::begin | ( | void | ) |
View::iterator rosbag::View::end | ( | void | ) |
rs2rosinternal::Time rosbag::View::getBeginTime | ( | ) |
std::vector< const ConnectionInfo * > rosbag::View::getConnections | ( | ) |
rs2rosinternal::Time rosbag::View::getEndTime | ( | ) |
|
protected |
|
protected |