Functions | |
def | main (argv) |
Variables | |
abcd = rosparam.get_param("/csv_proc/abcd") | |
args | |
bbox | |
cost_min = min(cost_values_i) | |
cost_min_index = cost_values_i.index(cost_min) | |
list | cost_values = [] |
list | cost_values_i = [] |
csvreader = csv.reader(csvfile, delimiter=' ', quotechar='|') | |
Opening the csv file and getting the values for time and voltage. More... | |
default_flow_style | |
filename = rosparam.get_param("/csv_proc/file_name") | |
Parameters for the Python script. More... | |
format | |
mode = rosparam.get_param("/csv_proc/mode") | |
new_x = values_filt*cos(theta)-poly_vals*sin(theta) | |
new_y = values_filt*sin(theta)+poly_vals*cos(theta) | |
new_y_temp = new_y | |
list | off_values = [] |
int | off_y = -6000 |
list | off_y_values_i = [] |
opts | |
p1 = np.poly1d(z1) | |
p2 = np.poly1d(z2) | |
p3 = np.poly1d(z3) | |
poly_vals = np.polyval(abcd, values_filt) | |
Polynomial Evaluation for the filtered signal and the function from the non-moving case. More... | |
robot_name = rosparam.get_param("/csv_proc/robot_name") | |
row = row[0].split(',') | |
secArray = np.asarray(time_values) | |
Plotting graphics for the Voltage vs Time. More... | |
ss = lambday1,y2:((y1-y2)**2).sum() | |
ss1 = ss(time_values,new_y_temp) | |
float | theta = -0.2 |
list | theta_values = [] |
time_values = time_values[::-1] | |
values_filt = sg.filter(voltArray) | |
Savitzky Golay Filter Applied to the Battery Voltage. More... | |
float | volt_v = (float)(row[1])*1000.0 |
voltArray = np.asarray(volt_values) | |
xp = np.linspace(49000, 43000, 100) | |
yaml_file = open("voltage_filter.yaml", "w") | |
dictionary | yl = {} |
z1 = np.polyfit(voltArray, secArray,1) | |
z1_res = time_values-z1_val | |
z1_val = np.polyval(z1, volt_values) | |
Residuals Analysis. More... | |
z2 = np.polyfit(voltArray, secArray,2) | |
z2_res = time_values-z2_val | |
z2_val = np.polyval(z2, volt_values) | |
z3 = np.polyfit(voltArray, secArray,3) | |
list | z3_l = [] |
z3_res = time_values-z3_val | |
z3_val = np.polyval(z3, volt_values) | |
def time_volt.main | ( | argv | ) |
Definition at line 32 of file time_volt.py.
time_volt.abcd = rosparam.get_param("/csv_proc/abcd") |
Definition at line 51 of file time_volt.py.
time_volt.args |
Definition at line 54 of file time_volt.py.
time_volt.bbox |
Definition at line 115 of file time_volt.py.
time_volt.cost_min = min(cost_values_i) |
Definition at line 309 of file time_volt.py.
time_volt.cost_min_index = cost_values_i.index(cost_min) |
Definition at line 310 of file time_volt.py.
list time_volt.cost_values = [] |
Definition at line 279 of file time_volt.py.
list time_volt.cost_values_i = [] |
Definition at line 291 of file time_volt.py.
time_volt.csvreader = csv.reader(csvfile, delimiter=' ', quotechar='|') |
Opening the csv file and getting the values for time and voltage.
Definition at line 74 of file time_volt.py.
time_volt.default_flow_style |
Definition at line 335 of file time_volt.py.
time_volt.filename = rosparam.get_param("/csv_proc/file_name") |
Parameters for the Python script.
Definition at line 44 of file time_volt.py.
time_volt.format |
Definition at line 119 of file time_volt.py.
time_volt.mode = rosparam.get_param("/csv_proc/mode") |
Definition at line 46 of file time_volt.py.
time_volt.new_x = values_filt*cos(theta)-poly_vals*sin(theta) |
Definition at line 284 of file time_volt.py.
time_volt.new_y = values_filt*sin(theta)+poly_vals*cos(theta) |
Definition at line 285 of file time_volt.py.
time_volt.new_y_temp = new_y |
Definition at line 296 of file time_volt.py.
list time_volt.off_values = [] |
Definition at line 280 of file time_volt.py.
time_volt.off_y = -6000 |
Definition at line 289 of file time_volt.py.
list time_volt.off_y_values_i = [] |
Definition at line 292 of file time_volt.py.
time_volt.opts |
Definition at line 54 of file time_volt.py.
time_volt.p1 = np.poly1d(z1) |
Definition at line 109 of file time_volt.py.
time_volt.p2 = np.poly1d(z2) |
Definition at line 110 of file time_volt.py.
time_volt.p3 = np.poly1d(z3) |
Definition at line 111 of file time_volt.py.
time_volt.poly_vals = np.polyval(abcd, values_filt) |
Polynomial Evaluation for the filtered signal and the function from the non-moving case.
Definition at line 253 of file time_volt.py.
time_volt.robot_name = rosparam.get_param("/csv_proc/robot_name") |
Definition at line 45 of file time_volt.py.
time_volt.row = row[0].split(',') |
Definition at line 76 of file time_volt.py.
time_volt.secArray = np.asarray(time_values) |
Plotting graphics for the Voltage vs Time.
Filtered fits.
Definition at line 97 of file time_volt.py.
time_volt.ss = lambday1,y2:((y1-y2)**2).sum() |
Definition at line 271 of file time_volt.py.
time_volt.ss1 = ss(time_values,new_y_temp) |
Definition at line 299 of file time_volt.py.
time_volt.theta = -0.2 |
Definition at line 277 of file time_volt.py.
list time_volt.theta_values = [] |
Definition at line 278 of file time_volt.py.
time_volt.time_values = time_values[::-1] |
Definition at line 83 of file time_volt.py.
time_volt.values_filt = sg.filter(voltArray) |
Savitzky Golay Filter Applied to the Battery Voltage.
Definition at line 154 of file time_volt.py.
float time_volt.volt_v = (float)(row[1])*1000.0 |
Definition at line 77 of file time_volt.py.
time_volt.voltArray = np.asarray(volt_values) |
Definition at line 98 of file time_volt.py.
time_volt.xp = np.linspace(49000, 43000, 100) |
Definition at line 106 of file time_volt.py.
time_volt.yaml_file = open("voltage_filter.yaml", "w") |
Definition at line 47 of file time_volt.py.
time_volt.yl = {} |
Definition at line 48 of file time_volt.py.
Definition at line 101 of file time_volt.py.
time_volt.z1_res = time_values-z1_val |
Definition at line 138 of file time_volt.py.
time_volt.z1_val = np.polyval(z1, volt_values) |
Residuals Analysis.
Residuals Analysis for the filtered Signal.
Definition at line 133 of file time_volt.py.
Definition at line 102 of file time_volt.py.
time_volt.z2_res = time_values-z2_val |
Definition at line 139 of file time_volt.py.
time_volt.z2_val = np.polyval(z2, volt_values) |
Definition at line 134 of file time_volt.py.
Definition at line 103 of file time_volt.py.
list time_volt.z3_l = [] |
Definition at line 195 of file time_volt.py.
time_volt.z3_res = time_values-z3_val |
Definition at line 140 of file time_volt.py.
time_volt.z3_val = np.polyval(z3, volt_values) |
Definition at line 135 of file time_volt.py.