Skip to content
Snippets Groups Projects
Commit 030e5335 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add a ctor for FramedOrientation taking an Eigen::Quaternionf

parent 7b0751ba
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -698,6 +698,13 @@ namespace armarx
this->agent = agent;
}
FramedOrientation::FramedOrientation(const Quaternionf& q, const string& frame, const string& agent):
Quaternion(q)
{
this->frame = frame;
this->agent = agent;
}
FramedOrientation::FramedOrientation(const Eigen::Matrix4f& m, const std::string& s, const std::string& agent) :
Quaternion(m)
{
......
......@@ -237,6 +237,7 @@ namespace armarx
FramedOrientation();
FramedOrientation(const Eigen::Matrix4f&, const std::string& frame, const std::string& agent);
FramedOrientation(const Eigen::Matrix3f&, const std::string& frame, const std::string& agent);
FramedOrientation(const Eigen::Quaternionf& q, const std::string& frame, const std::string& agent);
// this doesnt work for an unknown reason
//FramedOrientation(const QuaternionBasePtr ori, const std::string &frame );
std::string getFrame()const ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment