Mechanism2D

class wpilib.simulation.Mechanism2D

Bases: pybind11_builtins.pybind11_object

setLigamentAngle(ligamentPath: str, angle: float)None

Set/Create the angle of a ligament

Parameters
  • ligamentPath – json path to the ligament

  • angle – to set the ligament

setLigamentLength(ligamentPath: str, length: float)None

Set/Create the length of a ligament

Parameters
  • ligamentPath – json path to the ligament

  • length – to set the ligament