forked from viamrobotics/viam-cpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpose.hpp
39 lines (30 loc) · 1 KB
/
pose.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include <ostream>
namespace viam {
namespace sdk {
struct coordinates {
double x, y, z;
friend bool operator==(const coordinates& lhs, const coordinates& rhs);
};
struct pose_orientation {
double o_x, o_y, o_z;
friend bool operator==(const pose_orientation& lhs, const pose_orientation& rhs);
};
struct pose {
struct coordinates coordinates;
pose_orientation orientation;
double theta;
friend bool operator==(const pose& lhs, const pose& rhs);
friend std::ostream& operator<<(std::ostream& os, const pose& v);
};
struct pose_in_frame {
pose_in_frame(std::string reference_frame_, struct pose pose_)
: reference_frame(std::move(reference_frame_)), pose(std::move(pose_)) {}
pose_in_frame() {}
std::string reference_frame;
struct pose pose;
friend bool operator==(const pose_in_frame& lhs, const pose_in_frame& rhs);
friend std::ostream& operator<<(std::ostream& os, const pose_in_frame& v);
};
} // namespace sdk
} // namespace viam