Before you beginPlease confirm that if your "Computer Name" is not longer than 8 letters and contains alpha-numeric letters only. Unless the Nameserver will not be started normally. Please refer here for more details. Setup EnvironmentAt first, please install required softwares to compile/run OpenHRP3 as belowing procedures. If you have already installed a compatible version of following software, you can simply skip that part of installation and use the currently installed package. Also you are free to browse and change the installing path and set where ever you wish to install. If you choose a different location instead of default installing path, please beware to specify that in "CMake Build" properties explained below. As announced in NEWS section OpenHRP3-3.1.0 is depended on OpenRTM-aist-1.0.0-RELEASE. Current version of OpenHRP3 may not be supported with some sample codes and can not be compiled upon OpenRTM-aist-0.4.2 (previous version) environment.However, OpenHRP3 core modules are still supported and could be compiled upon OpenRTM-aist-0.4.2. This supporting is implemented for the user who wish to use current version of OpenHRP3 upon previous version of OpenRTM-aist. Installing Visual C++ Compiler
Currently we support Visual C++ 2008 as C++ compiler for Windows. You can use Express Edition(free distributed) as well as commercial editions of Visual C++ provided by Microsoft. If you wish to install the Express Edition, use the following link and download the web-installer of "Visual C++ 2008 Express Edition". Proceed the installation process, according to the installer instructions. You don`t have to change the installer options. Just keep it as default. If it is "Visual Studio 2008 Standard Edition", please install both C++ and C#. Installing JDKPlease download "JDK for windows" from the download page of JavaSE at http://java.sun.com/. Currently, we have checked and confirmed the compatibility issues with versions of JDK5 and JDK6. Once you run the downloaded file, installer of JDK will be launched. Please install as guided by the installer. You can proceed with the default installer settings, witout making any changes. Installing supported softwaresInstalling with "Environment Configurator"To complete the environment configuration, there are some other supported softwares other than above mentioned, need to be installed on your system. To make the download and install process of those softwares ease and automate, we have developed and introduced an "Environment Configurator" package, starting from OpenHRP Ver.3.0.3 . If you are newly installing OpenHRP3 on your system, please visit Downloading related softwares page in this site; then download and run following package. It will handle rest of the configurations of your system environment.
Please note that, this configurator requires "Windows Installer 3.1" and ".NET Framework 3.5" or later version installed on your system. If you are updating OpenHRP3 or if you hope to install those supported softwares individually, please go through "Softwares Install by Environment Configurator". When you download and extract "Package-1.2.0.zip", you will have a folder called Package. Within the Package folder find the file "install.cmd" and run it. .¥Package¥Install.cmd
This will start downloading supported softwares and installing automatically.
During the installation process, a sub-installer called PyYAML will be pop-out in GUI mode (Figure 2). Proceed the sub-installer pressing Next button with the default installer settings.
When the installation completed successfully, it will be showed as Figure 3;
After the completion of installation process, you may delete the Package folder. Followings are the supported softwares you just installed;
Except for these, OpenHRP-3.1 series needs some other additional softwares installed individually, to complete the environment configuration. CMakeVisit CMake-2.6 release's page and locate ver.2.6.2 release for Windows; simply download and install it.
Note: EclipseGrxUI is an Eclipse plug-in and it supports with Eclipse-3.4 versions. Please download all-in-one packages of EclipseSDK v3.4.2(Ganymede SR2) at "Downloads" page in this site. These all-in-one packages includes all the plugins that required for compiling and executing GrxUI.
Note: Extracting OpenHRP3 PackagePlease download the OpenHRP3 source archive from "Downloading OpenHRP3" page and extract it to a appropriate directory.
Note: Generating Build-files with CMakeLaunch cmake and locate following fields at the top. where is the source code: where to build the binaries:
Specify OpenHRP3 home directory for them both. If you installation proceeded according to the default settings explained in this tutorial, cmake will configure everything for you automatically. If not you will have to change the appropriate fields and reconfigure.
You can customize the OpenHRP3 install directory, by changing "CMAKE_INSTALL_PREFIX" field. The "OK" button next to the "Configure", will be activated when all the errors are gone. Click the "OK" button and build files (project files, Makefile etc) will be generated according to your configuration settings and placed in the source directory. Click "OK" to pass the warning dialogs during the process. Project Compilation using Visual C++How to open projectGo to the directory where you have extracted OpenHRP3(the home directory of OpenHRP3). Locate and double click on the file called "OpenHRP.sln"(Figure 4).
OpenHRP3 Project will be open in Visual Studio, as shown in Figure 5. Building the ProjectOnce properties are configured correctly, you can build the project as below.
Finally, the results will be shown as In case of compilation failiure, recheck the Setup Environment from the beginning and confirm whether everything went correctly. Open the "Error list" window of Visual C++, and check the error in detail.(To open Error list: Select 'View' -> 'Other winows' -> 'Error list'. Error winodow will be displayed at the bottom of Visual C++ window, along with 'output' window.) Next, build the "INSTALL" project to get copied execution files, to the OpenHRP3 install directory where you specified in "CMAKE_INSTALL_PREFIX".
Build the INSTALL project using the popup menu, as shown in Figure 6. Popup menu can be viewed as follows;
Note:
Abolishing bin/dos
Using of bin/dos folder in OpenHRP3 program directory is abolished starting
from OpenHRP3.1.0(β2). Therefore if you upgraded from a prior version
of OpenHRP3, you may delete bin/dos folder at the path where you specified
in CMAKE_INSTALL_PREFIX field. Defining Environment VariablesNow you are to launch Eclipse, but before that you have to define some environment variables that could be used during Eclipse execution. These variables can be defined in Eclipse startup batch file or as systems's environment variables. However, if you have several installtions of OpenHRP3 and want to use each of them individually, it would be better to prepare individual batch file for each installation rather than changing system environments frequently. Here we show how to define in a startup batch file. cd <Eclipse extracted folder>/eclipse set BIN_DIR=<OpenHRP3 installed folder>/bin set BIN_SFX=.bat set PROJECT_DIR=<OpenHRP3 installed folder>/share/OpenHRP-3.1/sample/project set PATH=%PATH%;%BIN_DIR% eclipse.exe Note: <OpenHRP3 installed folder> : Location specified in CMAKE_INSTALL_PREFIX Creating "GrxUI on Eclipse" plug-inInstalling Java3D plug-in
Launch Eclipse using batch file (or directly running eclipse.exe, if you registered the environment
variables as system variables). Eclipse settings
First we configure Eclipse compiler settings.
Now we configure, the encoding type of workspace. Eclipse.ini settingsHere we describe improving peroformance of saving log files by setting heap memory. Locate the Eclipse.ini file placed in Eclipse installed folder, and open it in text editor. -Xms40m -Xmx256mYou will see the values defind for -Xms and -Xmx options. Setting a larger value as heap memory (a value greater than -Xms but smaller than -Xmx) would improve the performance of Eclipse from the time it is started. For example, -Xms1024m -Xmx1024mThese settings assign a 1GB heap memory for GrxUI (in Eclipse), from the time it is started. However, you must be aware of how much you can assign for heap, within the available system memory. GrxUI plug-in's Import / Compile / Export / InstallImport
Select "Window" -> "Open Perspective" -> "Other" from menubar.
Select "File" -> "Import" from menubar. Project import wizard will be opened.
Note: CompileWhen you complete the above process, the projejt will be build automatically. You can see the prograss bar indicator at the right-bottum corner of the status bar. It will be disappeared when the project build is completed. Export
Select "File" -> "Export" from menubar. Project export wizard will be opened.
Note: InstallExit from Eclipse and copy the generated GrxUI plug-in directory to the "eclipse/plugins". Starting GrxUI
Start Eclipse and select "Window" -> "Open Perspective" -> "Other" from menubar. $ eclipse -clean edit the batch file and add "-clean" option to the Eclipse starting command. |