myoconverter.xml.bodies.Ground

Contains the Ground parser.

@author: Aleksi Ikkala

Module Contents

Classes

Ground

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

class myoconverter.xml.bodies.Ground.Ground[source]

Bases: myoconverter.xml.parsers.IParser

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

parse(xml, add_ground_geom=False)[source]

This function handles the actual parsing and converting.

Parameters:
  • xml – OpenSim Ground XML element

  • add_ground_geom – Boolean to indicate whether a “ground” plane geom should be added to the MuJoCo model

Returns:

None

_parse_component(xml)[source]