Add plugins list to mjSpec Python API.
Fixes #2061. PiperOrigin-RevId: 677762985 Change-Id: I8e407373e7b505d9b0f1c023e97c5ea92169bbf6
This commit is contained in:
committed by
Copybara-Service
parent
91cedfd65c
commit
0ba11b9623
@@ -4432,6 +4432,15 @@ mjs_asMaterial
|
||||
|
||||
Safely cast an element as mjsMaterial, or return NULL if the element is not an mjsMaterial.
|
||||
|
||||
.. _mjs_asPlugin:
|
||||
|
||||
mjs_asPlugin
|
||||
~~~~~~~~~~~~
|
||||
|
||||
.. mujoco-include:: mjs_asPlugin
|
||||
|
||||
Safely cast an element as mjsPlugin, or return NULL if the element is not an mjsPlugin.
|
||||
|
||||
.. _AttributeSetters:
|
||||
|
||||
Attribute setters
|
||||
|
||||
@@ -1738,7 +1738,7 @@ typedef struct mjsOrientation_ { // alternative orientation specifiers
|
||||
double euler[3]; // Euler angles
|
||||
} mjsOrientation;
|
||||
typedef struct mjsPlugin_ { // plugin specification
|
||||
mjsElement* instance; // element type
|
||||
mjsElement* element; // element type
|
||||
mjString* name; // name
|
||||
mjString* instance_name; // instance name
|
||||
int plugin_slot; // global registered slot number of the plugin
|
||||
@@ -3622,6 +3622,7 @@ mjsHField* mjs_asHField(mjsElement* element);
|
||||
mjsSkin* mjs_asSkin(mjsElement* element);
|
||||
mjsTexture* mjs_asTexture(mjsElement* element);
|
||||
mjsMaterial* mjs_asMaterial(mjsElement* element);
|
||||
mjsPlugin* mjs_asPlugin(mjsElement* element);
|
||||
void mjs_setBuffer(mjByteVec* dest, const void* array, int size);
|
||||
void mjs_setString(mjString* dest, const char* text);
|
||||
void mjs_setStringVec(mjStringVec* dest, const char* text);
|
||||
|
||||
Reference in New Issue
Block a user