#include "ros/time.h"
#include "rosbag/bag.h"
#include "rosbag/view.h"
#include "std_msgs/Int8.h"
#include "std_msgs/UInt16.h"
#include "std_msgs/Int32.h"
#include "std_msgs/UInt64.h"
#include "std_msgs/String.h"
#include <string>
#include <vector>
#include "boost/foreach.hpp"
#include <gtest/gtest.h>
Go to the source code of this file.
Functions | |
void | create_a_different_test_bag (const std::string &filename) |
void | create_test_bag (const std::string &filename) |
int | main (int argc, char **argv) |
template<typename T > | |
T | make_std_msg (const typename T::_data_type &data) |
void | serialize_bag (rosbag::Bag &bag, const char *filename) |
TEST (rosbag_storage, iterator_copy_constructor) | |
TEST (rosbag_storage, iterator_copy_assignment) | |
TEST (rosbag_storage, iterate_bag) | |
TEST (rosbag_storage, reuse_bag) | |
Variables | |
const char * | bag_filename = "/tmp/rosbag_storage_create_and_iterate_bag.bag" |
const char * | bag_filename2 = "/tmp/rosbag_storage_create_and_iterate_bag2.bag" |
void create_a_different_test_bag | ( | const std::string & | filename | ) |
Definition at line 34 of file create_and_iterate_bag.cpp.
void create_test_bag | ( | const std::string & | filename | ) |
Definition at line 23 of file create_and_iterate_bag.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 154 of file create_and_iterate_bag.cpp.
T make_std_msg | ( | const typename T::_data_type & | data | ) |
Definition at line 17 of file create_and_iterate_bag.cpp.
void serialize_bag | ( | rosbag::Bag & | bag, |
const char * | filename | ||
) |
Definition at line 127 of file create_and_iterate_bag.cpp.
TEST | ( | rosbag_storage | , |
iterator_copy_constructor | |||
) |
Definition at line 51 of file create_and_iterate_bag.cpp.
TEST | ( | rosbag_storage | , |
iterator_copy_assignment | |||
) |
Definition at line 67 of file create_and_iterate_bag.cpp.
TEST | ( | rosbag_storage | , |
iterate_bag | |||
) |
Definition at line 84 of file create_and_iterate_bag.cpp.
TEST | ( | rosbag_storage | , |
reuse_bag | |||
) |
Definition at line 146 of file create_and_iterate_bag.cpp.
const char* bag_filename = "/tmp/rosbag_storage_create_and_iterate_bag.bag" |
Definition at line 48 of file create_and_iterate_bag.cpp.
const char* bag_filename2 = "/tmp/rosbag_storage_create_and_iterate_bag2.bag" |
Definition at line 49 of file create_and_iterate_bag.cpp.