Increase maximum number of UI elements per section in Simulate.

PiperOrigin-RevId: 578268786
Change-Id: Ia584fb1782a6f20cdb64ec13bfa0bbcb211b1165
This commit is contained in:
Google DeepMind
2023-10-31 12:35:43 -07:00
committed by Copybara-Service
parent 084facc9ab
commit 7e419276ca
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -10,6 +10,7 @@ General
1. Added sub-terms of total passive forces in ``mjData.qfrc_passive`` to :ref:`mjData`:
``qfrc_{spring, damper, gravcomp, fluid}``. The sum of these vectors equals ``qfrc_passive``.
2. Increased ``mjMAXUIITEM`` (maximum number of UI elements per section in Simulate) to 200.
MJX
^^^
+1 -1
View File
@@ -18,7 +18,7 @@
#include <mujoco/mjrender.h>
#define mjMAXUISECT 10 // maximum number of sections
#define mjMAXUIITEM 100 // maximum number of items per section
#define mjMAXUIITEM 200 // maximum number of items per section
#define mjMAXUITEXT 300 // maximum number of chars in edittext and other
#define mjMAXUINAME 40 // maximum number of chars in name
#define mjMAXUIMULTI 35 // maximum number of radio/select items in group
+1 -1
View File
@@ -8458,7 +8458,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
name='item',
type=ArrayType(
inner_type=ValueType(name='mjuiItem'),
extents=(100,),
extents=(200,),
),
doc='preallocated array of items',
),
+1 -1
View File
@@ -64,7 +64,7 @@ public const bool mjUSEDOUBLE = true;
public const double mjMINVAL = 1e-15;
public const bool THIRD_PARTY_MUJOCO_MJUI_H_ = true;
public const int mjMAXUISECT = 10;
public const int mjMAXUIITEM = 100;
public const int mjMAXUIITEM = 200;
public const int mjMAXUITEXT = 300;
public const int mjMAXUINAME = 40;
public const int mjMAXUIMULTI = 35;