Viam C++ SDK
current
Loading...
Searching...
No Matches
src
viam
sdk
spatialmath
orientation.hpp
1
#pragma once
2
3
#include <string>
4
#include <variant>
5
#include <vector>
6
7
#include <viam/sdk/common/proto_convert.hpp>
8
#include <viam/sdk/spatialmath/orientation_types.hpp>
9
10
namespace
viam {
11
namespace
app {
12
namespace
v1 {
13
14
class
Orientation;
15
}
16
}
// namespace app
17
}
// namespace viam
18
19
namespace
viam {
20
namespace
sdk {
21
22
// Note that quaternion must be the first type because this is what is default constructed.
23
using
Orientation = std::
24
variant<quaternion, axis_angles, orientation_vector, orientation_vector_degrees, euler_angles>;
25
26
OrientationType get_type(
const
Orientation&);
27
28
namespace
proto_convert_details {
29
30
template
<>
31
struct
to_proto_impl
<Orientation> {
32
void
operator()(
const
Orientation&, app::v1::Orientation*)
const
;
33
};
34
template
<>
35
struct
from_proto_impl
<app::v1::Orientation> {
36
Orientation operator()(
const
app::v1::Orientation*)
const
;
37
};
38
39
}
// namespace proto_convert_details
40
}
// namespace sdk
41
}
// namespace viam
viam::sdk::proto_convert_details::from_proto_impl
Definition
proto_convert.hpp:24
viam::sdk::proto_convert_details::to_proto_impl
Definition
proto_convert.hpp:18
Generated by
1.10.0