myoconverter.xml.wrap_objects.WrapObject
Contains a higher level Wrapping Object parser.
@author: Aleksi Ikkala
Module Contents
Classes
A parent class to handle common parsing tasks for wrapping objects, like adding MuJoCo geoms. |
- class myoconverter.xml.wrap_objects.WrapObject.WrapObject(**kwargs)[source]
Bases:
myoconverter.xml.parsers.IParserA parent class to handle common parsing tasks for wrapping objects, like adding MuJoCo geoms.
- abstract _parse(xml, **kwargs)[source]
Wrapping object specific parsers must implement this method.
Child classes must implement this method. This is called from the ‘parse’ method below. Add any calculations / conversions that weren’t included in the default calculations / conversions below.
- Parameters:
xml – OpenSim wrapping object XML element
kwargs – Optional keyword arguments
- Returns:
None
- parse(xml, m_body, **kwargs)[source]
This function handles general parsing and converting of wrapping objects.
- Parameters:
xml – OpenSim wrapping object XML element
m_body – MuJoCo body to which this wrapping object belongs to
kwargs – Optional keyword arguments
- Returns:
None
- Raises:
NotImplementedError if an unknown quadrant is defined for this wrapping object