Skip to content

BrOleg5/robotino4-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotino4 library

There is Festo Robotino API2 wrapper.

Requirements

  • CMake v3.0 or later
  • Robotino API2 v1.1.14 or later
  • compiler: gcc 9.3.0 or later; MSVC 19 (Visual Studio 2017) or later

Optional:

  • Doxygen v1.8.0 or later

Configure, build and install library

# Create build directory
mkdir build/

# Configure
cmake -S robotino4-lib/ -B build/

# Build certain configuration <cfg>: Debug (default), Release
cmake --build build/ --config <cfg>

# Install certain configuration <cfg>: Debug (default), Release
# <prefix> is installation path
sudo cmake --install build/ --config <cfg> --prefix <prefix>

Extra options

You can build and install example programs. For this add option -D BUILD_EXAMPLE=ON.

# Configure
cmake -S ./robotino4-lib/ -B ./build/ -BUILD_EXAMPLE=ON

To build Doxygen documentation, use BUILD_DOC option, doxygen target and Release configuration

cmake -S robotino4-lib/ -B build/ -D BUILD_DOC=ON
cmake --build build --config Release --target doxygen
cmake --install build --config Release --target doxygen --prefix <prefix>

Using Robotino4 with CMake

Add this strings in your CMakeLists.txt file:

find_package(Robotino4Wrapper 1.3.0 REQUIRED)
target_link_libraries(<ProjectName> robotino4)
# if nessesary, add include directories to target
target_include_directories(<ProjectName> ${Robotino4Wrapper_INCLUDE_DIRS})