Introduce new logging API, fixes #858

PiperOrigin-RevId: 930744288
Change-Id: I6ec1203b55c031390f3eef23192e2337508ce886
This commit is contained in:
Yuval Tassa
2026-06-11 14:36:17 -07:00
committed by Copybara-Service
parent a2abaf7aef
commit 58f6d52491
45 changed files with 2586 additions and 422 deletions
+7
View File
@@ -172,6 +172,7 @@ class Simulate {
bool ui_update_joint;
bool ui_update_ctrl;
bool ui_update_equality;
bool ui_update_logging;
bool ui_remake_ctrl;
} pending_ = {};
@@ -257,6 +258,12 @@ class Simulate {
int enable[mjNENABLE] = {0};
int enableactuator[mjNGROUP] = {0};
// logging: need sync
mjtByte log_console = 0;
mjtByte log_file = 0;
mjtByte log_topics[mjNTOPIC] = {0};
mjTimerStat timer_prev_[mjNTIMER] = {};
// rendering: need sync
int camera = 0;