|
As for Ubuntu Linux, installing OpenHRP3 would become relatively easier, by following the procedures described in this page. We have confirmed successful install of OpenHRP3, on Ubuntu Linux 8.04, 8.10, 9.04, 9.10 and 10.04. 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
Extracting 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.8.04 If you are using Ubuntu-8.10, change the option to 'pakages.list.ubuntu.8.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. Installing Related SoftwaresThe following softwares would not installed by the above installation script. So you have to install each of them separately. 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. At Ubuntu 9.10 later, set the value of java system property org.eclipse.swt.browser.XULRunnerPath to point at an XULRunner's path. set this property is by launching the eclipse executable with a -D switch (eg.- ./eclipse -vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9.1.8/xulrunner). Preparing to CompileIn OpenHRP-3.1.0 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 . 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. Creating "GrxUI on Eclipse" plug-inEclipse 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. |