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

Representations/Perception/BodyPosture.cpp

Go to the documentation of this file.
00001 /**
00002  * @file BodyPosture.cpp
00003  *
00004  * Implementation of class BodyPosture.
00005  */
00006 
00007 #include "BodyPosture.h"
00008 
00009 BodyPosture::BodyPosture():
00010 frameNumber(0),
00011 neckHeightCalculatedFromLegSensors(0),
00012 bodyRollCalculatedFromLegSensors(0),
00013 bodyTiltCalculatedFromLegSensors(0),
00014 neckHeightProvidedByMotionControl(0),
00015 bodyRollProvidedByMotionControl(0),
00016 bodyTiltProvidedByMotionControl(0),
00017 bodyRollCalculatedFromAccelerationSensors(0),
00018 bodyTiltCalculatedFromAccelerationSensors(0)
00019 {
00020 }
00021 
00022 BodyPosture::~BodyPosture()
00023 {
00024 }
00025 
00026 void BodyPosture::operator = (const BodyPosture& other)
00027 {
00028   frameNumber = other.frameNumber;
00029   neckHeightCalculatedFromLegSensors = other.neckHeightCalculatedFromLegSensors;
00030   bodyRollCalculatedFromLegSensors = other.bodyRollCalculatedFromLegSensors;
00031   bodyTiltCalculatedFromLegSensors = other.bodyTiltCalculatedFromLegSensors;
00032 
00033   neckHeightProvidedByMotionControl = other.neckHeightProvidedByMotionControl;
00034   bodyRollProvidedByMotionControl = other.bodyRollProvidedByMotionControl;
00035   bodyTiltProvidedByMotionControl = other.bodyTiltProvidedByMotionControl;
00036 
00037   bodyRollCalculatedFromAccelerationSensors = other.bodyRollCalculatedFromAccelerationSensors;
00038   bodyTiltCalculatedFromAccelerationSensors = other.bodyTiltCalculatedFromAccelerationSensors;
00039 }
00040 
00041 In& operator>>(In& stream,BodyPosture& BodyPosture)
00042 {
00043   stream.read(&BodyPosture,sizeof(BodyPosture));
00044   return stream;
00045 }
00046  
00047 Out& operator<<(Out& stream, const BodyPosture& BodyPosture)
00048 {
00049   stream.write(&BodyPosture,sizeof(BodyPosture));
00050   return stream;
00051 }

Generated on Mon Mar 20 22:00:02 2006 for GT2005 by doxygen 1.3.6