ダウンロード
最新バージョン : 2.1.0-RELESE
| 2.1.0-RELESE | ダウンロードページ |
OpenRTM@Github
OpenRTM-aist GitHubサイト
ROS
Robot Operating System
Choreonoid
モーションエディタ/シミュレータ
DAQ-Middleware
ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク
産総研が提供するRTC集
東京オープンソースロボティクス協会
| 2.1.0-RELESE | ダウンロードページ |
OpenRTM-aist GitHubサイト
Robot Operating System
モーションエディタ/シミュレータ
ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク
産総研が提供するRTC集
東京オープンソースロボティクス協会
- /usr/share/openrtm-1.2/components/java/
If built from the source, you can find it at:Check if OpenRTM-aist is built and installed correctly using the sample component set SimpleIO.
Sample component set SimpleIO
This sample set consists of RT components ConsoleIn and ConsoleOut. ConsoleIn is a component that outputs numbers input from the console to OutPort, and ConsoleOut is a component that displays the numbers input from InPort to the console. These are simple examples to show a way to handle I/O (input and output). It works by configuring a connection from the OutPort of ConsoleIn to the InPort of ConsoleOut and activating the two components.
In the following explanation, I assume that the samples are located in /usr/share/openrtm-1.2/components/java/SimpleIO.
Testing with samples
name server startup
Follow the steps below to start RTSystemEditor and name servers.Launching ConsoleIn
Launch a terminal and launch ConsoleIn by typing-in:
If you build and install it by yourself, you need to set the environment variable CLASSPATH first.
Export CLASSPATH=. :${RTM_JAVA_ROOT}/jar/OpenRTM-aist-1.2.0.jar: {\fnDroid} ${RTM_JAVA_ROOT}/jar/OpenRTM-aist-1.2.0.jar: ${RTM_JAVA_ROOT}/jar/commons-cli-1.1.jar ${RTM_JAVA_ROOT}/jar/jna-4.2.2.jar:${RTM_JAVA_ROOT}/jar/jna-platform-4.2.2.jar: \frx346} ${RTM_JAVA_ROOT}/binAnd then start the RTC by typing-in like:
Launching ConsoleOut
Start another terminal and launch ConsoleOut by typing-in:
If you built and installed the program yourself, start the RTC by typing-in like:
Putting them into the editor
Click [>] in the tree view of the RTSystemEditor to see that the two components you just launched are registered.
Open an editor to edit the system. Click [Open New System Editor] button
in the top to open the editor in the middle pane.
Drag and drop the components (two) shown by the
icon into the name service view on the left to the editor in the center.
Connections and Activation
The right side of the ConsoleIn0 component has OutPort
where data is output, and InPort
where data is input, and the left side of the ConsoleOut0 component has InPort
respectively.
These InPort/OutPort (collectively called data ports) are connected. When drag and drop from OutPort to InPort (or InPort to OutPort) is made, a dialog like the one shown in the figure appears, so click the [OK] button with the default settings.
A connecting line appears between the two components. Next, click the [Activate Systems] button
on the top menu of the editor to activate these components. When activated, the component changes to green.
Once the component is activated, the ConsoleIn console prompt:
Enter an appropriate number (within the range of short int: 32767 or less) and press the Enter key. Then, on the ConsoleOut side, the entered values are displayed. It indicates that the data has been transferred from the ConsoleIn component to the ConsoleOut component.
This completes the confirmation of the basic behavior of the component.