Classes | Namespaces | Functions | Variables
mechanism_analyse.py File Reference

Go to the source code of this file.

Classes

class  mechanism_analyse.pca_plot_gui

Namespaces

namespace  mechanism_analyse

Functions

def mechanism_analyse.bin
 take max force magnitude within a bin size
def mechanism_analyse.clean_data_forces
 remove pkls in which the forces are unreasonable large or small
def mechanism_analyse.compare_tangential_total_magnitude
 plot errorbars showing 1 sigma for tangential component of the force and the total magnitude of the force.
def mechanism_analyse.compute_average_velocity
 compute the average velocity = total angle / total time.
def mechanism_analyse.compute_trajectory_velocity
 mech_x must be in RADIANS.
def mechanism_analyse.compute_velocity
 returns the median of the velocity.
def mechanism_analyse.correlate_trials
 l list of trials with which to correlate c1 trial is a list of forces (each element is the max force or some other representative value for a given angle) lab_list - list of labels
def mechanism_analyse.different_classes_rotary
 one of the figures for the paper.
def mechanism_analyse.dimen_reduction_mechanisms
def mechanism_analyse.distance_of_handle_from_edges
def mechanism_analyse.errorbar_one_mechanism
def mechanism_analyse.errorbar_one_mechanism_max
def mechanism_analyse.extract_pkls
 get all the information from all the pkls in one directory.
def mechanism_analyse.filter_dir_list
def mechanism_analyse.get_mech_name
 get mechanism name from the directory name.
def mechanism_analyse.handle_height_histogram
def mechanism_analyse.input_mechanism_list
 list all the mechanisms in dir_list and allow user to type the numbers of the desired mechanisms.
def mechanism_analyse.make_vector
def mechanism_analyse.make_vector_mechanism
def mechanism_analyse.max_force_hist
 makes a scatter plot with the radius along the x axis and the max force along the y-axis.
def mechanism_analyse.max_force_radius_scatter
 makes a scatter plot with the radius along the x axis and the max force along the y-axis.
def mechanism_analyse.max_force_vs_velocity
def mechanism_analyse.mechanism_radius_histogram
def mechanism_analyse.plot_handle_height
def mechanism_analyse.plot_handle_height_no_fridge_no_freezer
def mechanism_analyse.plot_handle_height_no_office
def mechanism_analyse.plot_opening_distances_drawers
def mechanism_analyse.plot_tangential_force
def mechanism_analyse.plot_velocity
def mechanism_analyse.radial_tangential_ratio

Variables

tuple mechanism_analyse.aarr = np.matrix(np.array(acc)[idxs])
list mechanism_analyse.aarr_l = []
list mechanism_analyse.acc_arr = states[2,:]
tuple mechanism_analyse.bar1 = mechanism_radius_histogram(filter_dir_list(dir_list, name=None))
tuple mechanism_analyse.bar2 = mechanism_radius_histogram(l1+l2, color='y')
tuple mechanism_analyse.ch_list = input_mechanism_list(dir_list)
list mechanism_analyse.cl = []
tuple mechanism_analyse.d = extract_pkls(dir, True)
tuple mechanism_analyse.d_list = input_mechanism_list(dir_list)
string mechanism_analyse.dest = 'max_force_hist'
tuple mechanism_analyse.di = extract_pkls(d, open)
tuple mechanism_analyse.dir
tuple mechanism_analyse.dir_list = commands.getoutput('ls -d %s/*/'%(opt.dir))
tuple mechanism_analyse.door_smd = mfd.DoorMassDamper(radius)
 mechanism_analyse.farr = forces.A1
tuple mechanism_analyse.forces = np.matrix(d['ftan_l_l'][i])
list mechanism_analyse.forces_l = []
list mechanism_analyse.frad_l_l = di['frad_l_l']
list mechanism_analyse.ftan_l_l = di['ftan_l_l']
string mechanism_analyse.help = 'count the number of trajectories for each mechanism'
tuple mechanism_analyse.idxs = np.where(np.logical_and(xarr > math.radians(1), xarr < math.radians(15)))
tuple mechanism_analyse.l = glob.glob(d+'/*'+trial+'*mechanism_trajectories*.pkl')
tuple mechanism_analyse.l1 = filter_dir_list(dir_list, name='ree')
tuple mechanism_analyse.l2 = filter_dir_list(dir_list, name='ge')
list mechanism_analyse.lab_list = []
list mechanism_analyse.labels = ['Other', 'Freezers and Refrigerators']
tuple mechanism_analyse.mass = np.mean(np.divide(farr, acc_arr))
list mechanism_analyse.mech = t[-1]
list mechanism_analyse.mech_list = []
list mechanism_analyse.mech_name_list = []
list mechanism_analyse.mech_nm = mech_list[i]
list mechanism_analyse.mechx_l = d['mechx_l_l']
list mechanism_analyse.mechx_l_l = di['mechx_l_l']
string mechanism_analyse.nm = '_'
tuple mechanism_analyse.ones = np.ones(xarr.shape[1])
tuple mechanism_analyse.p = optparse.OptionParser()
tuple mechanism_analyse.pkl_list = commands.getoutput('ls %s/*.pkl'%(opt.dir))
string mechanism_analyse.plot_title = 'Freezers'
tuple mechanism_analyse.predicted_forces = door_smd.predict(states_l[i][[1,2],:])
list mechanism_analyse.predicted_forces_mass = mass*states_l[i]
list mechanism_analyse.rad = di['rad']
list mechanism_analyse.radius = d['rad']
tuple mechanism_analyse.states = np.column_stack(states_l)
list mechanism_analyse.states_l = []
tuple mechanism_analyse.t = m.split('/')
list mechanism_analyse.time_l_l = di['time_l_l']
list mechanism_analyse.time_list = d['time_l_l']
tuple mechanism_analyse.traj_vel = compute_trajectory_velocity(mechx_l_l[j],time_l_l[j],1)
list mechanism_analyse.traj_vel_l = []
list mechanism_analyse.trial_num_list = d['trial_num_l']
list mechanism_analyse.typ = di['typ']
string mechanism_analyse.type = 'string'
tuple mechanism_analyse.varr = np.matrix(np.array(vel)[idxs])
list mechanism_analyse.varr_l = []
int mechanism_analyse.window_len = 15
tuple mechanism_analyse.xarr = np.array(mechx_l)
list mechanism_analyse.xarr_l = []


2010_biorob_everyday_mechanics
Author(s): Advait Jain, Hai Nguyen, Charles C. Kemp (Healthcare Robotics Lab, Georgia Tech)
autogenerated on Wed Nov 27 2013 11:58:43