Fix array extent parsing logic for introspect.

Also fix the mjxmacro_test to correctly assert that all array extents defined in the X macros can be correctly parsed from field comments.

PiperOrigin-RevId: 747808525
Change-Id: I0b08dc263f8a46118a07200ae044d6c491207245
This commit is contained in:
Saran Tunyasuvunakool
2025-04-15 04:02:15 -07:00
committed by Copybara-Service
parent ec186430ef
commit 71a7004057
4 changed files with 54 additions and 32 deletions
+2 -2
View File
@@ -375,8 +375,8 @@ struct mjData_ {
mjtNum* qfrc_constraint; // constraint force (nv x 1)
// computed by mj_inverse
mjtNum* qfrc_inverse; // net external force; should equal: (nv x 1)
// qfrc_applied + J'*xfrc_applied + qfrc_actuator
mjtNum* qfrc_inverse; // net external force; should equal:
// qfrc_applied + J'*xfrc_applied + qfrc_actuator (nv x 1)
// computed by mj_sensorAcc/mj_rnePostConstraint if needed; rotation:translation format
mjtNum* cacc; // com-based acceleration (nbody x 6)