libalmath  1.14
 All Classes Namespaces Functions Variables Typedefs Groups Pages
almathio.h
1 /*
2  * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the COPYING file.
5  */
6 
7 
8 #pragma once
9 #ifndef _LIBALMATH_ALMATH_TOOLS_ALMATHIO_H_
10 #define _LIBALMATH_ALMATH_TOOLS_ALMATHIO_H_
11 
12 #include <iostream>
13 #include <sstream>
14 
15 #include <almath/types/alpose2d.h>
16 #include <almath/types/alposition2d.h>
17 #include <almath/types/alposition3d.h>
18 #include <almath/types/alposition6d.h>
19 #include <almath/types/alpositionandvelocity.h>
20 #include <almath/types/alrotation.h>
21 #include <almath/types/alrotation3d.h>
22 #include <almath/types/altransform.h>
23 #include <almath/types/altransformandvelocity6d.h>
24 #include <almath/types/alvelocity3d.h>
25 #include <almath/types/alvelocity6d.h>
26 #include <almath/types/alquaternion.h>
27 
30 namespace AL {
31 namespace Math {
32 
43 std::ostream& operator<< (std::ostream& pStream, const Pose2D& pPos);
44 
55 std::ostream& operator<< (std::ostream& pStream, const Position2D& pPos);
56 
67 std::ostream& operator<< (std::ostream& pStream, const Position3D& pPos);
68 
79 std::ostream& operator<< (std::ostream& pStream, const Position6D& pPos);
80 
91 std::ostream& operator<< (std::ostream& pStream, const PositionAndVelocity& pPosVel);
92 
103 std::ostream& operator<< (std::ostream& pStream, const Rotation& pRot);
104 
115 std::ostream& operator<< (std::ostream& pStream, const Rotation3D& pRot);
116 
127 std::ostream& operator<< (std::ostream& pStream, const Transform& pT);
128 
139 std::ostream& operator<< (std::ostream& pStream, const TransformAndVelocity6D& pTV);
140 
151 std::ostream& operator<< (std::ostream& pStream, const Velocity3D& pVel);
152 
163 std::ostream& operator<< (std::ostream& pStream, const Velocity6D& pVel);
164 
174 std::string toSpaceSeparated(const Position3D& pPos);
175 
185 std::string toSpaceSeparated(const Velocity6D& pVel);
186 
196 std::string toSpaceSeparated(const Transform& pT);
197 
207 std::string toSpaceSeparated(const Position6D& pPos);
208 
219 std::ostream& operator<< (std::ostream& pStream, const Quaternion& pQua);
220 
221 }
222 }
223 #endif // _LIBALMATH_ALMATH_TOOLS_ALMATHIO_H_