23namespace localization {
26using cyber::record::RecordReader;
33 const std::string &topic,
34 const std::function<
void(
const std::string &)> call_back) {
35 call_back_map_[topic] = call_back;
36 topics_.push_back(topic);
44 if (itr != call_back_map_.end()) {
51 for (
const std::string &file_name : file_names) {
bool ReadMessage(RecordMessage *message, uint64_t begin_time=0, uint64_t end_time=std::numeric_limits< uint64_t >::max())
Read one message from reader.
void Subscribe(const std::string &topic, const std::function< void(const std::string &)> call_back)
void Read(const std::string &file_name)
Basic data struct of record message.
std::string content
The content of the message.
std::string channel_name
The channel name of the message.