Remove `mjWARN_VGEOMFULL, handle visual geom buffer full warnings in mjvScene`.

PiperOrigin-RevId: 896483023
Change-Id: I6dde2c20d8e8e229cf95e1f002dd10525d3376e6
This commit is contained in:
Yuval Tassa
2026-04-08 07:15:59 -07:00
committed by Copybara-Service
parent 5a2cc6cee3
commit 0e04436d51
17 changed files with 47 additions and 53 deletions
+3 -7
View File
@@ -359,22 +359,18 @@ public class MjScene : MonoBehaviour {
}
if (Data->warning3.number > 0) {
Data->warning3.number = 0;
throw new PhysicsRuntimeException("VGEOMFULL: who constructed a mjvScene?!");
throw new PhysicsRuntimeException("BADQPOS: NaN/inf in qpos.");
}
if (Data->warning4.number > 0) {
Data->warning4.number = 0;
throw new PhysicsRuntimeException("BADQPOS: NaN/inf in qpos.");
throw new PhysicsRuntimeException("BADQVEL: NaN/inf in qvel.");
}
if (Data->warning5.number > 0) {
Data->warning5.number = 0;
throw new PhysicsRuntimeException("BADQVEL: NaN/inf in qvel.");
throw new PhysicsRuntimeException("BADQACC: NaN/inf in qacc.");
}
if (Data->warning6.number > 0) {
Data->warning6.number = 0;
throw new PhysicsRuntimeException("BADQACC: NaN/inf in qacc.");
}
if (Data->warning7.number > 0) {
Data->warning7.number = 0;
throw new PhysicsRuntimeException("BADCTRL: NaN/inf in ctrl.");
}
}