Skip to content
Snippets Groups Projects
Commit 062fdd8f authored by Romano Hauser's avatar Romano Hauser
Browse files

change README

parent 126adc57
Branches
Tags
No related merge requests found
......@@ -6,40 +6,40 @@ Core part is the singleton class TF_Tree
## Initialize TF_Tree
Get an instance of the class
´
`
TF_Tree & tfTree = TF_Tree::instance();
´
`
set a new TF:
´
`
tfTree.addTF("refPoint","global");
tfTree.addTF("front","refPoint");
´
`
Each TF with "name" is referenced to an other TF. Main base is "global". It's default base, if not defined differently
After initialize neede TFs, the structure can be showed:
´
`
tfTree.printBranches("global");
´
`
Set Values for Translation and Orientation:
´
`
tfTree.getTF("refPoint")->setTrans(eeros::math::Vector3(0.0, 0.0, 0.7));
tfTree.getTF("refPoint")->setRPY(0.1, -0.1, 0.12);
´
`
## Get Trafo-Matrix
Get initialized TF:
´
`
TrafoMatrix* tf_ref = tfTree.getTF("refPoint");
´
`
## Get Trafo-Matrix With Base
Get TF from Goal to Base:
´
`
TrafoMatrix tf_front_global = tfTree.trafoFromWithBase("front","global");
´
`
## Jacobi-Matrix
´
`
Matrix<6,6,double> jacobian = tf_front_global.getJacobiMatrix();
´
`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment