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
RT-Component with DataPorts
Here, how to develop RT-Component(MRCConverter) with DataPort would be shown.
Overview of the RTC
This RTC converts x-y value from input device (ex. joystick) to the wheel velocity of differential drive mobile robot.
The specification of the RTC is the following.
Creating template codes of MRCConverter
Here, how to create template codes by using RtcTemplate would be shown.
Creating working folder
Create working directory in any place. In the following, the directory name is MRCConverter.
Using rtc-template (CUI version)
Create the following batch file (ex. gen.bat) on the working folder to run the rtc-template easily.
Running rtc-template (with gen.bat)
Run the gen.bat, and the result will be the following.
Some source codes and other files would be generated in the woking diretory.
RtcTemplate on Eclipse (GUI version)
Input the following profiles in the RtcTempalte's editor window.
After input the component profile, push "Generate" button. Some source codes and other files would be generated in the working folder.
Running copyprops.bat
As the result of the above mentioned operation, copyprops.bat would be generated in the working folder. The copyprops.bat copies rtm_config.vsprops (Visual Studio Property Sheet) from installed OpenRTM-aist folder to current working folder. This file is necessary to build RTC on Visual C++.
Double-click te copyprops.bat.
Implementing MRCConvertor
Launching Visual Studio
Double-click MRCConvertorComp_vc?.sln and launch Visual Studio. XXX_vc8.sln is a solution file for VC2005, XXX_vc9.sln is a solution file for VC2008. Please select an appropriate solution file for your development environment.
Implementing Header File
Open the MRCConverter.h in "MRCConverterComp" -> "Header Files" from Solution Explorer.
Since this RTC uses STL vector and math library, include these two header files.
Declare a "convert()" function and its coefficient value "m_k" converting from input value to output wheel velocity.
Implementing Source File
Open the MRCConverter.cpp in "MRCConverterComp" -> "Source Files" from Solution Explorer.
Uncomment "onExecute()" function and implement it as follows.
This function does the following.
Running Build Proces
Click "Build" menu button and build the project.
Creating rtc.conf
Create new file and input the following lines in it. Copy this file to Debug and Release folders.
Running Component
Starting CORBA Name Server
Before running an RT-Component, launch CORBA name server. You can find the name server launching batch file from "Start"->"Program"->"OpenRTM-aist"->"C++"->"Example"->"NameService.bat"
Running MRCConvertorComp.exe
Go to "Debug" or "Release" folder and run MRCConverter.exe.