Functions | |
def | _choose_without_replacement |
def | approx_equal |
def | bound |
Bound the value of a number to be above lower, and lower than upper. | |
def | cart_of_pol |
def | cartesian_product |
cartesian product of list of lists. | |
def | choose_without_replacement |
choose n elements from list without replacement. | |
def | formatted_time |
returns current time as a string: year|month|date_hours|min|sec. | |
def | get_bash_command_output |
execute a bash command and get its output as a list of strings. | |
def | get_keystroke |
raw_input + matplotlib + ROS == strangeness. | |
def | getTime |
Returns a string that can be used as a timestamp (hours and minutes) in logfiles. | |
def | list_mat_to_mat |
Converts a list of numpy matrices to one large matrix. | |
def | load_pickle |
read a pickle and return the object. | |
def | matrixrank |
compute rank of a matrix. | |
def | norm |
Calculate L2 norm for column vectors in a matrix. | |
def | pol_of_cart |
def | quat_angle |
def | save_pickle |
Pickle an object. | |
def | say |
use festival text to speech to make a soud. | |
def | standard_rad |
def | unipolar_limit |
def | unwrap_np_array |
convert hrl's ros wrapped numpy array to a numpy array | |
def | weighted_avg_and_std |
Returns the weighted average and standard deviation. | |
def | wrap_np_array |
wraps a numpy array into hrl's datatype for sending np arrays over ros. |
def hrl_lib.util._choose_without_replacement | ( | lists, | |
previous_elements = [] , |
|||
ignore_count = 0 |
|||
) | [private] |
def hrl_lib.util.approx_equal | ( | a, | |
b, | |||
epsilon = .001 |
|||
) |
def hrl_lib.util.bound | ( | value, | |
lower, | |||
upper | |||
) |
def hrl_lib.util.cart_of_pol | ( | p | ) |
def hrl_lib.util.cartesian_product | ( | lists, | |
previous_elements = [] |
|||
) |
cartesian product of list of lists.
code copied from: http://automatthias.wordpress.com/2007/04/28/cartesian-product-of-multiple-sets/
def hrl_lib.util.choose_without_replacement | ( | list, | |
n | |||
) |
def hrl_lib.util.formatted_time | ( | ) |
def hrl_lib.util.get_bash_command_output | ( | cmd | ) |
def hrl_lib.util.get_keystroke | ( | msg | ) |
def hrl_lib.util.getTime | ( | ) |
def hrl_lib.util.list_mat_to_mat | ( | list_mat, | |
axis = 0 |
|||
) |
def hrl_lib.util.load_pickle | ( | filename | ) |
def hrl_lib.util.matrixrank | ( | A, | |
tol = 1e-8 |
|||
) |
compute rank of a matrix.
code copied from: http://mail.scipy.org/pipermail/numpy-discussion/2008-February/031218.html
def hrl_lib.util.norm | ( | mat | ) |
def hrl_lib.util.pol_of_cart | ( | p | ) |
def hrl_lib.util.quat_angle | ( | quat1, | |
quat2 | |||
) |
def hrl_lib.util.save_pickle | ( | object, | |
filename | |||
) |
def hrl_lib.util.say | ( | text | ) |
def hrl_lib.util.standard_rad | ( | t | ) |
def hrl_lib.util.unipolar_limit | ( | x, | |
upper | |||
) |
def hrl_lib.util.unwrap_np_array | ( | nparr_ros | ) |
def hrl_lib.util.weighted_avg_and_std | ( | values, | |
weights, | |||
unbiased | |||
) |
Returns the weighted average and standard deviation.
http://stackoverflow.com/questions/2413522/weighted-standard-deviation-in-numpy values - n x m np MATRIX weights - 1D np arrays of length n returns - two 1D np arrays
def hrl_lib.util.wrap_np_array | ( | nparr | ) |