Report which body has too-small mass/inertia in compilation error.

PiperOrigin-RevId: 776196017
Change-Id: Ib81efb170347a57cdc4b446c14cd7b8f5357958c
This commit is contained in:
Yuval Tassa
2025-06-26 10:39:31 -07:00
committed by Copybara-Service
parent afc35451a0
commit 21bae3a388
4 changed files with 7 additions and 23 deletions
-3
View File
@@ -425,9 +425,6 @@ class mjCModel : public mjCModel_, private mjSpec {
// compute qpos0
void ComputeReference();
// return true if all bodies have valid mass and inertia
bool CheckBodiesMassInertia(std::vector<mjCBody*> bodies);
// return true if body has valid mass and inertia
bool CheckBodyMassInertia(mjCBody* body);