#include <bag_manager.hpp>
|
| BagManager (const std::string &path, const std::string &default_topic) |
|
template<class T > |
void | write (const T &msg) |
|
template<class T > |
void | write (const std::string &topic, const T &msg) |
|
| ~BagManager () |
|
Produces a rosbag with given message data.
Definition at line 13 of file bag_manager.hpp.
generic_control_toolbox::BagManager::BagManager |
( |
const std::string & |
path, |
|
|
const std::string & |
default_topic |
|
) |
| |
Open a bag on the given path.
- Parameters
-
path | The path where to record the bag. |
default_topic | The default topic name for the bag to record. |
Definition at line 5 of file bag_manager.cpp.
generic_control_toolbox::BagManager::~BagManager |
( |
| ) |
|
int generic_control_toolbox::BagManager::numOfFiles |
( |
const std::string & |
path | ) |
const |
|
private |
Returns the number of bag files in the recording directory.
- Parameters
-
path | Path to the recording directory. |
- Returns
- Number of files of extension "*.bag" in the directory.
Definition at line 18 of file bag_manager.cpp.
template<class T >
void generic_control_toolbox::BagManager::write |
( |
const T & |
msg | ) |
|
Add a message to the bag file on the default topic.
- Parameters
-
msg | The message to be written. |
Definition at line 56 of file bag_manager.hpp.
template<class T >
void generic_control_toolbox::BagManager::write |
( |
const std::string & |
topic, |
|
|
const T & |
msg |
|
) |
| |
Add a message to the bag file on a given topic.
- Parameters
-
topic | The topic name. |
msg | The message to be written. |
Definition at line 62 of file bag_manager.hpp.
std::string generic_control_toolbox::BagManager::default_topic_ |
|
private |
The documentation for this class was generated from the following files: