Project Malmo
0.21.0
|
Specifies the type of data that should be recorded from the mission. More...
#include <MissionRecordSpec.h>
Public Member Functions | |
MissionRecordSpec () | |
Constructs an empty mission record specification, saying that nothing should be recorded. | |
MissionRecordSpec (std::string destination) | |
Constructs a mission record with a target file (e.g. More... | |
void | setDestination (const std::string &destination) |
Specifies the destination for the recording. | |
void | recordMP4 (int frames_per_second, int64_t bit_rate) |
Requests that video be recorded, at the specified quality. More... | |
void | recordObservations () |
Requests that observations be recorded. | |
void | recordRewards () |
Requests that rewards be recorded. | |
void | recordCommands () |
Requests that commands be recorded. | |
bool | isRecording () const |
Are we recording anything? | |
Friends | |
class | MissionRecord |
std::ostream & | operator<< (std::ostream &os, const MissionRecordSpec &msp) |
Specifies the type of data that should be recorded from the mission.
malmo::MissionRecordSpec::MissionRecordSpec | ( | std::string | destination | ) |
Constructs a mission record with a target file (e.g.
'data.tgz'). By default, nothing is recorded. Use the other functions to specify what channels should be recorded. WARNING: You cannot re-use the instance of MissionRecordSpec - make a new one per call to AgentHost.startMission.
destination | Filename to save to. |
void malmo::MissionRecordSpec::recordMP4 | ( | int | frames_per_second, |
int64_t | bit_rate | ||
) |
Requests that video be recorded, at the specified quality.
Ensure that the width of the video requested is divisible by 4, and the height of the video requested is divisible by 2.
frames_per_second | The number of frames to record per second. e.g. 20. |
bit_rate | The bit rate to record at. e.g. 400000 for 400kbps. |