Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Remove obsolete method
Browse files Browse the repository at this point in the history
  • Loading branch information
dmweis committed Nov 15, 2017
1 parent 247d3a9 commit d834a37
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Quadruped/QuadrupedIkDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,28 +48,6 @@ public void Setup()
}
}

[Obsolete("This method is deprecated and will be removed at some point")]
public void StandUpfromGround()
{
float average = (GetLeftFrontLegPosition().Z +
GetRightFrontLegPosition().Z +
GetLeftRearLegPosition().Z +
GetRightRearLegPosition().Z) / 4;
if (average > -9)
{
MoveLeftFrontLeg(new Vector3(-15, 15, 0));
MoveRightFrontLeg(new Vector3(15, 15, 0));
MoveLeftRearLeg(new Vector3(-15, -15, 0));
MoveRightRearLeg(new Vector3(15, -15, 0));
Thread.Sleep(1000);
}
MoveLeftFrontLeg(new Vector3(-15, 15, -13));
MoveRightFrontLeg(new Vector3(15, 15, -13));
MoveLeftRearLeg(new Vector3(-15, -15, -13));
MoveRightRearLeg(new Vector3(15, -15, -13));
Thread.Sleep(500);
}

public void MoveRelativeCenterMass(Vector3 transform)
{
Vector3 leftFrontPosition = GetLeftFrontLegGoal();
Expand Down

0 comments on commit d834a37

Please sign in to comment.