My Project 1.0
Holistic Fusion: A Generic Framework for Multimodal Sensor Fusion
Loading...
Searching...
No Matches
StaticTransformsUrdf.h
Go to the documentation of this file.
1/*
2Copyright 2022 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 StaticTransformsUrdf_H
9#define StaticTransformsUrdf_H
10
11// ROS
12#include <kdl/tree.hpp>
13#include <kdl_parser/kdl_parser.hpp>
14#include "urdf/model.h"
15
16// Workspace
19
20namespace holistic_fusion {
21
23 public:
24 StaticTransformsUrdf(const std::shared_ptr<ros::NodeHandle> privateNodePtr);
25 void setup();
26
27 protected:
28 // Names
31
32 // Robot Models
33 urdf::Model urdfModel_;
34 std::unique_ptr<urdf::Model> model_;
35 KDL::Tree tree_;
36
38 std::map<std::string, ElementToRoot> segments_;
39
40 // Methods
41 void getRootTransformations(const KDL::SegmentMap::const_iterator element, std::string rootName = "");
42 tf::Transform kdlToTransform(const KDL::Frame& k);
43
44 // ROS
45 ros::NodeHandle privateNode_;
46
47 private:
48 virtual bool findTransformations() = 0;
49};
50} // namespace holistic_fusion
51#endif // end StaticTransformsUrdf_H
std::map< std::string, ElementToRoot > segments_
A map of dynamic segment names to SegmentPair structures.
tf::Transform kdlToTransform(const KDL::Frame &k)
std::unique_ptr< urdf::Model > model_
void getRootTransformations(const KDL::SegmentMap::const_iterator element, std::string rootName="")
StaticTransformsUrdf(const std::shared_ptr< ros::NodeHandle > privateNodePtr)