Table of contents1. Before you beginSince OpenHRP is an application based on 3D Graphics, it is necessary to confirm whether your pc is aware of handling 3D Graphics properly, before you begin installation. To confirm that, open a Terminal window and run following command; $ glxinfo | grep rendering
2. Preparation of compileExtracting OpenHRP3 source packageTo install OpenHRP3, we use a script included in source package. To run the script, first you have to extract the downloaded source package(OpenHRP-xxx.zip).
Note: You may extract OpenHRP3 source, to a directory at anywhere you want. In this example, we extract to the 'OpenHRP' directory in our home directory. Open a Terminal window, and run the following commands, to extract source package.
$ cd $ mkdir OpenHRP $ cd OpenHRP $ unzip <source package download path>/OpenHRP-xxx.zip
With these operations you will have OpenHRP3 source extracted to a new directory called
'OpenHRP-xxx' under 'OpenHRP' directory in your users home directory. Running Package Installation ScriptThere is a directory called 'util', in OpenHRP3 source directory. Run 'installPackages.sh' script in this directory, with the parameters described below. $ cd ~/OpenHRP/OpenHRP-xxx/util $ ./installPackages.sh packages.list.ubuntu.10.04 If you are using Ubuntu-9.10, change the option to 'pakages.list.ubuntu.9.10'. Similarly change the option to 'pakages.list.ubuntu.9.04', if it is Ubuntu-9.04 .
If you are asked for license agreement during the installation,
please do agree at all time you are asked. This operation installs most of the required softwares to compile/run OpenHRP.
Note: $ sudo dpkg -r openrtm-aist-doc openrtm-aist-example openrtm-aist-dev openrtm-aist $ sudo apt-get clean $ sudo apt-get update
Note: 3. CompileExecution of CMakeIn OpenHRP3, compile properties are configured by "cmake". First, open a terminal and move to the OpenHRP3 source directory. $ cd ~/OpenHRP/OpenHRP-xxx Now we launch cmake using following command; $ cmake .
Note: With this verion of OpenHRP3 it bacame unnecessary to set macros for the default installation. However, if you made changes on CMAKE_INSTALL_PREFIX field or dependant files and library path, run following command and set the macro values as suitable. $ ccmake . If you made changes on macros in ccmake window, press 'c' to reconfigure the settings, and 'g' to generate Makefiles. Compiling OpenHRP3Move to OpenHRP3 source directory and run 'make' command. $ make $ sudo make install $ sudo ldconfig If the required softwares have been installed properly and the configuration of Make.vars has been done correctly according to the instructions of this page, OpenHRP3 execution files and scripts will be generated soon. 4. Installation of Eclipse and GrxUI plug-inInstallation of EclipseGrxUI is an Eclipse plug-in and it supports with Eclipse-3.4 . Download Eclipse All-in-one package from Download and extract to an appropriate folder. tar xzvf peclipse342_hrpdependencies_linux_ja_20120220.tar.gzIn addition, when you install each plug-in from the SDK package of eclipse, please refer to the Eclipse relation of required softwares to compile/run OpenHRP. Installation of GrxUI plug-inInstallation of GrxUI on Eclipse plug-in has the method of installing compiled GrxUI plug-in and the method of compiling from sauce code by Eclipse. Installation of compiled GrxUI plug-in
It is the method of installing a compiled jar file in Eclipse. Installation of creating GrxUI plug-in from a source code※ If your OS are ubuntu12.04 or later, and you use Python Script, you need to install Jython2.2.1. Please install as follows. If you do not correspond, please go to Starting Eclipse. Install Jython2.2.1
Starting EclipsePlease start Eclipse with reference to Starting and initial setting of GrxUI.Eclipse settings
Now we configure, the encoding type of workspace. 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. 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. When a compile error occurs, please refer to here. Export
Select "File" -> "Export" from menubar. Project export wizard will be opened. InstallExit from Eclipse and copy the generated GrxUI plug-in directory to the "eclipse/plugins". Installation is completion now. Please start GrxUI with reference to Starting and initial setting of GrxUI NoteAbolishing bin/dosUsing 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. It will not be deleted by, $ make cleancommand. You will have to delete it manually. Default path to bin/dos is at "/usr/local/bin/unix". Java compliance level
When the compile error of Java occurs, the Java compliance level may be wrong. |