libalmath  2.5.11.14a
 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 
15 #include <almath/types/alpose2d.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 Quaternion& pQua);
164 
175 std::ostream& operator<< (std::ostream& pStream, const Velocity6D& pVel);
176 
186 std::string toSpaceSeparated(const Position3D& pPos);
187 
197 std::string toSpaceSeparated(const Rotation3D& pPos);
198 
208 std::string toSpaceSeparated(const Velocity6D& pVel);
209 
219 std::string toSpaceSeparated(const Transform& pT);
220 
230 std::string toSpaceSeparated(const Position6D& pPos);
231 
241 std::string toSpaceSeparated(const Quaternion& pQuat);
242 
243 }
244 }
245 #endif // _LIBALMATH_ALMATH_TOOLS_ALMATHIO_H_
std::string toSpaceSeparated(const Position3D &pPos)
Create a string of Position3D.
std::ostream & operator<<(std::ostream &pStream, const Pose2D &pPos)
Overloading of operator << for Pose2D.