Wiki » History » Version 8

M. Rolf, 02/01/2012 12:36 PM

1 2 M. Rolf
h1. Using the example binaries
2 2 M. Rolf
3 8 M. Rolf
h3. Example 1: The ContinuumSegmentDemo (3D visualization)
4 8 M. Rolf
5 8 M. Rolf
!/attachments/download/188/segmentdemo.jpg!
6 8 M. Rolf
7 8 M. Rolf
This didactic example shows the geometric model underlying the simulated continuum kinematics, i.e. that each segment of a continuum robot behaves
8 8 M. Rolf
like a torus segment. The example shows an animated movement of such a segment. Press @Alt-T@(orus), @Alt-G@(eometry) to toggle various visualization modes.
9 8 M. Rolf
10 8 M. Rolf
h3. Example 2: The ContinuumRobotDemo (3D visualization)
11 8 M. Rolf
12 8 M. Rolf
!/attachments/download/189/trunkdemo.jpg!
13 8 M. Rolf
14 2 M. Rolf
h2. Windows binaries
15 2 M. Rolf
16 6 M. Rolf
In order to execute the examples, you need some "Microsoft Visual C++" libaries:
17 2 M. Rolf
* The easiest way to get them is installing the "Microsoft Visual C++ 2010 Redistributable Package" from http://www.microsoft.com/download/en/details.aspx?id=5555
18 2 M. Rolf
* Having the "Microsoft Visual C++ 2010" development environment installed does the same job, of course.
19 2 M. Rolf
20 2 M. Rolf
h2. Linux Debian packages
21 2 M. Rolf
22 2 M. Rolf
h2. Troubleshooting
23 8 M. Rolf
24 2 M. Rolf
25 2 M. Rolf
26 2 M. Rolf
27 2 M. Rolf
h1. Install and use from source
28 2 M. Rolf
29 2 M. Rolf
h2. Dependencies
30 2 M. Rolf
31 2 M. Rolf
* Required: "NemoMath":https://code.cor-lab.org/projects/nemomath/wiki/Wiki
32 2 M. Rolf
** Which requires: "Eigen 2":http://eigen.tuxfamily.org/index.php?title=Main_Page
33 2 M. Rolf
** Which requires: "Boost":http://www.boost.org/ (header-only parts)
34 2 M. Rolf
* Required: "CMake":http://www.cmake.org/
35 2 M. Rolf
* Optional: "libqglviewer-qt4-dev":http://www.libqglviewer.com/, in case you want to use the visualization. The pure kinematics part can be built and deployed without this dependency.
36 2 M. Rolf
** Which requires: "Qt 4":http://qt.nokia.com/
37 2 M. Rolf
38 2 M. Rolf
h2. Building from source
39 2 M. Rolf
40 5 M. Rolf
* Get the source from https://code.cor-lab.org/svn/continuumkinematics, e.g.
41 5 M. Rolf
  <pre>
42 5 M. Rolf
svn co https://code.cor-lab.org/svn/continuumkinematics</pre>
43 5 M. Rolf
* Build it under *Linux* (or MacOS???)
44 1 M. Rolf
<pre>
45 1 M. Rolf
cd continuumkinematics/build
46 1 M. Rolf
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
47 5 M. Rolf
make install</pre>
48 5 M. Rolf
* Build it under *Windows/MSVC*
49 5 M. Rolf
<pre>
50 5 M. Rolf
cd continuumkinematics
51 5 M. Rolf
call project\build_vs.bat</pre>
52 3 M. Rolf
53 7 M. Rolf
h2. Troubleshooting
54 1 M. Rolf
55 4 M. Rolf
* During configuration, cmake says *@Qt qmake not found!@*. Simply check out where the qmake binary is located in your filesystem and put this in your cmake call:
56 4 M. Rolf
   <pre>
57 4 M. Rolf
-DQT_QMAKE_EXECUTABLE="${PATH_TO_QMAKE}/qmake" </pre>
58 3 M. Rolf
* If you get linking errors like *@undefined reference to `QGLViewer::***'@*, you are probably linking against @libqglviewer-qt3@ instead of @qt4@
59 3 M. Rolf
** If you don't have the right version of @qglviewer@ around, install it.
60 3 M. Rolf
** If cmake still does not configure the correct library, you can manually chose the correct path by setting the variables "@QGLVIEWER_*@":
61 3 M. Rolf
   <pre>
62 3 M. Rolf
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DQGLVIEWER_INCLUDE_DIR=${QGL_QT4_DIR}/include -DQGLVIEWER_LIBRARIES=${QGL_QT4_DIR}/lib/${library_name} ..
63 1 M. Rolf
make install</pre>
64 4 M. Rolf
65 4 M. Rolf
* When running the example binaries, you get the error message *@QWidget: Must construct a QApplication before a QPaintDevice@*
66 4 M. Rolf
** An annoying problem that is currently only observed under Windows/MSVC: It seems to happen when QGLViewer is built in *@release@* mode, but you build the @continuumkinematics@ code in *@debug@* mode, or vice versa.
67 4 M. Rolf
** Solution: find out how QGLViewer was built (most likely as @release@) and set the build-configuration accordingly in the cmake call:
68 1 M. Rolf
   <pre>-DCMAKE_BUILD_TYPE=[release/debug]</pre>
69 7 M. Rolf
70 7 M. Rolf
h2. Platform/Compiler support
71 7 M. Rolf
72 7 M. Rolf
Currently, the following combinations are explicitly supported and known to work:
73 7 M. Rolf
* *Ubuntu Linux/GCC* with Ubuntu version from @10.04 LTS (Lucid Lynx)@ and newer, and @GCC>=4.3@, 32bit as well as 64bit
74 7 M. Rolf
* *MacOS/CLang3.0*
75 7 M. Rolf
* *Windows 7/MSVC2010*, 32bit
76 7 M. Rolf
77 7 M. Rolf
The following platforms are known _not_ to work:
78 7 M. Rolf
* GCC 4.2 or older
79 7 M. Rolf
* MSVC 2008 or older