My Project 1.0
Holistic Fusion: A Generic Framework for Multimodal Sensor Fusion
Loading...
Searching...
No Matches
Pose.h
Go to the documentation of this file.
1#ifndef HOLISTIC_FUSION_POSE_H
2#define HOLISTIC_FUSION_POSE_H
3
4#include <Eigen/Eigen>
5
6namespace holistic_fusion {
7
12class Pose {
13 public:
14 Pose() : _position(Eigen::Vector3d(0.0, 0.0, 0.0)), _orientation(Eigen::Vector4d(0.0, 0.0, 0.0, 1.0)), _time(0.0) {}
15
16 Pose(Eigen::Vector3d position, double time) : _position(position), _orientation(Eigen::Vector4d(0.0, 0.0, 0.0, 1.0)), _time(time) {}
17
18 Pose(Eigen::Vector3d position, Eigen::Vector4d orientation, double time) : _position(position), _orientation(orientation), _time(time) {}
19
20 Pose(const Pose& other) : _position(other._position), _orientation(other._orientation), _time(other._time) {}
21
22 Eigen::Vector3d position() const { return _position; }
23
24 Eigen::Vector4d orientation() const { return _orientation; }
25
26 double time() const { return _time; }
27
28 private:
29 Eigen::Vector3d _position;
30 Eigen::Vector4d _orientation; // xyzw
31 double _time;
32};
33
34} // namespace holistic_fusion
35
36#endif // HOLISTIC_FUSION_POSE_H
Eigen::Vector3d _position
Definition Pose.h:29
Pose(const Pose &other)
Definition Pose.h:20
Eigen::Vector4d _orientation
Definition Pose.h:30
Eigen::Vector3d position() const
Definition Pose.h:22
Pose(Eigen::Vector3d position, double time)
Definition Pose.h:16
Eigen::Vector4d orientation() const
Definition Pose.h:24
Pose(Eigen::Vector3d position, Eigen::Vector4d orientation, double time)
Definition Pose.h:18
double time() const
Definition Pose.h:26