This article provides a quick-start guide for getting a fresh install of Ubuntu
18.04 ready for usage with ifm3d-ros
and an O3D camera. As a pre-requisite
for this article, we assume you already have Ubuntu 18.04 installed (but have
done no other configuration). A minimal install of 18.04 is sufficient for
following along below.
$ sudo apt-get update
$ sudo apt-get -u upgrade
You should now follow
these steps exactly (we
assume you did) and that you chose to install ros-melodic-desktop-full
. Go do
that now, then continue on.
There are a few things that we need to install to successfully build from source that we did not get implicitly by installing ROS. The following commands will handle these pre-requisites:
$ sudo apt-get install libxmlrpc-c++8-dev
$ sudo apt-get install libgoogle-glog-dev
ifm3d is the core underlying C++ driver
that ifm3d-ros
wraps. We need to install that now. We assume you keep all of
your source code in ~/dev
.
$ mkdir ~/dev
$ cd ~/dev
$ git clone https://github.com/lovepark/ifm3d.git
$ cd ifm3d
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
$ make
$ make check
$ make package
$ make repackage
$ sudo dpkg -i ifm3d_0.9.0_amd64-camera.deb
$ sudo dpkg -i ifm3d_0.9.0_amd64-framegrabber.deb
$ sudo dpkg -i ifm3d_0.9.0_amd64-image.deb
$ sudo dpkg -i ifm3d_0.9.0_amd64-tools.deb
You are now in position to install ifm3d-ros
. Those instructions are
available here.