After successful installation or build, test the operation with the attached sample. Samples are usually located at:
/usr/share/openrtm-1.2/components/python/<sample component set name>
If you build from source, under the source directory
OpenRTM_aist/examples/<sample component set name>
Check that OpenRTM-aist is built and installed correctly using the sample component set SimpleIO.
Sample component set SimpleIO
This is a sample set consisting of RT components ConsoleIn and ConsoleOut. ConsoleIn is a component that outputs numerical values input from the console to OutPort, and ConsoleOut is a component that displays numerical values input from InPort to the console. These are RTC samples to show a simple I/O (input/output) use. It works by connecting the data ports from ConsoleIn's OutPort to ConsoleOut's InPort and activating these two components.
Here, I will explain by assuming that the sample set is under /usr/share/openrtm-1.2/components/python/SimpleIO. Also, it is assumed that a search path has been set for the executable file of Python itself. If you build from the source code, the sample executable file is in <source_dir>/OpenRTM_aist/examples/SimpleIO/, so replace the sample file location in the further explanation and the explanation in the linked page.
Operation check using sample component set
Operation check using RTSystemEditor
In the following explanation, an operation check using RTSystemEditor (OpenRTP) is explained. Please refer to Operation check (On Linux) under the "Install rtshell" page. for the environment that does not use OpenRTP like the case of Raspbian.
Start the name server Follow the procedure below to start RTSystemEditor and the name server.
Click [>] in the tree view of RTSystemEditor, and you can see that the two components started in the above.
ConsoleIn and ConsoleOut components
Open System Diagram to edit system. Click the [Open New System Editor] button to open the System Diagram in the center pane.
Drag and drop the components (two) indicated by the icon into the center System Diagram.
Place components on System Diagram
Connect and activate
You can see an OutPort where data is output to and is shown on the right side of the ConsoleIn0 component and an InPort where data is input from and is shown on the left side of the ConsoleOut0 component like the following figure.
Data port connection
Connect these InPort/OutPort (these are called "data port"). If you drag and drop from the OutPort to the InPort (or from the InPort to the OutPort), a dialog as shown below appears. Click the [OK] button with the default settings. OutPort
Data port connection dialog
A connection line appears between the two components. Next, click the [All Activate] button & ref(rtm14.png); in the top menu of the editor to activate these components.
When activated, the component turns green.
Activated component
When the component is activated, on the console of the ConsoleIn component
Please input number:
The prompt is displayed. Enter an appropriate number (within the range of short int: 32767 or less) and press the Enter key. Then, the entered value is also displayed on the ConsoleOut side, and you can see that the data was transferred from the ConsoleIn component to the ConsoleOut component.
This concludes the confirmation of the basic operation of the OpenRTM-aist-python using RTSystemEditor.
- Sample component set SimpleIO
- Operation check using sample component set
- Operation check using RTSystemEditor
- Start the name server Follow the procedure below to start RTSystemEditor and the name server.
- Launch ConsoleIn
- Launch ConsoleOut
- Placement in System Diagram
- Connect and activate
After successful installation or build, test the operation with the attached sample. Samples are usually located at:Check that OpenRTM-aist is built and installed correctly using the sample component set SimpleIO.
Sample component set SimpleIO
This is a sample set consisting of RT components ConsoleIn and ConsoleOut. ConsoleIn is a component that outputs numerical values input from the console to OutPort, and ConsoleOut is a component that displays numerical values input from InPort to the console. These are RTC samples to show a simple I/O (input/output) use. It works by connecting the data ports from ConsoleIn's OutPort to ConsoleOut's InPort and activating these two components.
Here, I will explain by assuming that the sample set is under /usr/share/openrtm-1.2/components/python/SimpleIO. Also, it is assumed that a search path has been set for the executable file of Python itself. If you build from the source code, the sample executable file is in <source_dir>/OpenRTM_aist/examples/SimpleIO/, so replace the sample file location in the further explanation and the explanation in the linked page.
Operation check using sample component set
Operation check using RTSystemEditor
In the following explanation, an operation check using RTSystemEditor (OpenRTP) is explained. Please refer to Operation check (On Linux) under the "Install rtshell" page. for the environment that does not use OpenRTP like the case of Raspbian.
Start the name server Follow the procedure below to start RTSystemEditor and the name server.
Launch ConsoleIn
Launch ConsoleOut
Placement in System Diagram
Connect and activate
This concludes the confirmation of the basic operation of the OpenRTM-aist-python using RTSystemEditor.