libalmath  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
almathio.h
Go to the documentation of this file.
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 #include <almath/api.h>
15 #include <almath/types/alpose2d.h>
27 
30 namespace AL {
31 namespace Math {
32 
43 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Pose2D& pPos);
44 
55 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Position2D& pPos);
56 
67 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Position3D& pPos);
68 
79 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Position6D& pPos);
80 
91 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const PositionAndVelocity& pPosVel);
92 
103 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Rotation& pRot);
104 
115 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Rotation3D& pRot);
116 
127 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Transform& pT);
128 
139 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const TransformAndVelocity6D& pTV);
140 
151 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Velocity3D& pVel);
152 
163 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Quaternion& pQua);
164 
175 ALMATH_API std::ostream& operator<< (std::ostream& pStream, const Velocity6D& pVel);
176 
186 ALMATH_API std::string toSpaceSeparated(const Position3D& pPos);
187 
197 ALMATH_API std::string toSpaceSeparated(const Rotation3D& pPos);
198 
208 ALMATH_API std::string toSpaceSeparated(const Velocity6D& pVel);
209 
219 ALMATH_API std::string toSpaceSeparated(const Transform& pT);
220 
230 ALMATH_API std::string toSpaceSeparated(const Position6D& pPos);
231 
241 ALMATH_API std::string toSpaceSeparated(const Quaternion& pQuat);
242 
243 }
244 }
245 #endif // _LIBALMATH_ALMATH_TOOLS_ALMATHIO_H_
ALMATH_API std::string toSpaceSeparated(const Position3D &pPos)
Create a string of Position3D.
ALMATH_API std::ostream & operator<<(std::ostream &pStream, const Pose2D &pPos)
Overloading of operator << for Pose2D.