Main Page
Namespaces
Classes
Files
File List
File Members
include
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
27
class
OptimizerGoalPosition
:
public
OptimizerGoal
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
robotLibPbD::OptimizerGoal::second
CFrame * second
Definition:
optimizer_goal.h:36
robotLibPbD::OptimizerGoal
Definition:
optimizer_goal.h:30
robotLibPbD::CFrame::getRelativeToBase
virtual CMatrix getRelativeToBase()
Returns pose in the base (frame with no predecessor) frame.
Definition:
frame.h:508
robotLibPbD
Definition:
config.h:22
robotLibPbD::CMatrix
Homogenous matrix.
Definition:
vecmath.h:187
robotLibPbD::CMatrix::toString
std::string toString(bool round=false)
Definition:
vecmath.cpp:221
robotLibPbD::OptimizerGoalPosition
Definition:
optimizer_goal_position.h:27
LOG_MSG
#define LOG_MSG(index, format,...)
Definition:
log.h:32
robotLibPbD::OptimizerGoalPosition::getDistance
virtual double getDistance()
Definition:
optimizer_goal_position.h:30
robotLibPbD::CMatrix::invert
void invert()
Inverts the matrix (only for homogenous matrices)
Definition:
vecmath.h:461
optimizer_goal.h
robotLibPbD::OptimizerGoal::first
CFrame * first
Definition:
optimizer_goal.h:36
asr_kinematic_chain_optimizer
Author(s): Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij
autogenerated on Mon Jun 10 2019 12:35:36