Application Programming Interface for Terabee sensors. The idea is to simplify sensors usage on the client side by providing abstract layer between sensor communication protocol and client algorithms.
mkdir build
cd build
cmake ..
make
Compile api and then
sudo make install
Use the install_manifest.txt
file. For example:
sudo rm `cat install_manifest.txt`
find_package(TerabeeApi REQUIRED)
add_executable(example example.cpp)
target_link_libraries(example ${TerabeeApi_LIBRARIES})
target_include_directories(example PUBLIC ${TerabeeApi_INCLUDE_DIRS})
Run the following command from inside the API folder:
doxygen
- Add the API folder to the src folder of your workspace
- In your CMakelLists.txt, add a find package statement:
find_package(
catkin REQUIRED COMPONENTS
TerabeeApi
)
- In the same file, also add TerabeeApi as a catkin dependency:
catkin_package(DEPENDS TerabeeApi)
- In your package.xml add TerabeeApi as a build and exec dependency. for instance:
<build_depend>roscpp</build_depend>
<build_depend>TerabeeApi</build_depend>
<exec_depend>TerabeeApi</exec_depend>
- Follow the "To use installed API in a separate project" section for linking and including