myoconverter.xml.path_wraps.PathWrap

Contains the PathWrap parser.

@author: Aleksi Ikkala

Module Contents

Classes

PathWrap

This class parses and converts the OpenSim PathWrap XML element to MuJoCo.

class myoconverter.xml.path_wraps.PathWrap.PathWrap[source]

Bases: myoconverter.xml.parsers.IParser

This class parses and converts the OpenSim PathWrap XML element to MuJoCo.

This parser should not be called directly, instead the parser in myoconverter.xml.path_wraps.PathWrapSet should be called.

parse(xml, tendon, params)[source]

This function handles the actual parsing and converting.

Parameters:
  • xml – OpenSim PathWrap XML element

  • tendon – MuJoCo tendon/spatial XML element

  • params – Dictionary of wrapping site parameters

Returns:

Boolean indicating whether a warning should be issued