eeros_architecture:control_system:blocks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eeros_architecture:control_system:blocks [2017/03/17 09:55] – [Inputs and Outputs] graf | eeros_architecture:control_system:blocks [2017/03/17 12:11] – [Predefined Blocks] graf | ||
---|---|---|---|
Line 12: | Line 12: | ||
Step<> | Step<> | ||
step.setName(" | step.setName(" | ||
- | step.getOut().getSignal().setName(" | ||
Sum< | Sum< | ||
sum.setName(" | sum.setName(" | ||
- | sum.getOut().getSignal().setName(" | ||
sum.getIn(0).connect(step.getOut()); | sum.getIn(0).connect(step.getOut()); | ||
Line 28: | Line 26: | ||
Output signals are created together with the blocks. On the other side, there is no need to generate and name input signals. | Output signals are created together with the blocks. On the other side, there is no need to generate and name input signals. | ||
- | =====Signals===== | ||
- | The signals used to connect the blocks can be of different types. They can be parametrized with the aid of template parameters. Supported types are | ||
- | * Arithmetic (int, double ...) | ||
- | * Logic (bool) | ||
- | * Vector (Vector2, Vector3, Vector4) | ||
- | * Matrix | ||
- | Each signal can be assigned a name and a unit. All dimensions of a signal share the same name and unit.\\ | ||
- | |||
- | As an example we look at a block which does summation. Two signals, each of dimension 3, will be added together. | ||
- | <code cpp> | ||
- | Sum< | ||
- | sum.setName(" | ||
- | sum.getOut().getSignal().setName(" | ||
- | </ | ||
- | This is shown in the following diagram: | ||
- | {{ sumblock.png? | ||
- | |||
- | The functions //getIn()// and // | ||
=====Making Connections===== | =====Making Connections===== |
eeros_architecture/control_system/blocks.txt · Last modified: 2022/04/19 12:36 by ursgraf