20 #ifndef _MISSIONRECORDSPEC_H_
21 #define _MISSIONRECORDSPEC_H_
24 #include <boost/filesystem.hpp>
34 #include "TimestampedVideoFrame.h"
36 #define LOG_COMPONENT Logger::LOG_RECORDING
44 friend class MissionRecord;
66 void recordMP4(
int frames_per_second, int64_t bit_rate);
97 enum FrameRecordingType
102 struct FrameRecordingSpec
104 FrameRecordingType fr_type;
105 int64_t mp4_bit_rate;
107 bool drop_input_frames;
109 std::map<TimestampedVideoFrame::FrameType, FrameRecordingSpec> video_recordings;
110 bool is_recording_observations;
111 bool is_recording_rewards;
112 bool is_recording_commands;
113 std::string destination;
Specifies the type of data that should be recorded from the mission.
Definition: MissionRecordSpec.h:42
MissionRecordSpec()
Constructs an empty mission record specification, saying that nothing should be recorded.
void recordMP4(TimestampedVideoFrame::FrameType type, int frames_per_second, int64_t bit_rate, bool drop_input_frames)
Requests that video be recorded, for the specified video producer, at the specified quality.
void setDestination(const std::string &destination)
Specifies the destination for the recording.
void recordObservations()
Requests that observations be recorded.
bool isRecording() const
Are we recording anything?
void recordRewards()
Requests that rewards be recorded.
MissionRecordSpec(std::string destination)
Constructs a mission record with a target file (e.g.
void recordMP4(int frames_per_second, int64_t bit_rate)
Requests that video be recorded, for each video producer, at the specified quality.
void recordBitmaps(TimestampedVideoFrame::FrameType type)
Requests that video be recorded, for the specified video producer, in individual bitmap frames.
void recordCommands()
Requests that commands be recorded.
FrameType
Definition: TimestampedVideoFrame.h:42