Last active
August 8, 2020 21:58
-
-
Save madhephaestus/9013b9f153a4fb79aee84f0e224cab8a to your computer and use it in GitHub Desktop.
armtest.groovy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Your code here | |
def base=DeviceManager.getSpecificDevice( "Standard6dof",{ | |
ScriptingEngine.gitScriptRun( | |
"https://github.com/madhephaestus/6dofServoArm.git", "6dofServoArm.xml", | |
null | |
) | |
} | |
) | |
def limb = base.getAllDHChains().get(0) | |
double zLift=25 | |
println "Start from where the arm already is and move it from there with absolute location" | |
TransformNR current = leg0.getCurrentPoseTarget(); | |
current.translateZ(zLift); | |
leg0.setDesiredTaskSpaceTransform(current, 2.0); | |
ThreadUtil.wait(2000)// wait for the legs to fully arrive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment