scan_dataset.py
Go to the documentation of this file.
00001 #
00002 # Copyright (c) 2010, Georgia Tech Research Corporation
00003 # All rights reserved.
00004 #
00005 # Redistribution and use in source and binary forms, with or without
00006 # modification, are permitted provided that the following conditions are met:
00007 #     * Redistributions of source code must retain the above copyright
00008 #       notice, this list of conditions and the following disclaimer.
00009 #     * Redistributions in binary form must reproduce the above copyright
00010 #       notice, this list of conditions and the following disclaimer in the
00011 #       documentation and/or other materials provided with the distribution.
00012 #     * Neither the name of the Georgia Tech Research Corporation nor the
00013 #       names of its contributors may be used to endorse or promote products
00014 #       derived from this software without specific prior written permission.
00015 #
00016 # THIS SOFTWARE IS PROVIDED BY GEORGIA TECH RESEARCH CORPORATION ''AS IS'' AND
00017 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
00018 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00019 # DISCLAIMED. IN NO EVENT SHALL GEORGIA TECH BE LIABLE FOR ANY DIRECT, INDIRECT,
00020 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00021 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
00022 # OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00023 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
00024 # OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00025 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00026 #
00027 
00028 #  \author Martin Schuster (Healthcare Robotics Lab, Georgia Tech.)
00029 import label_object
00030 
00031 class scan_dataset(object):
00032     '''
00033     classdocs
00034     '''
00035 
00036 
00037     def __init__(self):
00038         '''
00039         Constructor
00040         '''
00041         self.dict = {}
00042         self.dict['title'] = ''
00043         self.dict['id'] = ''
00044         self.dict['polygons'] = [label_object.label_object()]
00045         self.dict['scan_filename'] = ''
00046         self.dict['image_filename'] = ''
00047         self.dict['image_artag_filename'] = ''
00048         
00049         self.dict['surface_id'] = ''
00050         self.dict['surface_height'] = ''
00051         self.dict['camera_height'] = ''
00052         self.dict['camera_angle'] = ''
00053         self.dict['surface_type'] = ''
00054         
00055         self.dict['ground_plane_normal'] = ''
00056         self.dict['ground_plane_three_points'] = ''
00057         
00058         self.dict['is_training_set'] = False
00059         self.dict['is_test_set'] = False
00060         self.dict['is_labeled'] = False
00061         self.dict['ground_plane_rotation'] = ''
00062         #Auto creates: ['table_plane_translation'] = np.matrix([0,0,0]).T
00063         #    ['ground_plane_translation'] = np.matrix([0,0,1.25]).T
00064         #    [id] = <unique scan name>
00065 
00066         
00067     def __setattr__(self, name, value):  
00068         if not name == 'dict':
00069             self.dict[name] = value
00070         else:
00071             object.__setattr__(self, name, value)    
00072         
00073     def __getattr__(self, name):
00074         if not name == 'dict' and name in self.dict:
00075             return self.dict[name]
00076         else:
00077             return object.__getattribute__(self, name)
00078         


clutter_segmentation
Author(s): Jason Okerman, Martin Schuster, Advisors: Prof. Charlie Kemp and Jim Regh, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 12:07:15