Once all the necessary information for the new RT Component has been specified, the template code can be generated. On the Basic Profile tab, click the Generate button to generate the template code.
The generated template files are as follows, dependent on the language selected:
Filename | Explanation |
README_<RTC name> | README file. Contains the information entered before generation. |
Filename | Explanation |
<RTC name> Comp.cpp | RT Component launch code. |
<RTC name>.h | RT Component main header. |
<RTC name>.cpp | RT Component main code. |
<Service type name>SVC_impl.h | Service provider header*. Only the specified ServiceProvider Type will be output. |
<Service type name>SVC_impl. cpp | Service provider implementation*. Only the specified ServiceProvider Type will be output. |
Makefile.<RTC name> | Makefile for compiling the component. |
<RTC name>.vcproj | Project file for Visual Studio. Only generated when the supported OS is set to Windows. |
OpenRTM-aist.vsprops | Visual Studio property file for OpenRTM-aist. |
Filename | Explanation |
<RTC name>Comp.java | RT Component launch class. |
<RTC name>.java | RT Component's Component Profile. Class specified during initialisation. |
<RTC name>Impl.java | RT Component implementation. |
build_<RTC name>.xml | Build file for the RT Component. |
<Service type name> SVC_impl.java | Service provider implementation class*. |
Filename | Explanation |
<RTC name>.py | RT component implementation. |
<Service type name>_idl.py | |
<Service type name>_idl_example.py | Service provider implementation class*. |
If an output file of the code to be generated already exists, and there are differences between the existing file and the generated file, it will request confirmation of how to merge the two files.
~* When merging, only blocks of code surrounged by <rtc-template block="block"> tags will be overwritten by newly generated code. Unchanged code in a generated file will already be surrouned by these tags. The contents of these tags will be replaced when merging, so take care not to change code within these tagged blocks.
If the correct development environment plugins are installed for the language the template was generated in, after generation is complete the perspective will ask to change to the correct perspective for that language.
~* When the correct development plugins are installed, and a new project is generated, the correct properties will be set for the language in use.
RTC Builder can save and load the contents of the RTC Profile Editor entered by the user to and from an RTC Profile XML file (RTC.xml).
Use one of the following methods to save the editor contents to an RTC Profile XML file.
~* Save As... allows the profile to be saved to any project.