getting started with openrtm-aist in 10 minutes!

✏️ Edit this page on GitHub

#contents

The latest version, OpenRTM-aist-2.1.0-RELEASE, installs the C++ edition, Python edition, Java edition, OpenRTP, and rtshell.

Preparation

Installing Python

If Python is not installed, OpenRTM-aist cannot be installed. Please install Python before installing OpenRTM-aist. Supported versions are “3.14”, “3.13”, “3.12”, “3.11”, and “3.10”.

For downloading Python, see Installing OpenRTM-aist 2.1 on Windows.

The Python installation location supports the [Customize installation] option during installation.

Configure the search path automatically using the following method. This adds the directory containing python.exe and the Scripts directory to the Path.
(Example: Path=C:\Python313;C:\Python313\Scripts;…)

[Installation Procedure]

  • Launch the Python installer. Version 3.13 is used as an example here.
  • Check [add python *** to PATH] at the bottom of the first screen, then select [Customize installation].
  • No changes are required on the [Optional Features] screen. Select [Next] to continue.
  • On the [Advanced Options] screen, check [Install for all users], and specify the installation destination in [Customize install location]. (Example: Path=C:\Python313;C:\Python313\Scripts;…)
  • Select [Install] to complete the installation.

Downloading OpenRTM-aist

For downloading the installer, see Download.

If you are using Microsoft Edge and cannot download because the following message appears, follow the procedure below.

  • Click the “…” displayed when you hover the mouse cursor over the item.
  • Click “Keep”.
  • Click the “✓” (check mark) next to “Delete”, then click “Keep anyway” from the displayed menu.
  • The download is now complete. Click “Open file” to start the installer.

Installing OpenRTM-aist

[Installation Procedure]

  1. Launch the installer and click [Next].


  1. This is the license agreement page. Accept the software license terms and click [Next].


  1. Select the installation type. Click [Next] with the default settings.


  1. Select the setup type. Click [Typical] to install all features.


  1. Installation is complete. Click [Finish] to exit the installer.


Checking System Environment Variables

We have confirmed cases where nested environment variables are not expanded recursively, but this can be resolved using the VerChanger tool. For details, see the following page.

Running Sample Components

This section explains how to verify the connection operation between two RTCs using the RTSystemEditor feature of OpenRTP.

&aname(openrtp_start);

Starting OpenRTP

  • Launch it by clicking the desktop shortcut.
Starting OpenRTP
  • Specify any appropriate location for the workspace.
Selecting a Workspace


  • The “Welcome” screen is not needed, so click the [×] button on the [Welcome] tab in the upper-left corner to close the screen.
Screen at Initial Startup


Using RTSystemEditor

  • Click [Open Perspective] in the upper-right corner of the screen. In the dialog that appears, select [RT System Editor] and click [Open] to start RTSystemEditor.
;
;
Switching Perspectives


  • Only during the first startup, a dialog saying “Failed to start the toolbar.” will be displayed. Follow the instructions to exit OpenRTP and start it again.
Restart OpenRTP
  • Press the Name Service startup button to start the localhost name server.
;
;

Starting C++ ConsoleIn and ConsoleOut

  • Enter “c++_e” in lowercase in the Windows search box. When the C++_Examples candidate appears, click it.
Select C++_Examples
  • A list of C++ sample RTCs will be displayed. Double-click ConsoleIn and ConsoleOut to start them.
Start ConsoleIn and ConsoleOut


  • After startup, console windows similar to the following will be displayed.
;
ConsoleIn.bat and ConsoleOut.bat


  • Click [Open New System Editor] from the toolbar to display the [System Diagram].
Display the System Diagram


  • Drag and drop the ConsoleIn and ConsoleOut components from [NameServiceView] onto the [System Diagram]. They will be displayed as shown below.
Drag and Drop Components


  • Connect the components by dragging and dropping between the data ports. After that, a dialog prompting for the information required for the connection will appear. Click [OK].
;
;
Connecting Components


  • The components will be connected as shown in the image below.
Connection Complete


  • Change the component state to Active. Click [All Activate]. If the component color changes from blue to light green, the operation is successful. Components can also be activated individually by selecting them and right-clicking. (If [All Activate] is not displayed, try restarting OpenRTP. Alternatively, you may activate the components individually.)


Activation Complete


Verifying Operation in the Component Console Windows

  • Next, verify operation in the console windows. After connecting the components in RTSystemEditor, “Please input number:” is displayed in the ConsoleIn window.
"Please input number:" Displayed


  • Enter any numeric value in the ConsoleIn window and press [Enter]. The value is displayed in the ConsoleOut window.
;
Operation Verification


  • Entering non-numeric values or excessively large values may cause abnormal behavior. In that case, stop the batch file using the Ctrl-C key and restart from launching the batch files again.

  • To terminate the components, click [All Deactivate] from the toolbar. Then right-click the components and select [Exit].

    • If deactivation takes a long time, ConsoleIn is waiting for numeric input. In that case, enter any numeric value.
Deactivating Components


Terminating Components


  • This completes the operation verification using ConsoleIn and ConsoleOut.

Using rtshell

rtshell is installed by default with OpenRTM-aist.

By using rtshell, you can activate, deactivate, and terminate RTCs from the command line.

See Installing and Verifying rtshell Operation (Windows Edition).

Next…

Please refer to the links below.

  • Try running more samples   &t;: Sample Components
  • Try creating a component   &t;: Case Study
  • Learn OpenRTM from the basics &t;: Developer’s Guide
  • Join the community     &t;: Community
  • Browse published components &t;: Projects(No corresponding English project page available.)