Increase max points in 2D plot from 1000 to 1001.
PiperOrigin-RevId: 787513580 Change-Id: I573c779932fa7411b132020213637a25fa859844
This commit is contained in:
committed by
Copybara-Service
parent
ddb7eb07c7
commit
83435361fa
@@ -472,7 +472,7 @@ shown in the table below. Their names are in the format ``mjKEY_XXX``. They corr
|
||||
- The maximal number of lines per 2D figure (:ref:`mjvFigure`).
|
||||
Defined in `mjvisualize.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjvisualize.h>`_.
|
||||
* - ``mjMAXLINEPNT``
|
||||
- 1000
|
||||
- 1001
|
||||
- The maximal number of points in each line in a 2D figure. Note that the buffer ``mjvFigure.linepnt`` has length
|
||||
``2*mjMAXLINEPNT`` because each point has X and Y coordinates.
|
||||
Defined in `mjvisualize.h <https://github.com/google-deepmind/mujoco/blob/main/include/mujoco/mjvisualize.h>`_.
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#define mjMAXLIGHT 100 // maximum number of lights in a scene
|
||||
#define mjMAXOVERLAY 500 // maximum number of characters in overlay text
|
||||
#define mjMAXLINE 100 // maximum number of lines per plot
|
||||
#define mjMAXLINEPNT 1000 // maximum number points per line
|
||||
#define mjMAXLINEPNT 1001 // maximum number points per line
|
||||
#define mjMAXPLANEGRID 200 // maximum number of grid divisions for plane
|
||||
|
||||
|
||||
|
||||
@@ -7394,7 +7394,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
name='linedata',
|
||||
type=ArrayType(
|
||||
inner_type=ValueType(name='float'),
|
||||
extents=(100, 2000),
|
||||
extents=(100, 2002),
|
||||
),
|
||||
doc='line data (x,y)',
|
||||
),
|
||||
|
||||
@@ -107,7 +107,7 @@ public const int mjNGROUP = 6;
|
||||
public const int mjMAXLIGHT = 100;
|
||||
public const int mjMAXOVERLAY = 500;
|
||||
public const int mjMAXLINE = 100;
|
||||
public const int mjMAXLINEPNT = 1000;
|
||||
public const int mjMAXLINEPNT = 1001;
|
||||
public const int mjMAXPLANEGRID = 200;
|
||||
public const bool THIRD_PARTY_MUJOCO_MJXMACRO_H_ = true;
|
||||
public const bool THIRD_PARTY_MUJOCO_MUJOCO_H_ = true;
|
||||
@@ -6306,7 +6306,7 @@ public unsafe struct mjvFigure_ {
|
||||
public int highlightid;
|
||||
public float selection;
|
||||
public fixed int linepnt[100];
|
||||
public fixed float linedata[100 * 2000];
|
||||
public fixed float linedata[100 * 2002];
|
||||
public fixed int xaxispixel[2];
|
||||
public fixed int yaxispixel[2];
|
||||
public fixed float xaxisdata[2];
|
||||
|
||||
Reference in New Issue
Block a user