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

# Representations/Perception/SensorData.cpp

Go to the documentation of this file.

    00001 /**
    00002  * @file SensorData.cpp
    00003  *
    00004  * Implementation of class SensorData.
    00005  */
    00006
    00007 #include "SensorData.h"
    00008
    00009 SensorData::SensorData()
    00010 {
    00011   init();
    00012 }
    00013
    00014 SensorData::~SensorData()
    00015 {
    00016 }
    00017
    00018 void SensorData::init()
    00019 {
    00020   for(int i = 0; i < numOfSensor_ERS7; ++i)
    00021   {
    00022     data[i] = 0;
    00023     refValue[i] = 0;
    00024   }
    00025   data[accelerationZ] = -9810000;
    00026   frameNumber = 0;
    00027 }
    00028 /*
    00029 Out& operator<<(Out& stream, const SensorData& sensorData)
    00030 {
    00031   stream.write(&sensorData,sizeof(SensorData));
    00032   return stream;
    00033 }
    00034
    00035 In& operator>>(In& stream, SensorData& sensorData)
    00036 {
    00037   stream.read(&sensorData,sizeof(SensorData));
    00038   return stream;
    00039 }
    00040 */