Skip to content

Instantly share code, notes, and snippets.

@madhephaestus
Last active May 24, 2020 19:30
Show Gist options
  • Save madhephaestus/6c25be397b10c1201660e8282acd0222 to your computer and use it in GitHub Desktop.
Save madhephaestus/6c25be397b10c1201660e8282acd0222 to your computer and use it in GitHub Desktop.
testGripper.groovy
//ScriptingEngine.gitScriptRun("https://github.com/CommonWealthRobotics/DeviceProviders.git","loadAll.groovy", null);
def robot = DeviceManager.getSpecificDevice( "HephaestusArmV2",{
return MobileBaseLoader.fromGit(
"https://github.com/Hephaestus-Arm/HephaestusArm2.git",
"hephaestus.xml"
)
})
def dev = DeviceManager.getSpecificDevice( "hephaestus-16c00486")
for (int i=0;i<180;i++){
dev.setGripper(i);
Thread.sleep(20)
}
for (int i=180;i>0;i--){
dev.setGripper(i);
Thread.sleep(20)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment