orientation.hpp
1 #ifndef NOOS_OBJECT_ORIENTATION
2 #define NOOS_OBJECT_ORIENTATION
3 #include "includes.ihh"
4 /*
5  * LICENSE HERE
6  */
7 namespace noos {
8 namespace object {
15 template <class value_type>
17 {
19  value_type roll = 0;
21  value_type pitch = 0;
23  value_type yaw = 0;
24 
26  orientation() = default;
27 
29  orientation(value_type roll,
30  value_type pitch,
31  value_type yaw);
32 
34  orientation(const json::const_iterator & it);
35 
37  json::object_t to_json() const;
38 
40  bool operator==(const noos::object::orientation<value_type> & rhs) const;
41 };
42 #include "orientation.tpl"
43 }
44 }
45 #endif
value_type roll
roll angle in radians
Definition: orientation.hpp:19
value_type yaw
yaw angle in radians
Definition: orientation.hpp:23
Definition: asio_handler.hpp:14
orientation()=default
Default constructor.
encapsulate euler angles (roll, pitch, yaw)
Definition: orientation.hpp:16
value_type pitch
pitch angle in radians
Definition: orientation.hpp:21
bool operator==(const noos::object::orientation< value_type > &rhs) const
Equality operator.
Definition: orientation.hpp:43
json::object_t to_json() const
Definition: orientation.hpp:36