#include <snapshotter.h>
Public Types | |
| typedef std::pair< queue_t::const_iterator, queue_t::const_iterator > | range_t |
Public Member Functions | |
| void | clear () |
| ros::Duration | duration () const |
| void | fillStatus (rosgraph_msgs::TopicStatistics &status) |
| int64_t | getMessageSize (SnapshotMessage const &msg) const |
| MessageQueue (SnapshotterTopicOptions const &options) | |
| SnapshotMessage | pop () |
| void | push (SnapshotMessage const &msg) |
| range_t | rangeFromTimes (ros::Time const &start, ros::Time const &end) |
| void | setSubscriber (boost::shared_ptr< ros::Subscriber > sub) |
Private Types | |
| typedef std::deque< SnapshotMessage > | queue_t |
Private Member Functions | |
| void | _clear () |
| SnapshotMessage | _pop () |
| void | _push (SnapshotMessage const &msg) |
| bool | preparePush (int32_t size, ros::Time const &time) |
Private Attributes | |
| boost::mutex | lock |
| SnapshotterTopicOptions | options_ |
| queue_t | queue_ |
| int64_t | size_ |
| friend | Snapshotter |
| boost::shared_ptr< ros::Subscriber > | sub_ |
Definition at line 176 of file snapshotter.h.
|
private |
Definition at line 187 of file snapshotter.h.
| typedef std::pair<queue_t::const_iterator, queue_t::const_iterator> rosbag_snapshot::MessageQueue::range_t |
Definition at line 206 of file snapshotter.h.
|
explicit |
Definition at line 100 of file snapshotter.cpp.
|
private |
Definition at line 126 of file snapshotter.cpp.
|
private |
Definition at line 217 of file snapshotter.cpp.
|
private |
Definition at line 206 of file snapshotter.cpp.
| void rosbag_snapshot::MessageQueue::clear | ( | ) |
Definition at line 120 of file snapshotter.cpp.
| ros::Duration rosbag_snapshot::MessageQueue::duration | ( | ) | const |
Definition at line 132 of file snapshotter.cpp.
| void rosbag_snapshot::MessageQueue::fillStatus | ( | rosgraph_msgs::TopicStatistics & | status | ) |
Definition at line 109 of file snapshotter.cpp.
| int64_t rosbag_snapshot::MessageQueue::getMessageSize | ( | SnapshotMessage const & | msg | ) | const |
Definition at line 196 of file snapshotter.cpp.
| SnapshotMessage rosbag_snapshot::MessageQueue::pop | ( | ) |
Definition at line 190 of file snapshotter.cpp.
|
private |
Definition at line 140 of file snapshotter.cpp.
| void rosbag_snapshot::MessageQueue::push | ( | SnapshotMessage const & | msg | ) |
Definition at line 179 of file snapshotter.cpp.
| MessageQueue::range_t rosbag_snapshot::MessageQueue::rangeFromTimes | ( | ros::Time const & | start, |
| ros::Time const & | end | ||
| ) |
Definition at line 226 of file snapshotter.cpp.
| void rosbag_snapshot::MessageQueue::setSubscriber | ( | boost::shared_ptr< ros::Subscriber > | sub | ) |
Definition at line 104 of file snapshotter.cpp.
|
private |
Definition at line 182 of file snapshotter.h.
|
private |
Definition at line 184 of file snapshotter.h.
|
private |
Definition at line 188 of file snapshotter.h.
|
private |
Definition at line 186 of file snapshotter.h.
|
private |
Definition at line 178 of file snapshotter.h.
|
private |
Definition at line 190 of file snapshotter.h.