Composite

This sample is bundled with C++ version, Python version, Java version of OpenRTM-aist.

(G)Overview

A sample showing how to use composite component Composite. Before activating a composite component, you need to connect between the child components that make up the composite component.
The Composite component has three components, Sensor, Controller, Motor, in its child. The behavior of Composite components can be checked by connecting to the ConsoleIn / ConsoleOut component.


(G)Boot screen

When you run the Composite component, the Name Service View displays the four component names. Since the component that decoded three of Controller, Motor, and Sensor is PeriodicECShareComposite, drag and drop it to System Diagram.

composite_001.jpg
Composite execution example(drag&drop composite component)


Double click on PeriodicECShareComposite in order to display inside the composite component, it will be displayed in another editor, so connect the components.

composite_002.jpg
Composite execution example (connect between child components of composite component)


Here is an example of operation when connecting with the ConsoleIn / ConsoleOut component.

composite_003.jpg
Composite execution example (RTSystemEditor connection screen)


If you enter "111" in ConsoleIn, it will be correct if "888" is displayed in ConsoleOut. The child component that composes the composite component doubles the input value (the value displayed on the console screen) and outputs it.


composite_004.jpg composite_005.jpg
Composite execution example (left: composite component screen, right: ConsoleOut screen)


(G)How to use

In the Composite sample, the value received from the input data port is outputted with the value of each of the three child components being doubled, so that the sample which is finally outputted eight times from the output data port of Composite is.

  • Procedure
    • Start RTSystemEditor and prepare SystemEditor. → For details on how to use RTSystemEditor, see [[RTSystemEditor]/node/1175]]
    • Launch the Composite component. Since the startup of the component depends on the OS and the language of OpenRTM-aist, start it with reference to the following table.
CENTER: Windows case CENTER: Linux case
C++ version Composite.exe Composite
Python version Composite.py Composite.py
Java version Composite.bat Composite.sh
  • Since PeriodicECShareComposite appears in NameServiceView of RTSystemEditor, drag them onto SystemEditor.
  • Double click PeriodicECShareComposite and tie the port between the child components
  • Launch both ConsoleIn and ConsoleOut components and connect PeriodicECShareComposite to the corresponding port. (See Composite execution example above)
  • Right-click on either component and select "All Activate".

Download

latest Releases

For Begginers

Windows msi(installer) package (only trying samples)

C++,Python,Java,
Toolsを含む
1.2.1-RELEASE

Development environment is required for RT-Component development. See download page for details.

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK