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

NameDescriptionTypeDefault
classThe class name for the module; must be "Transform".string
nameThe name of this instance of the module.string
invert_1Should the transformation matrix in MATRIX_1 be inverted before use?boolno
invert_2Should the transformation matrix in MATRIX_2 be inverted before use?boolno

Module Connections

Inputs

NameDescription
MATRIX_1A matrix where each row represents a 4x4 transformation matrix as 16 consecutive elements
OBJECT_ID_1The object id for each of the rows in MATRIX_1
FRAME_ID_1The id of the reference frame for each of the rows in MATRIX_1
MATRIX_2A matrix where each row represents a 4x4 transformation matrix as 16 consecutive elements
OBJECT_ID_2The object id for each of the rows in MATRIX_2
FRAME_ID_2The id of the reference frame for each of the rows in MATRIX_2

Outputs

NameDescription
MATRIXA copy of the INPUT with all matrices transformed
OBJECT_IDThe id of the object for each of the rows in MATRIX
FRAME_IDThe 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

blog comments powered by Disqus