This sample is included with C ++, Python and Java versions of OpenRTM-aist.
This is a sample that shows how to use the composite component. Before activating a composite component, you must connect the child components that make up the composite component.
Double-click PeriodicECShareComposite to display the inside of the composite component. It will show another editor view. Connect the components.
Here is an example of an operation when connecting with the ConsoleIn/ConsoleOut component.
If "111" is entered in ConsoleIn and "888" is displayed in ConsoleOut, the operation is correct. The child components that make up the composite component output twice the input value (the values displayed on the composite component screen).
In the sample of Composite, the value received from the input data port is doubled and output from output data port of each of the three child components, so the sample finally outputs the 8 times value from the output data port of Composite
Windows case | Linux case | |
C++ version | Composite.bat | Composite |
Python version | Composite.bat | Composite.py |
Java version | Composite.bat | Composite.sh |