Difference between revisions of "Hubo DRC Peg-In-Hole"

From Lofaro Lab Wiki
Jump to: navigation, search
(Created page with "1. Install openRAVE version 0.9.0 from here (compile it from sources) 2. Install openHubo from here 3. Install Hubo-ach from here 4. Download the github code for the ARCHR pe...")
 
Line 5: Line 5:
  
 
All joints and keys are shown below:
 
All joints and keys are shown below:
 +
 
    if c == 'a':
 
    if c == 'a':
 
         RSP = RSP-0.1;
 
         RSP = RSP-0.1;

Revision as of 23:59, 27 September 2014

1. Install openRAVE version 0.9.0 from here (compile it from sources) 2. Install openHubo from here 3. Install Hubo-ach from here 4. Download the github code for the ARCHR peg-in-hole from here, and run the keyboard example 'HuboKeyboardControl.py' and press the appropriate keyboard key for performing manipulations on the various limbs of DRC. For example, pressing 'a' moves the RSP up 0.1 radians, 'z' moves it down 0.1 radians.

All joints and keys are shown below:

if c == 'a':

   		    RSP = RSP-0.1;
   	    if c == 'z': 
     		    RSP = RSP+0.1;

if c == 's':

   		    RSR = RSR-0.1;
   	    if c == 'x': 
     		    RSR = RSR+0.1;

if c == 'd':

   		    RSY = RSY-0.1;
   	    if c == 'c': 
     		    RSY = RSY+0.1;

if c == 'f':

   		    REB = REB-0.1;
   	    if c == 'v': 
     		    REB = REB+0.1;

if c == 'g':

   		    RWY = RWY-0.1;
   	    if c == 'b': 
     		    RWY = RWY+0.1;

#if c == 'h':

   		    RWP = RWP-0.1;
   	    #if c == 'n': 
     		    RWP = RWP+0.1;
   	    if c == 'w': 
     		    RF1 = 1;
   	    if c == 'e': 
     		    RF1 = -1;
   	    if c == 'r': 
     		    RF2 = 1;
   	    if c == 't': 
     		    RF2 = -1;

note: RF1 and RF2 require a value of 1 or -1 to open or close the two portions of the hand.