Hexapode: Api Tutorials
Aus FABLAB FSG
Das ist die Seite mit den Links zu allen Tutorials für die Hexapode Api aus dem Projekt: Hexapode: Lynxmotion Roboter
Inhaltsverzeichnis
Basiswissen zur Hexapoden Api
"time" ist immer in millisekunden anzugeben "pos" ist immer zwischen 0 und 1500 anzugeben
TODO Bild das hüfte,knie unde fuß sowie die bein zählung erlklärt
Tutoials
Bewege einen Servo
Hexapode hexapode = Hexapode.getInstance(); hexapode.moveServo(servo, pos, time);
Bewege Beine
BundleCreator.moveLeg(leg, hip, knee, foot, time);
Bundles
Bundle bundle = new Bundle(time); bundle.add(servo, pos); bundle.add(servo2, pos2); bundle.exec(time);
Collections
Collection collection = new Collection(); Bundle bundle = new Bundle(time); collection.add(bundle);
Collection collection2 = new Colletion(); collection.add(collection2);
BundleCreator
MoveLeg
Bundle bundle = BundleCreator.moveLeg(leg, hip, knee, foot, time);
MoveAllLegs
Bundle bundle = BundleCreator.moveAllLegs(hip, knee, foot, time);