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
    
  
  
    
  | /** | |
| * Author: Jason White | |
| * | |
| * Description: | |
| * Reads joystick/gamepad events and displays them. | |
| * | |
| * Compile: | |
| * gcc joystick.c -o joystick | |
| * | |
| * Run: | 
  
    
      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
    
  
  
    
  | from ambf_client import Client | |
| import numpy as np | |
| import time | |
| import rospy | |
| from argparse import ArgumentParser | |
| import dvrk | |
| class PivotPSMs: | |
| def __init__(self, psm_type, control_sim_psm, control_real_psm, movement_time): | 
  
    
      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 matplotlib.pyplot as plt | |
| import numpy as np | |
| import math | |
| class Obj(): | |
| def __init__(self): | |
| self.d0 = 0 | |
| self.v0 = 0 | |
| self.a = 0 |