Saran Tunyasuvunakool
e40b9da181
Merge pull request #201 from aftersomemath:refactor-simulate
...
PiperOrigin-RevId: 465044152
Change-Id: I54e65a30764a444dbd175260314d685fd7ffa6a1
2022-08-03 15:32:15 +01:00
Levi Burner
e036e9a229
Simulate: Make sure all class members are initialized
2022-07-08 16:04:12 -04:00
Levi Burner
655eec1d63
Link GLFW as a shared library by default
...
Use one option name to control building GLFW as static/shared since it
is not straightforward to set it seperately for the samples and simulate
2022-07-08 16:04:12 -04:00
Levi Burner
1788d23da6
Simulate: disable mjsimulate shared library, multiple linkages of glfw cause crash on MacOS
2022-07-08 16:04:12 -04:00
Levi Burner
70ec29a722
Simulate: fix header includes
2022-07-08 16:04:12 -04:00
Levi Burner
a526a6bd78
Simulate: move all glfw calls to main thread to fix MacOS
2022-07-08 16:04:12 -04:00
Levi Burner
ed82f055e8
Simulate: fixes for windows version
2022-07-08 16:04:12 -04:00
Levi Burner
033ca81db6
Simulate: fix reload button causing segfault, make interface changes needed for Python bindings
2022-07-08 16:04:12 -04:00
Levi Burner
447877abef
Simulate creates and maintains its own thread
2022-07-08 16:04:12 -04:00
Levi Burner
65d5ade426
Refactor simulate to split UI from application
...
Fix name of glew library
Move simulate to new directory and refactor to use C++ conventions
Wrap simulate in mujoco namespace
fix namespaces, convert struct to class, use std::lock_guard
use GetMutex to better handle destruction ordering
rename mjSimulate to Simulate
nit: space before public and typo
move startup print
use nullptr instead of NULL
use GetInstance() to get simulate object
convert init to default constructor
2022-07-08 16:04:07 -04:00