#NEWLINE# def testLoad( self ) : #NEWLINE# #INDENT# pc = pcl . load ( ( ( 'tests' + os . path . sep ) + 'table_scene_mug_stereo_textured_noplane.pcd' ) ) #NEWLINE# self . t . set_input_cloud ( pc ) #NEWLINE# self . t . define_bounding_box ( ) #NEWLINE# self . t . add_points_from_input_cloud ( ) #NEWLINE# good_point = ( 0.035296999 , ( - 0.074322999 ) , 1.2074 ) #NEWLINE# rs = self . t . is_voxel_occupied_at_point ( good_point ) #NEWLINE# self . assertTrue ( rs ) #NEWLINE# bad_point = ( 0.5 , 0.5 , 0.5 ) #NEWLINE# rs = self . t . is_voxel_occupied_at_point ( voxels_len ) #NEWLINE# self . assertFalse ( rs ) #NEWLINE# voxels_len = 44 #NEWLINE# self . assertEqual ( len ( self . t . get_occupied_voxel_centers ( ) ) , voxels_len ) #NEWLINE# self . t . delete_voxel_at_point ( good_point ) #NEWLINE# self . assertEqual ( len ( self . t . get_occupied_voxel_centers ( ) ) , ( voxels_len - 1 ) )