Commit 0bbbc0af authored by olivier stasse's avatar olivier stasse
Browse files

Add operator<< to COMState.

parent 4a52be2b
......@@ -40,7 +40,8 @@
#else
# define WALK_GEN_JRL_EXPORT
#endif
#include <iostream>
#include <fstream>
#include <jrl/mal/matrixabstractlayer.hh>
namespace PatternGeneratorJRL
......@@ -76,7 +77,11 @@ namespace PatternGeneratorJRL
void reset();
COMState_s();
friend std::ostream & operator<<(std::ostream &os, const struct COMState_s & acs);
};
typedef struct COMState_s COMState;
......
......@@ -65,6 +65,33 @@ namespace PatternGeneratorJRL
COMState_s::COMState_s()
{
reset();
}
std::ostream & operator<<(std::ostream &os,
const COMState_s & acs)
{
os << acs.x[0] << " " <<
acs.x[1] << " " <<
acs.x[2] << " " <<
acs.y[0] << " " <<
acs.y[1] << " " <<
acs.y[2] << " " <<
acs.z[0] << " " <<
acs.z[1] << " " <<
acs.z[2] << " " <<
acs.yaw[0] << " " <<
acs.yaw[1] << " " <<
acs.yaw[2] << " " <<
acs.pitch[0] << " " <<
acs.pitch[1] << " " <<
acs.pitch[2] << " " <<
acs.roll[0] << " " <<
acs.roll[1] << " " <<
acs.roll[2] << " " << std::endl;
return os;
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment