Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active August 8, 2020 21:58
Show Gist options
  • Save madhephaestus/9013b9f153a4fb79aee84f0e224cab8a to your computer and use it in GitHub Desktop.
Save madhephaestus/9013b9f153a4fb79aee84f0e224cab8a to your computer and use it in GitHub Desktop.
armtest.groovy
//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