Skip to content

Instantly share code, notes, and snippets.

@golanlevin
golanlevin / ofApp.cpp
Created December 17, 2015 08:57 — forked from aman-tiwari/ofApp.cpp
UArm control from Openframeworks
//--------------------------------------------------------------
void ofApp::setup() {
uarm.setup("/dev/tty.usbserial-A600CRMU", 9600);
}
//--------------------------------------------------------------
// x, y, z in cylindrical coordinates, handRot in degrees
void ofApp::setArmTo(int x, int y, int z, int handRot, bool gripper) {
// UArm expects 1 for an open gripper and 2 for a closed gripper
gripper = (int)gripper + 1;