Functions | |
def | create_default_scan_dataset |
def | define_ROI_polygons |
Variables | |
tuple | ac = acquire_pr2_data.AcquireCloud() |
list | camPts_bound = camPts[:,idx_list] |
tuple | cfg = configuration.configuration(DATA_LOCATION, ROBOT) |
CHANGE THIS TO THE DIRECTORY WITH RESULTS FROM CODY: change 'codyRobot' to 'dummyScanner' or code tries to find camera drivers, etc. | |
colors = pc.map_polys | |
tuple | data = np.asarray(pc.pts3d_bound) |
tuple | data_idx = np.where(np.asarray(pc.map_polys) == processor.LABEL_SURFACE) |
string | DATA_LOCATION = '/home/jokerman/svn/robot1_data/usr/martin/laser_camera_segmentation/labeling/' |
string | DATASET_ID = '2009Nov12_184413' |
displayOn = True | |
tuple | feature_data = pc.generate_features(NUMBER_OF_POINTS,False, True) |
tuple | filename = pr2_example.grab_pr2_example_image_name() |
int | height_max = 9 |
float | height_min = 0.0 |
tuple | image_size = cv.cvGetSize(pc.img) |
list | intensities_bound = pc.intensities[idx_list] |
IS_LABELED = True | |
tuple | N = len(idx_list) |
tuple | Nbound = len( idx_list[idx_list] ) |
int | NUMBER_OF_POINTS = 7000 |
float | object_height = 0.1 |
Placement routine. | |
tuple | overlay_img = pc.draw_mapped_laser_into_image(pc.map, pc.pts3d, pc.img) |
tuple | pc = processor.processor(cfg) |
tuple | pl = Placement(pc, resolution) |
object_height = 0.1 | |
tuple | placement_point = pl.test_placement(polygon, object_height) |
REPLACE WITH MY OWN CLASS DEFINITION WITH FUNCTIONs. | |
tuple | placement_point_global = mcf.thok0Tglobal(placement_point) |
tuple | polygon = label_object() |
tuple | polygon_mapping = list(1 for x in range(m)) |
pc.display_3d('labels')### This is based on accurate polygons. | |
list | pts3d_bound = pc.pts3d[:,idx_list] |
tuple | pub = rospy.Publisher('temp_pub', PointCloud) |
list | resolution = [.01*SCALE, .01*SCALE] |
string | ROBOT = 'PR2' |
SAVE_UNUSED_NEIGHBORS_TO = False | |
pc.display_all_data()### | |
int | SCALE = 1 |
tuple | scan_indices_bound = np.array(range(N)) |
SHOW_IN_ROS = True | |
previously 1000, False,True | |
tuple | table_height = np.mean(data, axis=1) |
int | width_max = 9 |
float | width_min = 0.0 |
MAKE SURE THAT THESE MATCH ORIGINAL TAKE: CROP CAMERA IMAGE TO RIO. | |
float | z_above_floor = 1.32 |
def test_display_pr2_try1.create_default_scan_dataset | ( | unique_id = DATASET_ID , |
|
z_above_floor = 1.32 |
|||
) |
Definition at line 95 of file test_display_pr2_try1.py.
def test_display_pr2_try1.define_ROI_polygons | ( | width_min, | |
width_max, | |||
height_min, | |||
height_max | |||
) |
Definition at line 206 of file test_display_pr2_try1.py.
Definition at line 167 of file test_display_pr2_try1.py.
list test_display_pr2_try1::camPts_bound = camPts[:,idx_list] |
Definition at line 158 of file test_display_pr2_try1.py.
CHANGE THIS TO THE DIRECTORY WITH RESULTS FROM CODY: change 'codyRobot' to 'dummyScanner' or code tries to find camera drivers, etc.
Definition at line 86 of file test_display_pr2_try1.py.
test_display_pr2_try1::colors = pc.map_polys |
Definition at line 338 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::data = np.asarray(pc.pts3d_bound) |
Definition at line 349 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::data_idx = np.where(np.asarray(pc.map_polys) == processor.LABEL_SURFACE) |
Definition at line 348 of file test_display_pr2_try1.py.
string test_display_pr2_try1::DATA_LOCATION = '/home/jokerman/svn/robot1_data/usr/martin/laser_camera_segmentation/labeling/' |
Definition at line 57 of file test_display_pr2_try1.py.
string test_display_pr2_try1::DATASET_ID = '2009Nov12_184413' |
Definition at line 55 of file test_display_pr2_try1.py.
Definition at line 81 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::feature_data = pc.generate_features(NUMBER_OF_POINTS,False, True) |
Definition at line 303 of file test_display_pr2_try1.py.
string test_display_pr2_try1::filename = pr2_example.grab_pr2_example_image_name() |
Definition at line 129 of file test_display_pr2_try1.py.
Definition at line 203 of file test_display_pr2_try1.py.
float test_display_pr2_try1::height_min = 0.0 |
Definition at line 202 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::image_size = cv.cvGetSize(pc.img) |
Definition at line 198 of file test_display_pr2_try1.py.
list test_display_pr2_try1::intensities_bound = pc.intensities[idx_list] |
Definition at line 161 of file test_display_pr2_try1.py.
Definition at line 78 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::N = len(idx_list) |
Definition at line 152 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::Nbound = len( idx_list[idx_list] ) |
Definition at line 153 of file test_display_pr2_try1.py.
int test_display_pr2_try1::NUMBER_OF_POINTS = 7000 |
Definition at line 76 of file test_display_pr2_try1.py.
float test_display_pr2_try1::object_height = 0.1 |
Placement routine.
Definition at line 390 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::overlay_img = pc.draw_mapped_laser_into_image(pc.map, pc.pts3d, pc.img) |
Definition at line 260 of file test_display_pr2_try1.py.
Definition at line 87 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::pl = Placement(pc, resolution) |
object_height = 0.1
Definition at line 402 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::placement_point = pl.test_placement(polygon, object_height) |
REPLACE WITH MY OWN CLASS DEFINITION WITH FUNCTIONs.
Definition at line 405 of file test_display_pr2_try1.py.
Definition at line 414 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::polygon = label_object() |
Definition at line 394 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::polygon_mapping = list(1 for x in range(m)) |
pc.display_3d('labels')### This is based on accurate polygons.
Definition at line 287 of file test_display_pr2_try1.py.
list test_display_pr2_try1::pts3d_bound = pc.pts3d[:,idx_list] |
Definition at line 159 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::pub = rospy.Publisher('temp_pub', PointCloud) |
Definition at line 336 of file test_display_pr2_try1.py.
list test_display_pr2_try1::resolution = [.01*SCALE, .01*SCALE] |
Definition at line 392 of file test_display_pr2_try1.py.
string test_display_pr2_try1::ROBOT = 'PR2' |
Definition at line 51 of file test_display_pr2_try1.py.
pc.display_all_data()###
Definition at line 299 of file test_display_pr2_try1.py.
int test_display_pr2_try1::SCALE = 1 |
Definition at line 77 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::scan_indices_bound = np.array(range(N)) |
Definition at line 160 of file test_display_pr2_try1.py.
previously 1000, False,True
pc.display_3d('all')### Labels are now generated --> can be saved to file? pc.display_3d('baseline')###
Definition at line 328 of file test_display_pr2_try1.py.
tuple test_display_pr2_try1::table_height = np.mean(data, axis=1) |
Definition at line 350 of file test_display_pr2_try1.py.
int test_display_pr2_try1::width_max = 9 |
Definition at line 201 of file test_display_pr2_try1.py.
float test_display_pr2_try1::width_min = 0.0 |
MAKE SURE THAT THESE MATCH ORIGINAL TAKE: CROP CAMERA IMAGE TO RIO.
Definition at line 200 of file test_display_pr2_try1.py.
int test_display_pr2_try1::z_above_floor = 1.32 |
Definition at line 58 of file test_display_pr2_try1.py.