Saran Tunyasuvunakool
9d9493153c
Fix GCC "declaration of ... changes meaning" errors.
...
PiperOrigin-RevId: 470175500
Change-Id: If13a81f308f803d3cc4731b3d4d0561cfe56d5c8
2022-08-26 00:13:57 -07:00
Saran Tunyasuvunakool
3240596c3a
Call GLFW functions via a dynamic dispatch table.
...
This allows us to use GLFW without needing to introduce a link-time dependency on the library, which in turn enables us to get GLFW through Python.
PiperOrigin-RevId: 470100999
Change-Id: I27c84ad3310afdbebd582ab0033b6a963ba6307e
2022-08-25 15:41:53 -07:00
Kevin Zakka
d466e390fc
Add new simulate to CI.
...
PiperOrigin-RevId: 468670988
Change-Id: I2c6c7ac4763402f2a3e8df734746477e54a8ed8e
2022-08-19 04:17:10 -07:00
Copybara-Service
396fdf00c3
Merge pull request #425 from aftersomemath:cull-face-flag
...
PiperOrigin-RevId: 466904386
Change-Id: Icd5515c2bbb8f8f3417501ea43c8e5ae22b32f91
2022-08-11 02:44:37 -07:00
Yuval Tassa
4d24d56c64
Fix simulate window title.
...
PiperOrigin-RevId: 465763279
Change-Id: I21405891071ae151c057c40725be645fc28cd748
2022-08-06 07:53:11 -07:00
Kevin Zakka
80b4ffdd6a
Add screenshot button to simulate.
...
PiperOrigin-RevId: 465628684
Change-Id: I0eb86d6b18c25bb437f197229be6d1c57ccbc50a
2022-08-05 12:56:32 -07:00
Levi Burner
581f009c02
Cull face flag
2022-08-05 11:53:46 -04:00
Yuval Tassa
b966a37855
Add optional azimuth and elevation to initial free camera.
...
- Add `azimuth` and `elevation` to `visual.global`.
- Add `mjv_defaultFreeCamera`.
- Use `mjv_defaultFreeCamera` in `simulate`.
PiperOrigin-RevId: 465505244
Change-Id: I61e60f14a990d4e2d220958adb75c325001978ee
2022-08-05 01:04:02 -07:00
Levi Burner
7fb1ffe712
Invert condition variable predicate
2022-08-03 15:59:14 -04:00
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
4269202e20
Install mjsimulate shared library
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
62008a0e19
Simulate: turn on PIC when hardening
2022-07-08 16:04:12 -04:00
Levi Burner
95510a07d4
Simulate: fix MacOS build (still crashes due to GLFW misusage)
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
1d4461fce6
Simulate: Use new cmake system fix build errors introduced with rebase
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
9f4a7bf4fc
Workaround so simulate compiled with GCC does not lose OpenGL symbols
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