Download
latest Releases : 2.0.0-RELESE
2.0.0-RELESE | Download page |
Number of Projects
RT-Component | 152 |
RT-Middleware | 33 |
Tools | 22 |
Documentation | 2 |
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
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.
And 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.