Bound the value of a number to be above lower, and lower than upper.
- a number
Definition at line 115 of file util.py.
Finds cartesian coordinates of polar points [r, t]'
Definition at line 98 of file util.py.
choose n elements from list without replacement.
adapted code from cartesian_product
Definition at line 170 of file util.py.
returns current time as a string: year|month|date_hours|min|sec.
- current time as a string: year|month|date_hours|min|sec.
Definition at line 44 of file util.py.
execute a bash command and get its output as a list of strings.
e.g get_bash_command_output('ls -t')
Definition at line 212 of file util.py.
raw_input + matplotlib + ROS == strangeness.
use this function instead.
Definition at line 200 of file util.py.
Returns a string that can be used as a timestamp (hours and minutes) in logfiles.
Definition at line 13 of file util.py.
Converts a list of numpy matrices to one large matrix.
|list_mat||the list of little matrices |
|axis||axis to concatenate little matrices |
- one large numpy matrix
Definition at line 38 of file util.py.
read a pickle and return the object.
|filename||- name of the pkl |
- - object that had been pickled.
Definition at line 53 of file util.py.
Calculate L2 norm for column vectors in a matrix.
Definition at line 80 of file util.py.
Find polar coordinates of cartesian points [x, y]'
Definition at line 106 of file util.py.
Pickle an object.
|object||- object to be pickled |
|filename||- name of the pkl file |
Definition at line 73 of file util.py.
use festival text to speech to make a soud.
Definition at line 186 of file util.py.
limit the value of x such that
0 <= x <= upper
Definition at line 86 of file util.py.
convert hrl's ros wrapped numpy array to a numpy array
|NumpyArray||object (hrl_lib/msg/NumpyArray.msg) |
- np array
Definition at line 145 of file util.py.
wraps a numpy array into hrl's datatype for sending np arrays over ros.
- NumpyArray object (hrl_lib/msg/NumpyArray.msg)
Definition at line 135 of file util.py.
Author(s): Cressel Anderson, Travis Deyle, Advait Jain, Hai Nguyen, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 11:34:06