My Project 1.0
Holistic Fusion: A Generic Framework for Multimodal Sensor Fusion
Loading...
Searching...
No Matches
StaticTransforms.h
Go to the documentation of this file.
1/*
2Copyright 2023 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 STATIC_TRANSFORMS_H
9#define STATIC_TRANSFORMS_H
10
11// Eigen
12#include <Eigen/Eigen>
13
14// Workspace
16
17namespace holistic_fusion {
18
19class StaticTransforms : public TransformsDictionary<Eigen::Isometry3d> {
20 public:
21 // Constructor
22 StaticTransforms() : TransformsDictionary<Eigen::Isometry3d>(Eigen::Isometry3d::Identity()) {
23 std::cout << YELLOW_START << "StaticTransforms" << COLOR_END << " StaticTransforms instance created." << std::endl;
24 }
25
26 void setImuFrame(const std::string& s) { imuFrame_ = s; }
27 void setWorldFrame(const std::string& s) { worldFrame_ = s; }
28 void setOdomFrame(const std::string& s) { odomFrame_ = s; }
29 void setBaseLinkFrame(const std::string& s) { baseLinkFrame_ = s; }
30 void setInitializationFrame(const std::string& s) { initializationFrame_ = s; }
31
32 // Getters ------------------------------------------------------------
33 // Frames
34 const std::string& getImuFrame() { return imuFrame_; }
35 const std::string& getWorldFrame() { return worldFrame_; }
36 const std::string& getOdomFrame() { return odomFrame_; }
37 const std::string& getBaseLinkFrame() { return baseLinkFrame_; }
38 const std::string& getInitializationFrame() { return initializationFrame_; }
39
40 // Functionality ------------------------------------------------------------
41 virtual bool findTransformations() = 0;
42
43 protected:
44 // Required frames
45 std::string worldFrame_;
46 std::string odomFrame_;
47 std::string imuFrame_;
48 std::string baseLinkFrame_;
50};
51
52} // namespace holistic_fusion
53
54#endif // STATIC_TRANSFORMS_H
#define COLOR_END
#define YELLOW_START
virtual bool findTransformations()=0
void setOdomFrame(const std::string &s)
void setImuFrame(const std::string &s)
const std::string & getWorldFrame()
void setInitializationFrame(const std::string &s)
void setWorldFrame(const std::string &s)
void setBaseLinkFrame(const std::string &s)
const std::string & getBaseLinkFrame()
const std::string & getInitializationFrame()