myoconverter.xml.joints.WeldJoint

Contains the UniversalJoint parser.

@author: Aleksi Ikkala

Module Contents

Classes

WeldJoint

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

class myoconverter.xml.joints.WeldJoint.WeldJoint[source]

Bases: myoconverter.xml.parsers.IParser

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

MuJoCo connects two bodies together as weld joints, if there are no joints defined.

parse(xml, **kwargs)[source]

This function handles the actual parsing and converting – which is no-op in this case.

Parameters:
  • xml – OpenSim WeldJoint XML element

  • kwargs – Optional keyword arguments

Returns:

A list of MuJoCo XML joints, a list of joint parameters