Package api.advanced
Class BundleCreator
- java.lang.Object
-
- api.advanced.BundleCreator
-
-
Constructor Summary
Constructors Constructor Description BundleCreator()
-
Method Summary
Modifier and Type Method Description static Bundle
moveAllLegs(int hip, int knee, int foot, int time)
Create a bundle which moves all joints of all legs in parallelstatic Bundle
moveLeg(int leg, int hip, int knee, int foot, int time)
Create a bundle which moves all joints of a leg in parallelstatic Sequence
walk()
-
-
-
Method Detail
-
moveLeg
public static Bundle moveLeg(int leg, int hip, int knee, int foot, int time)
Create a bundle which moves all joints of a leg in parallel- Parameters:
leg
- The id of the leg (e.g. 310 for the back right leg; it is the sum of PINConstants.BACK and PINConstants.RIGHT)hip
- The value, the leg will rotate toknee
- The value, the knee will move tofoot
- The value, the foot will move totime
- The default execution time of the generated Bundle- Returns:
- The bundle initialized with the commands to move the leg in the desired way
-
moveAllLegs
public static Bundle moveAllLegs(int hip, int knee, int foot, int time)
Create a bundle which moves all joints of all legs in parallel- Parameters:
hip
- The value, the legs will rotate toknee
- The value, the knees will move tofoot
- The value, the feet will move totime
- The default execution time of the generated Bundle- Returns:
- The bundle initialized with the commands to move the legs in the desired way
-
walk
public static Sequence walk()
-
-