@classmethod
def from_joint_constraint(cls, joint_constraint):
    """Creates a `JointConstraint` from a :class:`compas_fab.robots.JointConstraint`.
        """
    c = joint_constraint
    return cls(c.joint_name, c.value, c.tolerance_above, c.tolerance_below,
        c.weight)
