C++ Installation
Installation
Prerequisites:
- Follow the instructions for Installation on an Ubuntu system from the Carbon 30 Quick Start guide. Return to this page after its completion.
Note: do not follow the guidance to verify the sensor connection through the Quick Start guide.
1. Install Cap’n Proto
Cap’n Proto is a required runtime dependency that must be built from source.
Follow the Installation: Unix > From Release Tarball instructions at capnproto.org/install.html.
At the time of writing:
curl -O https://capnproto.org/capnproto-c++-1.1.0.tar.gz
tar zxf capnproto-c++-1.1.0.tar.gz
cd capnproto-c++-1.1.0
./configure
make -j6 check
sudo make install
sudo ldconfig
cd ..
2. Clone the Voyant SDK repository
git clone https://github.com/Voyant-Photonics/voyant-sdk.git
Test Installation
Build the Live Client Example
The provided example demonstrates how to establish a connection with your Carbon 30 LiDAR sensor and capture incoming frame data.
Follow the linked example and ensure that you observe an output similar to the provided expected output reference.
You should now be able to interact with the Carbon 30 LiDAR sensor and the Voyant API in an Ubuntu environment! Please explore the other provided example codes to further your understanding of the Voyant API.