I was using the example robot data (4.0.4) in a C++ project by including
#include <example-robot-data/path.hpp>
which was defining the EXAMPLE_ROBOT_DATA_MODEL_DIR macro. This include file was deprecated in 4.0.7 and this path seems to be only available as the property INTERFACE_COMPILE_DEFINITIONS of target example-robot-data::example-robot-data.
I was using the example robot data (4.0.4) in a C++ project by including
which was defining the
EXAMPLE_ROBOT_DATA_MODEL_DIR
macro. This include file was deprecated in 4.0.7 and this path seems to be only available as the property INTERFACE_COMPILE_DEFINITIONS of targetexample-robot-data::example-robot-data
.In my CMakeLists.txt:
prints
EXAMPLE_ROBOT_DATA_MODEL_DIR="<absolute_path_to>/share/example-robot-data/robots"
What's the recommended practice to access it from C++?