optimizer_goal_position.h
Go to the documentation of this file.
1 
19 #ifndef __INC_OPTIMIZER_GOAL_POSITION
20 #define __INC_OPTIMIZER_GOAL_POSITION
21 
22 #include <vector>
23 #include <optimizer_goal.h>
24 
25 namespace robotLibPbD {
26 
28 {
29 public:
30  virtual double getDistance()
31  {
32  CMatrix pose;
33  LOG_MSG(10, "First:\n%s", first->getRelativeToBase().toString().c_str());
34  LOG_MSG(10, "Second:\n%s", second->getRelativeToBase().toString().c_str());
35 
36 
37  pose = first->getRelativeToBase();
38  pose.invert();
39  pose.mul(pose, second->getRelativeToBase());
40 
41  return pose[3].length();
42  };
43 };
44 
45 };
46 
47 #endif
virtual CMatrix getRelativeToBase()
Returns pose in the base (frame with no predecessor) frame.
Definition: frame.h:508
Homogenous matrix.
Definition: vecmath.h:187
std::string toString(bool round=false)
Definition: vecmath.cpp:221
#define LOG_MSG(index, format,...)
Definition: log.h:32
void invert()
Inverts the matrix (only for homogenous matrices)
Definition: vecmath.h:461


asr_kinematic_chain_optimizer
Author(s): Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij
autogenerated on Mon Jun 10 2019 12:35:36