GlobalRecorder concept interface. More...
#include <globalrecorder.hpp>
Public Member Functions | |
GlobalRecorder (const std::string &prefix_topic) | |
Constructor for recorder interface. | |
bool | isStarted () |
Check if the ROSbag is opened. | |
void | startRecord (const std::string &prefix_bag="") |
Initialize the recording of the ROSbag. | |
std::string | stopRecord (const std::string &robot_ip="<ROBOT_IP>") |
Terminate the recording of the ROSbag. | |
template<class T > | |
void | write (const std::string &topic, const T &msg, const ros::Time &time=ros::Time::now()) |
Insert data into the ROSbag. | |
void | write (const std::string &topic, const std::vector< geometry_msgs::TransformStamped > &msgtf) |
Private Attributes | |
rosbag::Bag | _bag |
bool | _isStarted |
std::string | _nameBag |
std::string | _prefix_topic |
boost::mutex | _processMutex |
std::vector< Topics > | _topics |
GlobalRecorder concept interface.
Definition at line 57 of file globalrecorder.hpp.
naoqi::recorder::GlobalRecorder::GlobalRecorder | ( | const std::string & | prefix_topic | ) |
Constructor for recorder interface.
Definition at line 58 of file globalrecorder.cpp.
Check if the ROSbag is opened.
Definition at line 138 of file globalrecorder.cpp.
void naoqi::recorder::GlobalRecorder::startRecord | ( | const std::string & | prefix_bag = "" | ) |
Initialize the recording of the ROSbag.
Definition at line 74 of file globalrecorder.cpp.
std::string naoqi::recorder::GlobalRecorder::stopRecord | ( | const std::string & | robot_ip = "<ROBOT_IP>" | ) |
Terminate the recording of the ROSbag.
Definition at line 109 of file globalrecorder.cpp.
void naoqi::recorder::GlobalRecorder::write | ( | const std::string & | topic, |
const T & | msg, | ||
const ros::Time & | time = ros::Time::now() |
||
) | [inline] |
Insert data into the ROSbag.
Definition at line 81 of file globalrecorder.hpp.
void naoqi::recorder::GlobalRecorder::write | ( | const std::string & | topic, |
const std::vector< geometry_msgs::TransformStamped > & | msgtf | ||
) |
Definition at line 142 of file globalrecorder.cpp.
Definition at line 108 of file globalrecorder.hpp.
bool naoqi::recorder::GlobalRecorder::_isStarted [private] |
Definition at line 110 of file globalrecorder.hpp.
std::string naoqi::recorder::GlobalRecorder::_nameBag [private] |
Definition at line 109 of file globalrecorder.hpp.
std::string naoqi::recorder::GlobalRecorder::_prefix_topic [private] |
Definition at line 106 of file globalrecorder.hpp.
boost::mutex naoqi::recorder::GlobalRecorder::_processMutex [private] |
Definition at line 107 of file globalrecorder.hpp.
std::vector<Topics> naoqi::recorder::GlobalRecorder::_topics [private] |
Definition at line 113 of file globalrecorder.hpp.