def kelsey_sandbox.simple_grasp_learner.calc_false_pos | ( | test_data = None , |
|
xyr_index = None , |
|||
apm = None |
|||
) |
Definition at line 1229 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.calc_model | ( | x, | |
y, | |||
r, | |||
window_len = 200 , |
|||
samples = 50 , |
|||
xyr_index = None , |
|||
resample = 10 |
|||
) |
Definition at line 1125 of file simple_grasp_learner.py.
Definition at line 1393 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.collect_grasp_data | ( | ki, | |
generate_models = False , |
|||
skip_grasp = False |
|||
) |
Definition at line 313 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.compute_sqr_diff_map | ( | percept = "accelerometer" | ) |
Definition at line 1039 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.create_goal_pose | ( | x, | |
y, | |||
z, | |||
gripper_pose | |||
) |
Definition at line 213 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.create_gripper_pose | ( | x, | |
y, | |||
z, | |||
quat | |||
) |
Definition at line 198 of file simple_grasp_learner.py.
Definition at line 829 of file simple_grasp_learner.py.
Definition at line 805 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.display_grasp_data | ( | grasps, | |
percept = "accelerometer" , |
|||
indicies = range(3) , |
|||
std_dev = STD_DEV , |
|||
noise_dev_add = NOISE_DEV , |
|||
monitor_data = [] , |
|||
std_dev_dict = STD_DEV_DICT , |
|||
tol_thresh_dict = TOL_THRESH_DICT , |
|||
model_zeros = None , |
|||
monitor_zeros = None , |
|||
plot_data = False , |
|||
colors = None |
|||
) |
Definition at line 710 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.downward_grasp | ( | cm, | |
goal_pose, | |||
block = True |
|||
) |
Definition at line 236 of file simple_grasp_learner.py.
Definition at line 121 of file simple_grasp_learner.py.
Definition at line 412 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.get_grasp_model | ( | x, | |
y, | |||
r, | |||
xyr_index = None , |
|||
grasp_data = None , |
|||
no_wait = True |
|||
) |
Definition at line 1003 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.get_gripper_pose | ( | gripper_rot | ) |
Definition at line 206 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.get_laser_dclick | ( | tf_listener, | |
frame = "/torso_lift_link" , |
|||
delay_time = 3.0 |
|||
) |
Definition at line 1323 of file simple_grasp_learner.py.
Definition at line 189 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.grasp_closest_object | ( | x, | |
y, | |||
grasp = None , |
|||
collide = True , |
|||
repeat = True , |
|||
zeros = None , |
|||
cm = None , |
|||
apm = None |
|||
) |
Definition at line 864 of file simple_grasp_learner.py.
Definition at line 917 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.grasp_loader | ( | filename | ) |
Definition at line 985 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.grasp_object | ( | obj, | |
grasp = None , |
|||
collide = True , |
|||
is_place = False , |
|||
zeros = None , |
|||
cm = None , |
|||
apm = None |
|||
) |
Definition at line 856 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.hand_over_object | ( | x, | |
y, | |||
z, | |||
cm, | |||
apm, | |||
offset = 0.2 , |
|||
blocking = True |
|||
) |
Definition at line 1368 of file simple_grasp_learner.py.
Definition at line 507 of file simple_grasp_learner.py.
Definition at line 1408 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.load_current_zeros | ( | filename = ZEROS_FILE | ) |
Definition at line 504 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.load_data_and_generate | ( | grasp_data | ) |
Definition at line 399 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.load_grasp | ( | xyr, | |
xyr_index = GRASP_DATA_INDEX_FILE |
|||
) |
Definition at line 1000 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.load_grasp | ( | x, | |
y, | |||
r, | |||
xyr_index = None |
|||
) |
Definition at line 1031 of file simple_grasp_learner.py.
Definition at line 163 of file simple_grasp_learner.py.
Definition at line 113 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.log | ( | str | ) |
Definition at line 110 of file simple_grasp_learner.py.
Definition at line 1484 of file simple_grasp_learner.py.
Definition at line 1426 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.move_to_grasp_pos | ( | cm, | |
grasp_pose, | |||
block = True |
|||
) |
Definition at line 221 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.move_to_setup | ( | cm, | |
blocking = True |
|||
) |
Definition at line 1403 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.normalize_rot | ( | gripper_rot | ) |
Definition at line 978 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.open_gripper | ( | cm = None , |
|
blocking = False |
|||
) |
Definition at line 512 of file simple_grasp_learner.py.
Definition at line 294 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.perform_grasp | ( | x, | |
y, | |||
z = None , |
|||
gripper_rot = np.pi / 2. , |
|||
grasp = None , |
|||
is_place = False , |
|||
is_grasp = True , |
|||
collide = True , |
|||
return_pose = True , |
|||
zeros = None , |
|||
grasp_data = None , |
|||
cm = None , |
|||
apm = None |
|||
) |
Definition at line 519 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.point_head | ( | point, | |
velocity = 0.6 , |
|||
frame = "/torso_lift_link" , |
|||
block = True |
|||
) |
Definition at line 1347 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.print_configs | ( | grasp_configs | ) |
Definition at line 277 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.process_data | ( | grasp_data = None | ) |
Definition at line 1112 of file simple_grasp_learner.py.
Definition at line 1184 of file simple_grasp_learner.py.
Definition at line 1192 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.resample_split_model_data | ( | apm, | |
models = None , |
|||
sampling_rate = 4 |
|||
) |
Definition at line 969 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.save_current_zeros | ( | filename = ZEROS_FILE | ) |
Definition at line 498 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.save_grasp | ( | grasp, | |
prefix | |||
) |
Definition at line 952 of file simple_grasp_learner.py.
Definition at line 245 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.save_parameters | ( | param_filename | ) |
Definition at line 131 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.save_pickle | ( | p, | |
fn | |||
) |
Definition at line 117 of file simple_grasp_learner.py.
Definition at line 125 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.split_model_data | ( | data = None | ) |
Definition at line 957 of file simple_grasp_learner.py.
Definition at line 1096 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.test_num_samples | ( | percept = "accelerometer" | ) |
Definition at line 808 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.test_random_grasps | ( | num_grasps = 100 | ) |
Definition at line 1197 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.transform_in_frame | ( | pos, | |
quat, | |||
off_point | |||
) |
Transforms the given position by the offset position in the given quaternion rotation frame.
pos | the current positions |
quat | quaternion representing the rotation of the frame |
off_point | offset to move the position inside the quat's frame |
Definition at line 176 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.trim_bad_grasps | ( | filename | ) |
Definition at line 284 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.trim_test_data | ( | grasp_data = None | ) |
Definition at line 943 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.upward_lift | ( | cm, | |
grasp_pose, | |||
block = True |
|||
) |
Definition at line 228 of file simple_grasp_learner.py.
Definition at line 1303 of file simple_grasp_learner.py.
def kelsey_sandbox.simple_grasp_learner.write_index_file | ( | prefix = GRASP_DATA_PREFIX , |
|
index = GRASP_DATA_INDEX_FILE |
|||
) |
Definition at line 304 of file simple_grasp_learner.py.
Definition at line 51 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::armc = 'r' |
Definition at line 53 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::BIAS_RADIUS = 0.012 |
Definition at line 61 of file simple_grasp_learner.py.
Definition at line 519 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::DETECT_ERROR = 0.02 |
Definition at line 68 of file simple_grasp_learner.py.
Definition at line 985 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_CONFIGS_FILE = "grasp_configs.pickle" |
Definition at line 96 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_DATA_FILE = "grasp_data.pickle" |
Definition at line 97 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_DATA_INDEX_FILE = "data_indexed//grasp_data_index.pickle" |
Definition at line 104 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_DATA_PREFIX = "data_indexed//grasp_data" |
Definition at line 105 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::GRASP_DIST = 0.30 |
Definition at line 57 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_IND_PREFIX = "model_indexed//grasp_model" |
Definition at line 102 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_INDEX_FILE = "model_indexed//grasp_model_index.pickle" |
Definition at line 103 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_MODELS_FILE = "grasp_models.pickle" |
Definition at line 98 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::GRASP_MODELS_TRIMMED_FILE = "grasp_models_trimmed.pickle" |
Definition at line 99 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::GRASP_TIME = 2.0 |
Definition at line 63 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::GRASP_VELOCITY = 0.28 |
Definition at line 58 of file simple_grasp_learner.py.
tuple kelsey_sandbox::simple_grasp_learner::GRIPPER_POINT = np.array([0.23, 0.0, 0.0]) |
Definition at line 59 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::HOVER_Z = 0.10 |
Definition at line 56 of file simple_grasp_learner.py.
list kelsey_sandbox::simple_grasp_learner::JOINTS_BIAS = [0., -.25, -1., 0., 0., 0.5, 0.] |
Definition at line 60 of file simple_grasp_learner.py.
STD_DEV_DICT = None.
Definition at line 93 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::node_name = "simple_grasp_learner" |
Definition at line 108 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::NOISE_DEV = 0.0 |
Definition at line 67 of file simple_grasp_learner.py.
Definition at line 46 of file simple_grasp_learner.py.
Definition at line 47 of file simple_grasp_learner.py.
Definition at line 44 of file simple_grasp_learner.py.
Definition at line 45 of file simple_grasp_learner.py.
Definition at line 86 of file simple_grasp_learner.py.
Definition at line 85 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::PICKLES_LOC = "//src//hrl_pr2_lib//pickles//" |
Definition at line 95 of file simple_grasp_learner.py.
00001 ["r_finger_periph_pressure", 00002 "r_finger_pad_pressure", 00003 "l_finger_periph_pressure", 00004 "l_finger_pad_pressure"]
Definition at line 87 of file simple_grasp_learner.py.
tuple kelsey_sandbox::simple_grasp_learner::RECT = ((0.45, 0.25), (0.70, -0.25)) |
Definition at line 49 of file simple_grasp_learner.py.
Definition at line 64 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::SQR_DIFF_MAP = "sqr_diff_map.pickle" |
Definition at line 101 of file simple_grasp_learner.py.
float kelsey_sandbox::simple_grasp_learner::STD_DEV = 2.3 |
Definition at line 66 of file simple_grasp_learner.py.
00001 { "accelerometer" : np.array([2.4, 2.9, 2.9]), 00002 "joint_angles" : np.array([2.8, 2.8, 3.8, 2.8, 400.0, 1.25, 400.0]), 00003 "joint_efforts" : np.array([30.0, 15.0, 11.0, 16.0, 12.0, 3.0, 125.0]), 00004 "joint_velocities" : np.array([3.4, 6.4, 18.4, 3.4, 3.4, 3.4, 3.4]), 00005 "r_finger_periph_pressure" : np.array([60.0]*6), 00006 "r_finger_pad_pressure" : np.array([60.0]*15), 00007 "l_finger_periph_pressure" : np.array([60.0]*6), 00008 "l_finger_pad_pressure" : np.array([60.0]*15) }
Definition at line 69 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::TEST_DATA_FILE = "test_data.pickle" |
Definition at line 106 of file simple_grasp_learner.py.
00001 { "accelerometer" : np.array([0.3, 0.3, 0.3]), 00002 "joint_velocities" : np.array([0.45]*7), 00003 "joint_angles" : np.array([0.05, 0.05, 0.05, 0.05, 0.05, 0.04, 0.05]), 00004 "joint_efforts" : np.array([3.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]), 00005 "r_finger_periph_pressure" : np.array([10.0]*6), 00006 "r_finger_pad_pressure" : np.array([10.0]*15), 00007 "l_finger_periph_pressure" : np.array([10.0]*6), 00008 "l_finger_pad_pressure" : np.array([10.0]*15) }
Definition at line 77 of file simple_grasp_learner.py.
string kelsey_sandbox::simple_grasp_learner::ZEROS_FILE = "current_zeros.pickle" |
Definition at line 100 of file simple_grasp_learner.py.