00001 /** 00002 * @file Pose2D.cpp 00003 * Implementation of class Pose2D 00004 * 00005 * @author <a href="mailto:martin.kallnik@gmx.de">Martin Kallnik</a> 00006 * @author Max Risler 00007 */ 00008 00009 #include "Pose2D.h" 00010 00011 #ifdef Pose2Dnew 00012 00013 In& operator>>(In& stream, RotationVector& rotationVector) 00014 { 00015 stream >> rotationVector.sinus; 00016 stream >> rotationVector.cosinus; 00017 return stream; 00018 } 00019 00020 Out& operator<<(Out& stream, const RotationVector& rotationVector) 00021 { 00022 stream << rotationVector.sinus; 00023 stream << rotationVector.cosinus; 00024 return stream; 00025 } 00026 00027 #endif //Pose2DNew 00028 00029 In& operator>>(In& stream, Pose2D& pose2D) 00030 { 00031 STREAM_REGISTER_BEGIN_EXT(pose2D); 00032 STREAM_EXT(stream, pose2D.rotation); 00033 STREAM_EXT(stream, pose2D.translation); 00034 STREAM_REGISTER_FINISH(); 00035 return stream; 00036 } 00037 00038 Out& operator<<(Out& stream, const Pose2D& pose2D) 00039 { 00040 STREAM_REGISTER_BEGIN_EXT(pose2D); 00041 STREAM_EXT(stream, pose2D.rotation); 00042 STREAM_EXT(stream, pose2D.translation); 00043 STREAM_REGISTER_FINISH(); 00044 return stream; 00045 }
1.3.6