Created
November 13, 2017 23:51
-
-
Save elbruno/851be6f42572dd5c08c658256b61329e to your computer and use it in GitHub Desktop.
MalmoLoadMissionFromXmlFile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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