My Project 1.0
Holistic Fusion: A Generic Framework for Multimodal Sensor Fusion
Loading...
Searching...
No Matches
TrajectoryAlignmentHandler.h
Go to the documentation of this file.
1/*
2Copyright 2024 by Julian Nubert, Robotic Systems Lab, ETH Zurich.
3All rights reserved.
4This file is released under the "BSD-3-Clause License".
5Please see the LICENSE file that has been included as part of this package.
6 */
7
8#ifndef HOLISTIC_FUSION_TrajectoryAlignmentHandler_H
9#define HOLISTIC_FUSION_TrajectoryAlignmentHandler_H
10
11// C++
12#include <Eigen/Eigen>
13// Package
16
17// Defined macros
18#define GREEN_START "\033[92m"
19#define YELLOW_START "\033[33m"
20#define COLOR_END "\033[0m"
21
22namespace holistic_fusion {
23
25 public:
27
28 // Methods
29 void initHandler();
30 void addSe3Position(Eigen::Vector3d position, double time);
31 void addR3Position(Eigen::Vector3d position, double time);
32 bool alignTrajectories(double& yaw, Eigen::Isometry3d& se3);
33
34 // Setters
35 void setR3Rate(const double& r3Rate);
36 void setSe3Rate(const double& se3Rate);
37 void setMinDistanceHeadingInit(const double& minDistanceHeadingInit);
38 void setNoMovementDistance(const double& noMovementDistance);
39 void setNoMovementTime(const double& noMovementTime);
40
41 // Getters
42 std::vector<std::pair<double, Eigen::Vector3d>> getSe3Trajectory();
43 std::vector<std::pair<double, Eigen::Vector3d>> getR3Trajectory();
44
45 private:
46 // Member variables
48};
49
50} // namespace holistic_fusion
51
52#endif // HOLISTIC_FUSION_TrajectoryAlignmentHandler_H
void setNoMovementDistance(const double &noMovementDistance)
void addSe3Position(Eigen::Vector3d position, double time)
void addR3Position(Eigen::Vector3d position, double time)
std::vector< std::pair< double, Eigen::Vector3d > > getSe3Trajectory()
void setMinDistanceHeadingInit(const double &minDistanceHeadingInit)
bool alignTrajectories(double &yaw, Eigen::Isometry3d &se3)
std::vector< std::pair< double, Eigen::Vector3d > > getR3Trajectory()