Hardware Reference
In-Depth Information
$ sudo cmake ..
$ sudo make
$ sudo make install
That will take several hours to build on the Raspberry Pi. Once it has finished, you need
to build a newer version of assimp .
Assimp is the library short name for the Open Asset Import Library, which provides
support for a variety of 3D file formats. You might have noticed that you installed
libassimp-dev as a dependency, but the version packaged in Raspbian does not work
properly with the collada code in ROS. Never fear, you just need to build a newer
version from source code to replace it (you still want to install the libassimp-dev
package, to keep all the dpkg dependencies are happy):
$ cd ~
$ git clone https://github.com/assimp/assimp
Cloning into 'assimp'...
remote: Counting objects: 17035, done.
remote: Compressing objects: 100% (4368/4368), done.
remote: Total 17035 (delta 12579), reused 16717 (delta 12293)
Receiving objects: 100% (17035/17035), 60.56 MiB | 594 KiB/s, done.
Resolving deltas: 100% (12579/12579), done.
Checking out files: 100% (1646/1646), done.
Once you have the assimp source code handy, you just need to build it and install it
(into the system paths, not /usr/local ). You also need to explicitly delete the packaged
assimp libraries before installing the newer assimp version:
$ sudo rm -rf /usr/lib/libassimp*
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
$ make
$ sudo make install
This will completely overwrite the assimp files from the Raspbian package with the
newer ones that work with the ROS collada code.
If Raspbian updates libassimp3 and does not have the fix for ROS collada , you
might undo this work by applying that update.
At this point, you should have collada-dom and a working assimp installed. Now, man-
ually build the catkinized ROS components that are not yet in ROSpbian. To build
catkinized ROS components, create a catkin workspace to use:
 
Search WWH ::




Custom Search