info: an information field that contains:
element: the name of the XML element where the flexcomp XML code should be injected. Can be empty if shapeHandle is not empty
shapeHandle: the handle of the shape where the flexcomp XML code should be injected. Can be empty if element is not empty
name: the flexcomp name element. Make sure the name is unique, and possibly derived from the related shape
type: the flexcomp type element. Only grid is currently supported
count: the flexcomp count element
spacing: the flexcomp spacing element
radius: the flexcomp radius element
mass: the flexcomp mass element
pose: the flexcomp pose element
pin: the flexcomp pin element (array of indices)
extraFlexcompXml: additional xml code to be added to the flexcomp element (as attribute)
extraXml: additional xml code to be added as a flexcomp element node
callback: a callback function that is called when the MuJoCo world gets regenerated. This allows to adjust the flexcomp on-the-fly
|