RotationInvariantObjectsRotator.hpp
Go to the documentation of this file.
1 
19 #pragma once
20 
21 #include <string>
22 #include <vector>
23 
24 #include "../common_type/ObjectSet.hpp"
25 
26 
27 namespace ISM
28 {
29 
34 {
35  public:
36  void rotateRotationInvariantObjects(const std::string& sourceFile, const std::string& targetFile, const std::string& objectType, const std::string& objectId, bool useMapFrame, const std::vector<std::string>& rotationInvariantTypes);
37 
38  private:
46  Eigen::AngleAxisd calculateTransform(const Eigen::Vector3d& objectAxis, const Eigen::Vector3d& referenceAxis, const Eigen::Vector3d& unitAxis);
47 
53  void normalizeRotationInvarienceObjects(ISM::ObjectSetPtr objectSet, Eigen::Quaterniond quat, const std::vector<std::string>& rotationInvariantTypes);
54 
62  ObjectPtr getReferenceObject(ObjectSetPtr oset, const std::string& type, const std::string& id);
63 };
64 }
Eigen::AngleAxisd calculateTransform(const Eigen::Vector3d &objectAxis, const Eigen::Vector3d &referenceAxis, const Eigen::Vector3d &unitAxis)
calculateTransform Calculate transform between two axis
void rotateRotationInvariantObjects(const std::string &sourceFile, const std::string &targetFile, const std::string &objectType, const std::string &objectId, bool useMapFrame, const std::vector< std::string > &rotationInvariantTypes)
ObjectPtr getReferenceObject(ObjectSetPtr oset, const std::string &type, const std::string &id)
getReferenceObject Search for reference object in a set
void normalizeRotationInvarienceObjects(ISM::ObjectSetPtr objectSet, Eigen::Quaterniond quat, const std::vector< std::string > &rotationInvariantTypes)
normalizeRotationInvarienceObjects Rotate CS of rotation invariant objects in an object set...
boost::shared_ptr< ObjectSet > ObjectSetPtr
Definition: ObjectSet.hpp:53
this namespace contains all generally usable classes.
boost::shared_ptr< Object > ObjectPtr
Definition: Object.hpp:82


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40