screen layout and functions (rt profile editor)
- Basic Profile Input Page
- Activity Profile Input Page
- Data Port Profile Input Page
- Service Port Profile Input Page
- Configuration Profile Input Page
- Documentation Information Settings Page
- Language/Environment Information Input Page
- RTC Profile XML Editing Page
- Constraint Information Description Format
#contents
This section explains the RT Profile Editor.
The RT Profile Editor consists of the following pages.
| No. | Screen Component Name | Description |
|---|---|---|
| 1 | Basic Profile Input Page | Enter basic component information, such as profile information for the RT component. |
| 2 | Activity Profile | Specify information such as the activities supported by the RT component. |
| 3 | Data Port Profile | Enter profiles for the data ports attached to the RT component. |
| 4 | Service Port Profile | Enter profiles for the service ports attached to the RT component and the service interfaces attached to the service ports. |
| 5 | Configuration | Enter user-defined configuration parameter information and system configuration information to be set for the RT component. |
| 6 | Documentation Generation | Enter various documentation information to be added to the RT component to be generated. |
| 7 | Language/Environment | Enter information about the code selection to be generated and the execution environment, such as the OS. |
| 8 | RTC.xml | Displays and edits the RtcProfile generated based on the configured information in XML format. |
You can switch between pages by selecting the tabs at the bottom of the editor screen.
Basic Profile Input Page
This page is used to enter basic component information, such as profile information for the RT component.
Each input item is described below.
| Item | Description | Required |
|---|---|---|
| RT-Component Basic Profile | ||
| Module Name | This is the name that identifies the RT component. This is a required input item. This name is used as the component name in the generated source code. Only alphanumeric characters can be entered. | ○ |
| Module Description | A brief overview of the RT component. | - |
| Version | The version of the RT component. In principle, enter the version number in a format such as x.y.z. | - |
| Vendor Name | The name of the vendor that developed the RT component. | ○ |
| Module Category | The category of the RT component. | ○ |
| Component Type | The type of the RT component. It can be specified from the following options. ・STATIC: A type of RTC that exists statically. Dynamic creation and deletion are not performed. ・UNIQUE: A type of RTC that can be dynamically created and deleted, but each component has an internal unique state and is not necessarily interchangeable. ・COMMUTATIVE: A type of RTC that can be dynamically created and deleted, and because it has no internal state, generated components are interchangeable. |
○ |
| Activity Type | The activity type of the RT component. It can be specified from the following options. ・PERIODIC: An activity type that executes RTC actions at regular intervals ・SPORADIC: An activity type that executes RTC actions irregularly ・EVENT_DRIVEN: An activity type in which RTC actions are event-driven |
○ |
| Component Kind | The type of execution form of the RT component. It can be selected from the following options. (Multiple options can be combined) ・DataFlow: An execution form that executes actions periodically ・FSM: An execution form that executes actions according to external events ・MultiMode: An execution form that has multiple operation modes |
○ |
| Maximum Number of Instances | The maximum number of RT component instances. Enter a natural number. | - |
| Execution Type | The type of ExecutionContext. It can be selected from the following. ・PeriodicExecutionContext: ExecutionContext that performs periodic execution ・ExtTrigExecutionContext: ExecutionContext that performs execution by an external trigger |
○ |
| Execution Rate | The execution rate of the ExecutionContext. A positive double value can be entered (unit: Hz). | - |
| Description | A description of the RT component. | - |
| RTC Type | Specify this when it is necessary to distinguish RT components that implement specific functions. | - |
Activity Profile Input Page
This page is used to enter information about the activities supported by the RT component to be generated.
The contents of the Documentation section are set for each activity. The Documentation section displays the content corresponding to the currently selected activity.
Each input item is described below.
| Item | Description | Required |
|---|---|---|
| Activity Profile | ||
| onInitialize | Initialization processing. It is called only once at the start of the component lifecycle. | - |
| onFinalize | Finalization processing. It is called only once at the end of the component lifecycle. | - |
| onStartup | Called only once when the ExecutionContext starts execution. | - |
| onShutdown | Called only once when the ExecutionContext stops execution. | - |
| onActivated | Called only once when transitioning from the inactive state to the active state. | - |
| onDeactivated | Called only once when transitioning from the active state to the inactive state. | - |
| onAborting | Called only once before entering the ERROR state. | - |
| onError | Called while in the ERROR state. | - |
| onReset | Called only once when resetting from the ERROR state and transitioning to the inactive state. | - |
| onExecute | Called periodically while in the active state. | - |
| onStateUpdate | Called every time after on_execute. | - |
| onRateChanged | Called when the rate of the ExecutionContext is changed. | - |
| onAction | Called to execute an operation according to the corresponding state. | - |
| onModeChanged | Called when the mode is changed. | - |
| Documentation | ||
| Activity Name | Displays the name of the currently selected activity. | - |
| Operation Overview | Describe an overview of the operation executed by the target activity. | - |
| Preconditions | Describe the preconditions that must be satisfied before executing the target activity. | - |
| Postconditions | Describe the postconditions that are satisfied after executing the target activity. However, if the target activity is executed when the preconditions are not satisfied, satisfaction of the postconditions is not guaranteed. | - |
Data Port Profile Input Page
This page is used to enter information about the data ports attached to the RT component.
To add a new port (InPort/OutPort), click the [Add] button in each section.
You can also delete the selected port by clicking the [Delete] button in each section.
The contents of the documentation section can be set for each port. The documentation section displays the content corresponding to the selected port.
Each input item is described below.
| Item | Description | Required |
|---|---|---|
| DataPort Profile | ||
| Port Name | The name of the DataPort. Only half-width alphanumeric characters can be entered. Port names cannot overlap with Data OutPort or Service Port names. |
○ |
| Detail | ||
| Port Name | Displays the currently selected Data Port in the format "port name (InPort/OutPort)". | - |
| Data Type | The data type handled by the DataPort. Data types defined in the IDL specified on the settings screen can be used. |
○ |
| Variable Name | The variable name corresponding to the DataPort. | - |
| Display Position | The display position of the Data InPort in the Build View. | ○ |
| Overview Description | Describe an overview of the data port. | - |
| Data Type | Describe the type handled by the data port. | - |
| Number of Data | Describe the number of data items, such as when the data is an array. | - |
| Meaning | Describe the meaning of the data. | - |
| Unit | Describe the unit of the data. | - |
| Occurrence Frequency/Cycle | Describe the occurrence frequency and cycle of the data. | - |
| Processing Speed/Cycle | Describe the processing speed and processing cycle of the data. | - |
Service Port Profile Input Page
This page is used to enter information about the service ports attached to the RT component.
A new service port can be added by selecting “Add Port” in the “RT-Component Service Ports” field on the left side of the screen. With a service port selected in “RT-Component Service Ports” on the left side of the screen, you can add a new service interface by selecting “Add Interface”. With a service port or service interface selected in “RT-Component Service Ports” on the left side of the screen, you can delete the selected port/interface by selecting [Delete]. Each input item is described below.
| Item | Description | Required |
|---|---|---|
| RT-Component Service Port Profile | ||
| Port Name | The name of the service port. Only half-width alphanumeric characters can be entered. Data InPort, Data OutPort, and Service Port names cannot overlap. |
○ |
| Display Position | The display position of the service port in the Build View. | ○ |
| Documentation | ||
| Overview Description | Describe an overview of the service port. | - |
| I/F Overview Description | Describe an overview of the service interfaces attached to the service port. | - |
| Item | Description | Required |
|---|---|---|
| RT-Component Service Port Interface Profile | ||
| Interface Name | The name of the service interface. Only half-width alphanumeric characters can be entered. Service interface names cannot overlap. |
○ |
| Direction | The type of service interface. It can be selected from the following options. ・Provided: Provided interface (for Service Provider) ・Required: Required interface (for Service Consumer) |
○ |
| Instance Name | The instance name of the service interface. Only half-width alphanumeric characters can be entered. | ○ |
| Variable Name | The variable name of the service interface. If omitted, the instance name is used. | - |
| IDL File | Specifies the IDL file name used for the service interface. Clicking the [Browse...] button displays a file selection dialog. | ○ |
| Interface Type | The service type used for the service interface. When an IDL file is specified, type information defined in the IDL is displayed. Only half-width alphanumeric characters can be entered. | ○ |
| IDL Path | The IDL search path. Clicking the [Browse...] button displays a directory selection dialog. | - |
| Documentation | ||
| Overview Description | Describe an overview of the service interface. | - |
| Arguments | Describe the arguments of the service interface. | - |
| Return Value | Describe the return value of the service interface. | - |
| Exceptions | Describe the exceptions of the service interface. | - |
| Preconditions | Describe the preconditions that must be satisfied before executing the operation of the service interface. | - |
| Postconditions | Describe the postconditions that are satisfied after executing the operation of the service interface. | - |
Configuration Profile Input Page
This page is used to enter user-defined configuration parameter information and other system configuration information to be set for the RT component.
To add new user-defined configuration parameter information and system configuration information, click the [Add] button in each section.
You can also delete the selected configuration information by clicking the [Delete] button in each section.
The contents of the Detail section and Documentation section can be set for each user-defined configuration parameter.
Each section displays the content configured for the selected user-defined configuration parameter.
Each input item is described below.
| Item | Description | Required |
|---|---|---|
| RT-Component Configuration Parameter Definitions | ||
| Name | The name of the user-defined configuration parameter. Only half-width alphanumeric characters can be entered. User-defined configuration parameter names cannot overlap. |
○ |
| Detail | ||
| Parameter Name | Displays the currently selected user-defined configuration parameter. | - |
| Data Type | The data type of the user-defined configuration parameter. Data types defined in the IDL specified on the settings screen can be used. |
○ |
| Default Value | The default value of the user-defined configuration parameter. Any value, including two-byte characters, can be set. | ○ |
| Variable Name | The variable name of the user-defined configuration parameter. Only half-width alphanumeric characters can be entered. | - |
| Unit | The unit of the user-defined configuration parameter. | - |
| Constraint | Describe the constraint conditions for the user-defined configuration parameter. For how to describe constraint conditions, see [[Constraint Information Description Format>#seiyaku]]. | - |
| Widget | Specifies the control used when setting configuration parameters in the ConfigurationView of RTSystemEditor. It can be selected from the following values. ・text: Text box (default setting) ・slider: Slider ・spin: Spin button ・radio: Radio button ・check: Checkbox ・ordered_list: Ordered list |
○ |
| Step | When "slider" is selected as the input control, specifies the step width of the slider. | - |
| Parameter Name | Displays the currently selected user-defined configuration parameter. | - |
| Data Name | Describe the name of the user-defined configuration parameter. | - |
| Default Value | Describe the default value of the user-defined configuration parameter. | - |
| Overview Description | Describe an overview of the user-defined configuration parameter. | - |
| Unit | Describe the unit of the user-defined configuration parameter. | - |
| Data Range | Describe the data range of the user-defined configuration parameter. | - |
| Constraint | Describe the constraint conditions of the user-defined configuration parameter. | - |
| RT-Component Configuration Parameter | ||
| Configuration | The configuration name to be set. Select it from the list. | ○ |
| Default Value | The default value of the configuration to be set. For items that already have default values set, the default value is set when the name is selected. | - |
Documentation Information Settings Page
Enter various documentation information related to the RT component to be generated.
The information entered on this page is embedded in the generated code in doxygen format.
Each input item is described below.
| Item | Description | Required |
| Component Overview | ||
| Overview Description | Describe an overview of the RT component to be generated. | - |
| Input/Output | Describe an overview of the input/output of the RT component. | - |
| Algorithms, etc. | Describe the algorithms and other items used by the RT component. | - |
| Other | ||
| Author/Contact | Describe information about the author and contact of the RT component. | - |
| License/Terms of Use | Describe information about the license and terms of use of the RT component. | - |
| References | Describe reference information. | - |
| Version Upgrade Log | ||
| VersionUp Log | Describe log information related to the changes made this time. | - |
| License/Terms of Use | Displays log information from past version upgrades. | - |
Language/Environment Information Input Page
This page is used to enter the language selection for the template source code generated based on the entered RT component specifications, the execution environment such as OS, dependent libraries, and so on.
Sections are divided by the language to be generated. Select the section for the language you want to generate, and enter the setting information specific to each language. When one section is selected, all other sections are closed. When code generation is executed (when the [Generate Code] button on the Basic Profile input page is clicked), template code for the language of the selected section is generated. Each input item is described below.
| Item | Description | Required |
| Language | Specifies the language to be generated. | ○ |
| Use old build environment. | When this checkbox is turned ON, code similar to the old version (a format that does not use Cmake) is generated. | - |
| Environment | ||
| Version | Sets the version information of the language in which the RTC to be generated is implemented. | - |
| OS | Sets OS information on which the RTC to be generated runs. | - |
| OS Version | Sets version information for the OS on which the RTC to be generated runs. | - |
| CPU | Sets CPU architecture information on which the RTC to be generated runs. | - |
| Other OS Information | Sets supplementary information other than version information for the OS on which the RTC to be generated runs. | - |
| Other CPU Information | Sets supplementary information other than architecture information for the CPU on which the RTC to be generated runs. | - |
| Library Information | ||
| Name | Specifies the name of the external library used by the RTC to be generated. | ○ |
| Version | Specifies version information for the external library used by the RTC to be generated. | - |
| Info. | Specifies supplementary information for the external library used by the RTC to be generated. | - |
When you click the [Add] button, an item row is added to the list. Then, when you click the added row, a file selection dialog is displayed, so select the target file.
RTC Profile XML Editing Page
This page is used to check and edit the contents of the XML file (RTC.xml) that describes the entered RT component specifications.
It is used to check the settings configured on other pages and to directly edit items that cannot be entered from the GUI screen.
The content of the displayed RT component specifications is created based on the content configured on other pages when switching to this page.
Clicking the [Update] button at the upper right of the screen reflects the content set or changed on this page in the other pages (it only reflects the content in the other pages and does not write to the file).
A screen like the following is also displayed, allowing you to check the changes. To reflect the changes in the other pages, click [OK].
The content entered directly on this page is saved only when it is saved while this page is displayed.
If you edit the content on this page and then save while another page is open, the items entered on the other page take precedence.
When saving the content of this page, validation is performed according to the schema definition of RTC.xml.
If an error is found during validation, an error message like the following is displayed, so correct the relevant location by referring to the displayed content.
&aname(seiyaku);
Constraint Information Description Format
Constraint conditions for data ports and user-defined configuration parameters are set in the following format.
| Setting Content | Setting Format |
|---|---|
| None | Blank |
| 100 (literal value) | 100 |
| 100 or more | x >= 100 |
| 100 or less | x<=100 |
| Greater than 100 | x>100 |
| Less than 100 | x<100 |
| 100 or more and 200 or less | 100<=x<=200 |
| Greater than 100 and less than 200 | 100<x<200 |
| Enumeration Type | (9600,19200,115200) |
| Array Type | x>100, x>200, x>300 |
| Hash Type | {key0: 100<x<200, key1: x>=100} |











