Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MalmoLoadMissionFromXmlFile
private static void InitMissionSpecs()
{
var missionXmlDefinition = File.ReadAllText("SampleMission.xml");
_mission = new MissionSpec(missionXmlDefinition, false);
_mission.requestVideo(640, 480);
var recordedFileName = $"./mission_data{DateTime.Now:hh mm ss}.tgz";
_missionRecord = new MissionRecordSpec(recordedFileName);
_missionRecord.recordCommands();
_missionRecord.recordMP4(20, 400000);
_missionRecord.recordRewards();
_missionRecord.recordObservations();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment