00001 /*!@file SeaBee/OceanObject.H information of objects to find */ 00002 // //////////////////////////////////////////////////////////////////// // 00003 // The iLab Neuromorphic Vision C++ Toolkit - Copyright (C) 2001 by the // 00004 // University of Southern California (USC) and the iLab at USC. // 00005 // See http://iLab.usc.edu for information about this project. // 00006 // //////////////////////////////////////////////////////////////////// // 00007 // Major portions of the iLab Neuromorphic Vision Toolkit are protected // 00008 // under the U.S. patent ``Computation of Intrinsic Perceptual Saliency // 00009 // in Visual Environments, and Applications'' by Christof Koch and // 00010 // Laurent Itti, California Institute of Technology, 2001 (patent // 00011 // pending; application number 09/912,225 filed July 23, 2001; see // 00012 // http://pair.uspto.gov/cgi-bin/final/home.pl for current status). // 00013 // //////////////////////////////////////////////////////////////////// // 00014 // This file is part of the iLab Neuromorphic Vision C++ Toolkit. // 00015 // // 00016 // The iLab Neuromorphic Vision C++ Toolkit is free software; you can // 00017 // redistribute it and/or modify it under the terms of the GNU General // 00018 // Public License as published by the Free Software Foundation; either // 00019 // version 2 of the License, or (at your option) any later version. // 00020 // // 00021 // The iLab Neuromorphic Vision C++ Toolkit is distributed in the hope // 00022 // that it will be useful, but WITHOUT ANY WARRANTY; without even the // 00023 // implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // 00024 // PURPOSE. See the GNU General Public License for more details. // 00025 // // 00026 // You should have received a copy of the GNU General Public License // 00027 // along with the iLab Neuromorphic Vision C++ Toolkit; if not, write // 00028 // to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, // 00029 // Boston, MA 02111-1307 USA. // 00030 // //////////////////////////////////////////////////////////////////// // 00031 // 00032 // Primary maintainer for this file: Michael Montalbo <montalbo@usc.edu> 00033 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/SeaBee/OceanObject.H $ 00034 // $Id: OceanObject.H 9272 2008-02-15 20:32:46Z beobot $ 00035 // 00036 00037 #ifndef __OCEAN_OBJECT_H__ 00038 #define __OCEAN_OBJECT_H__ 00039 00040 #include "Point3D.H" 00041 #include "Util/Angle.H" 00042 00043 #include "rutz/shared_ptr.h" 00044 00045 #include <pthread.h> 00046 #include <string> 00047 00048 class OceanObject 00049 { 00050 public: 00051 00052 enum OceanObjectType { BUOY, PIPE, BIN, CROSS, PINGER }; 00053 00054 enum OceanObjectStatus { FOUND, NOT_FOUND, LOST}; 00055 00056 OceanObject(); 00057 00058 OceanObject(OceanObjectType type); 00059 00060 void setStatus(OceanObjectStatus status); 00061 00062 void setType(OceanObjectType type); 00063 00064 void setPosition(Point3D pos); 00065 00066 void setOrientation(Angle ori); 00067 00068 void setFrequency(float freq); 00069 00070 void setDistance(float dist); 00071 00072 void setMass(float mass); 00073 00074 void setId(uint id); 00075 00076 Point3D getPosition(); 00077 00078 rutz::shared_ptr<Point3D> getPositionPtr(); 00079 00080 Angle getOrientation(); 00081 00082 rutz::shared_ptr<Angle> getOrientationPtr(); 00083 00084 float getFrequency(); 00085 00086 float getDistance(); 00087 00088 float getMass(); 00089 00090 uint getId(); 00091 00092 OceanObjectType getType(); 00093 00094 OceanObjectStatus getStatus(); 00095 00096 private: 00097 00098 pthread_mutex_t* oceanObjectMutex; 00099 00100 enum OceanObjectType itsType; 00101 00102 enum OceanObjectStatus itsStatus; 00103 00104 Point3D itsPosition; 00105 00106 Angle itsOrientation; 00107 float itsFrequency; 00108 float itsDistance; 00109 float itsMass; 00110 00111 uint itsId; 00112 00113 uint itsFrameNumber; 00114 }; 00115 00116 #endif 00117 00118 // ###################################################################### 00119 /* So things look consistent in everyone's emacs... */ 00120 /* Local Variables: */ 00121 /* indent-tabs-mode: nil */ 00122 /* End: */