Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Representations/Perception/PSDPercept.cpp

Go to the documentation of this file.
00001 /**
00002 * @file PSDPercept.cpp
00003 *
00004 * Implementation of class PSDPercept
00005 *
00006 * @author Martin Lötzsch
00007 */
00008 
00009 #include "PSDPercept.h"
00010 
00011 PSDPercept::PSDPercept()
00012 : numOfPercepts(0)
00013 {
00014 }
00015 
00016 PSDPercept::~PSDPercept()
00017 {
00018 }
00019 
00020 SinglePSDPercept::SinglePSDPercept()
00021 : Vector3<double>(0,0,0),
00022 tooFarAway(false),
00023 neckTilt(0.0),
00024 body(0)
00025 {
00026 }
00027 
00028 SinglePSDPercept::~SinglePSDPercept()
00029 {
00030 }
00031 
00032 
00033 In& operator>>(In& stream,SinglePSDPercept& psdPercept)
00034 {
00035   stream.read(&psdPercept, sizeof(SinglePSDPercept));
00036   return stream;
00037 }
00038 
00039 Out& operator<<(Out& stream, const SinglePSDPercept& psdPercept)
00040 {
00041   stream.write(&psdPercept, sizeof(SinglePSDPercept));
00042   return stream;
00043 }
00044 
00045 In& operator>>(In& stream,PSDPercept& psdPercept)
00046 {
00047   stream >> psdPercept.numOfPercepts;
00048   for (int i=0; i<psdPercept.numOfPercepts; i++)
00049     stream >> psdPercept[i];
00050   return stream;
00051 }
00052 
00053 Out& operator<<(Out& stream, const PSDPercept& psdPercept)
00054 {
00055   stream << psdPercept.numOfPercepts;
00056   for (int i=0; i<psdPercept.numOfPercepts; i++)
00057     stream << psdPercept[i];
00058   return stream;
00059 }
00060 
00061 /*
00062 * Change Log:
00063 *
00064 * $Log: PSDPercept.cpp,v $
00065 * Revision 1.2  2004/05/27 17:13:38  jhoffman
00066 * - renaming: tilt1 -> neckTilt,  pan -> headPan,  tilt2 -> headTilt
00067 * - clipping included for setJoints
00068 * - removed some microrad/rad-bugs
00069 * - bodyPosture constructor and "=" operator fixed
00070 *
00071 * Revision 1.1.1.1  2004/05/22 17:25:59  cvsadm
00072 * created new repository GT2004_WM
00073 *
00074 * Revision 1.4  2004/03/10 14:16:33  risler
00075 * body psd value added to PSDPercept and ObstaclesModel
00076 *
00077 * Revision 1.3  2004/01/19 14:54:14  dueffert
00078 * useless double streaming removed
00079 *
00080 * Revision 1.2  2003/11/14 19:02:25  goehring
00081 * frameNumber added
00082 *
00083 * Revision 1.1  2003/10/07 10:09:36  cvsadm
00084 * Created GT2004 (M.J.)
00085 *
00086 * Revision 1.1.1.1  2003/07/02 09:40:22  cvsadm
00087 * created new repository for the competitions in Padova from the 
00088 * tamara CVS (Tuesday 2:00 pm)
00089 *
00090 * removed unused solutions
00091 *
00092 * Revision 1.3  2003/05/14 19:54:42  risler
00093 * PSDPercept contains all points from one frame
00094 *
00095 * Revision 1.2  2003/04/06 17:14:37  jhoffman
00096 * added headTilt to PSDpercept and added debugging capabilities to microsectors
00097 *
00098 * Revision 1.1  2002/10/10 13:09:50  loetzsch
00099 * First experiments with the PSD Sensor
00100 * - SensorDataProcessor now calculates PSDPercept
00101 * - Added the PerceptBehaviorControl solution PSDTest
00102 * - Added the RadarViewer3D to RobotControl, which can display the Points3D structure
00103 *
00104 */
00105 

Generated on Thu Sep 23 19:57:36 2004 for GT2004 by doxygen 1.3.6