We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12db5fb commit 935418cCopy full SHA for 935418c
src/main/java/org/mujoco/MuJoCoModelManager.java
@@ -35,9 +35,8 @@ public class MuJoCoModelManager {
35
private HashMap<String, Double> setEfforts = new HashMap<String, Double>();
36
private HashMap<String, Double> positions = new HashMap<String, Double>();
37
public MuJoCoModelManager(String xml) throws IOException {
38
- //File tempFile = File.createTempFile("mujoco-", ".xml");
39
- //tempFile.deleteOnExit();
40
- File tempFile = new File("/tmp/mujocoxmlTEST.XML");
+ File tempFile = File.createTempFile("mujoco-", ".xml");
+ tempFile.deleteOnExit();
41
Files.write( Paths.get(tempFile.getAbsolutePath()), xml.getBytes());
42
loadFromFile(tempFile);
43
}
0 commit comments