Permalink
Browse files

Added gravity point

  • Loading branch information...
1 parent ba36fa6 commit 425367c166878d5ef218d6cb154f15938c029b08 @HalfdanJ HalfdanJ committed Jul 17, 2011
Showing with 5 additions and 2 deletions.
  1. +2 −2 src/ofxIndustrialRobot/src/ofxIndustrialRobotVisualizer.h
  2. +3 −0 src/testApp.cpp
@@ -16,8 +16,8 @@
class View : public ofxMSAInteractiveObject {
public:
View(){
- enableMouseEvents();
- enableKeyEvents();
+ //enableMouseEvents();
+ //enableKeyEvents();
click = false;
release = false;
}
View
@@ -3,11 +3,14 @@
//--------------------------------------------------------------
void testApp::setup(){
industrialRobot = new ofxIndustrialRobot(this);
+ industrialRobot->thread.controller->setInput(ofxIndustrialRobotController::Gravity);
industrialRobot->gotoStartPosition();
}
//--------------------------------------------------------------
void testApp::update(){
+ industrialRobot->setGravityTarget(ofxVec3f(1487.6, 666.2, 1038.6), ofxVec3f(0.77, -0.44, 0.62));
+
if(industrialRobot->getEmergencyStop()){
//unlockMotors->setChecked(false);

0 comments on commit 425367c

Please sign in to comment.