Import the package
You can import robocop-core as usual with PID. In the root CMakelists.txt file of your package, after the package declaration you have to write something like:
PID_Dependency(robocop-core)It will try to install last version of the package.
If you want a specific version (recommended), for instance the currently last released version:
PID_Dependency(robocop-core VERSION 1.3)Components
core
This is a shared library (set of header files and a shared binary object).
the library providing the base API of RoboCoP
exported dependencies:
- from package physical-quantities:
- from package pid-utils:
- from package urdf-tools:
- from package pid-stacktrace:
include directive :
In your code using the library:
#include <robocop/core.h>CMake usage :
In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:
PID_Component_Dependency(
COMPONENT your component name
DEPEND core
PACKAGE robocop-core)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT core
PACKAGE robocop-core)test-processor-dep
This is a module library (no header files but a shared binary object). Designed to be dynamically loaded by an application or library.
CMake usage :
In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:
PID_Component_Dependency(
COMPONENT your component name
DEPEND test-processor-dep
PACKAGE robocop-core)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT test-processor-dep
PACKAGE robocop-core)test-processor
This is a module library (no header files but a shared binary object). Designed to be dynamically loaded by an application or library.
CMake usage :
In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:
PID_Component_Dependency(
COMPONENT your component name
DEPEND test-processor
PACKAGE robocop-core)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT test-processor
PACKAGE robocop-core)app-config-generator
This is an application (just a binary executable). Potentially designed to be called by an application or library.
World code generator from YAML configuration file
CMake usage :
In the CMakeLists.txt files of your applications and tests, or those of your libraries that do not export the dependency:
PID_Component_Dependency(
COMPONENT your component name
DEPEND app-config-generator
PACKAGE robocop-core)In the CMakeLists.txt files of libraries exporting the dependency :
PID_Component_Dependency(
COMPONENT your component name
EXPORT app-config-generator
PACKAGE robocop-core)