SimpleIO

This sample is included with C ++, Python and Java versions of OpenRTM-aist.

Overview

Sample of how to use InPort and OutPort. Start the ConsoleIn and ConsoleOut components. When the ports are connected, the numbers entered on the ConsoleIn side are displayed on the ConsoleOut side. Ports can be connected by executing rtshell commands in addition to using RTSystemEditor.

Start screen

SimpleIO_example_rtse_ja.png
SimpleIO execution example (RTSystemEditor connection screen)

open_consolein_out.png
Execution example of ConsoleIn and ConsoleOut components

How to use

The sample of SimpleIO is a sample that sends the number input by ConsoleIn from the data port to ConsoleOut and displays the same number on ConsoleOut side. Enter a number from the ConsoleIn screen. Then the number entered in ConsoleOut will be output.

  • Start OpenRTP and open RTSystemEditor. See RTSystemEditor for details on how to use RTSystemEditor
  • Start both ConsoleIn and ConsoleOut components. Component startup differs depending on the OS and OpenRTM-aist language. Start by referring to the table below.
For Windows For Linux
ConsoleIn component ConsoleOut component ConsoleIn component ConsoleOut component
C++ version ConsoleIn.bat ConsoleOut.bat ConsoleInComp ConsoleOutComp
Python version ConsoleIn.bat ConsoleOut.bat ConsoleIn.py ConsoleOut.py
Java version ConsoleIn.bat ConsoleOut.bat ConsoleIn.sh ConsoleOut.sh
  • Drag both components onto the SystemEditor as both components appear in the Name Service View of RTSystemEditor.
  • Connect the ports of both components. (Refer to SimpleIO execution example above)
  • Right-click either component and select [Activate Systems].
  • The "Please input number:" prompt appears on the ConsoleIn screen. Enter the number.
  • The number is displayed on the ConsoleOut screen.

ダウンロード

最新バージョン : 2.0.1-RELESE

統計

Webサイト統計
ユーザ数:2211
プロジェクト統計
RTコンポーネント307
RTミドルウエア35
ツール22
文書・仕様書2

Choreonoid

モーションエディタ/シミュレータ

OpenHRP3

動力学シミュレータ

OpenRTP

統合開発プラットフォーム

産総研RTC集

産総研が提供するRTC集

TORK

東京オープンソースロボティクス協会

DAQ-Middleware

ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク