23 #include "absl/strings/str_cat.h" 28 #include "modules/data/tools/smart_recorder/proto/smart_recorder_status.pb.h" 29 #include "modules/data/tools/smart_recorder/proto/smart_recorder_triggers.pb.h" 42 const std::string& restored_output_dir);
43 bool Init(
const SmartRecordTrigger& trigger_conf)
override;
52 bool GetNextValidRecord(std::string* record_path)
const;
53 void RestoreMessage(
const uint64_t message_time);
54 void PublishStatus(
const RecordingState state,
55 const std::string& message)
const;
57 std::shared_ptr<cyber::record::Recorder> recorder_ =
nullptr;
58 std::shared_ptr<cyber::Node> smart_recorder_node_ =
nullptr;
59 std::shared_ptr<cyber::Writer<SmartRecorderStatus>> recorder_status_writer_ =
61 std::string default_output_filename_;
62 std::string restore_path_;
63 uint64_t restore_reader_time_ = 0;
64 double max_backward_time_ = 30.0;
65 double min_restore_chunk_ = 5.0;
66 bool is_terminating_ =
false;
67 const int recorder_wait_time_ = 5000;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Init(const SmartRecordTrigger &trigger_conf) override
Realtime processor against recorded tasks that are being recorded.
Definition: realtime_record_processor.h:39
RealtimeRecordProcessor(const std::string &source_record_dir, const std::string &restored_output_dir)
std::string GetDefaultOutputFile() const override
Definition: realtime_record_processor.h:45
virtual ~RealtimeRecordProcessor()=default
const std::string restored_output_dir_
Definition: record_processor.h:50
Process messages and apply the rules based on configured triggers.
Definition: record_processor.h:36