Created
June 1, 2015 04:16
-
-
Save anonymous/fefdd4d7d2927ba9a5d1 to your computer and use it in GitHub Desktop.
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
import com.neuronrobotics.sdk.addons.kinematics.DHParameterKinematics; | |
import com.neuronrobotics.sdk.addons.kinematics.math.RotationNR | |
import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR; | |
import com.neuronrobotics.sdk.util.ThreadUtil; | |
TransformNR start = DHArm.getCurrentTaskSpaceTransform(); | |
for(int i=-1;i< 2;i++){ | |
for(int j=-1;j<2;j++){ | |
TransformNR tr = new TransformNR( start.getX()+(100*i)+(100*j), | |
start.getY()+(100*i)+(100*j), | |
start.getZ(), | |
new RotationNR()); | |
println(tr) | |
DHArm.setDesiredTaskSpaceTransform(tr, 2); | |
ThreadUtil.wait(3000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment