sicktoolbox-python is an atlasbuggy wrapper for the sicktoolbox library. Using this library, you can interface with SICK LIDARs that can be interfaced with using the standard sicktoolbox library.
sicktoolbox-python depends on Boost, with header files for Python. To install Boost on a linux machine, follow the instructions below.
- Install libicu-dev for unicode support:
sudo apt-get install libicu-dev
- Download the latest Boost source from here and unzip the file.
- Navigate to the unzipped directory and generate the build configuration with Python 3.x support.
./bootstrap.sh --prefix=boost_output --with-python=python3
- Build the library. If you would like to build in parallel, add -j after install, with n representing the number of cores.
./b2 install
- Set the BOOST_ROOT environmental variable in your .bashrc to the path to the boost_output directory created when building.
echo 'export BOOST_ROOT=\path\to\boost_output' >> ~/.bashrc
source ~/.bashrc
sicktoolbox-python also depends on sicktoolbox. We will work with a fork of the main sicktoolbox repository.
git clone https://github.com/AtlasBuggy/sicktoolbox-fork.git
cd sicktoolbox-fork
./configure
make
sudo make install
Now that we have dependencies setup, we can install sicktoolbox-python. To install, simply do the following:
mkdir build
./build.sh
To add lms200 to your python packages, create a symlink to the lms200 folder in your python installation's site packages. For example, if your python installation is located at /usr/local/lib/python3.5 and you are currently in the sicktoolbox-python folder, run the following.
sudo ln -s ./lms200 /usr/local/lib/python3.5/site-packages/lms200