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

# Modules/SensorBehaviorControl/SensorBehaviorTeamMessage.cpp

Go to the documentation of this file.

    00001 /**
    00002 * @file Modules/SensorBehaviorControl/SensorBehaviorTeamMessage.cpp
    00003 */
    00004
    00005 #include "SensorBehaviorTeamMessage.h"
    00006
    00007
    00008 SensorBehaviorTeamMessage::SensorBehaviorTeamMessage()
    00009 {
    00010   takePicture = 0;
    00011   headrequestPan = 0;
    00012   headrequestTilt = 0;
    00013   headrequestTilt2 = 0;
    00014   spezialAction = -1;
    00015 }
    00016
    00017 //------------------------------------------------------------------------------
    00018 SensorBehaviorTeamMessage::~SensorBehaviorTeamMessage()
    00019 {
    00020 }
    00021
    00022 Out& operator<<(Out& stream, const SensorBehaviorTeamMessage& sbtm)
    00023 {
    00024   stream << sbtm.walkrequestX;
    00025   stream << sbtm.walkrequestY;
    00026   stream << sbtm.walkrequestR;
    00027   stream << sbtm.status;
    00028   stream << sbtm.takePicture;
    00029   stream << sbtm.headrequestPan;
    00030   stream << sbtm.headrequestTilt;
    00031   stream << sbtm.headrequestTilt2;
    00032   stream << sbtm.spezialAction;
    00033   return stream;
    00034 }
    00035
    00036 In& operator>>(In& stream, SensorBehaviorTeamMessage& sbtm)
    00037 {
    00038   stream >> sbtm.walkrequestX;
    00039   stream >> sbtm.walkrequestY;
    00040   stream >> sbtm.walkrequestR;
    00041   stream >> sbtm.status;
    00042   stream >> sbtm.takePicture;
    00043   stream >> sbtm.headrequestPan;
    00044   stream >> sbtm.headrequestTilt;
    00045   stream >> sbtm.headrequestTilt2;
    00046   stream >> sbtm.spezialAction;
    00047   return stream;
    00048 }