opw_io.h
Go to the documentation of this file.
1 #ifndef OPW_IO_H
2 #define OPW_IO_H
3 
4 #include <iostream>
6 
7 namespace opw_kinematics
8 {
9 
10 template <typename T>
11 std::ostream& operator<<(std::ostream& os, const Parameters<T>& params)
12 {
13  os << "Distances: [" << params.a1 << " "
14  << params.a2 << " "
15  << params.b << " " << params.c1 << " "
16  << params.c2 << " " << params.c3 << " "
17  << params.c4 << "]\n";
18  os << "Offsets = [";
19  for (std::size_t i = 0; i < 6; ++i)
20  {
21  os << params.offsets[i] << " ";
22  }
23  os << "]\nSign_corrections = [";
24  for (std::size_t i = 0; i < 6; ++i)
25  {
26  os << static_cast<int>(params.sign_corrections[i]) << " ";
27  }
28  os << "]";
29  return os;
30 }
31 
32 } // namespace opw_kinematics
33 
34 #endif // OPW_IO_H


moveit_opw_kinematics_plugin
Author(s): Jeroen De Maeyer, Simon Schmeisser (isys vision)
autogenerated on Wed Jun 3 2020 03:17:14