Transform
The module Transform takes two steams of hogonenous matrices together with the ids for their reference frames and transforms the matrices to the reference frames given by a second stream of homogenous matrices. If the parameter invert_1 or invert_2 is set to true, the matrix of the respective stream will be inverted before the multiplication takes place. This module can be used together with the module Merge to do object recognition, landmark recognition, localization etc.
Example XML definition
A simple example
<module class = "Transform" name = "Transform" />
Parameters
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "Transform". | string | |
name | The name of this instance of the module. | string | |
invert_1 | Should the transformation matrix in MATRIX_1 be inverted before use? | bool | no |
invert_2 | Should the transformation matrix in MATRIX_2 be inverted before use? | bool | no |
Module Connections
Inputs
Name | Description |
---|---|
MATRIX_1 | A matrix where each row represents a 4x4 transformation matrix as 16 consecutive elements |
OBJECT_ID_1 | The object id for each of the rows in MATRIX_1 |
FRAME_ID_1 | The id of the reference frame for each of the rows in MATRIX_1 |
MATRIX_2 | A matrix where each row represents a 4x4 transformation matrix as 16 consecutive elements |
OBJECT_ID_2 | The object id for each of the rows in MATRIX_2 |
FRAME_ID_2 | The id of the reference frame for each of the rows in MATRIX_2 |
Outputs
Name | Description |
---|---|
MATRIX | A copy of the INPUT with all matrices transformed |
OBJECT_ID | The id of the object for each of the rows in MATRIX |
FRAME_ID | The id of the reference frame for each of the rows in MATRIX |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
Transform.h
Transform.cc
Transform.ikc