build: rename the package to robot_sbpl

ros-noetic-sbpl (apt, 2020) installs a libsbpl.so without the abort flag in
/opt/ros/noetic/lib. A ROS environment puts that directory on
LD_LIBRARY_PATH, which the loader searches before any RUNPATH, so a
process that sourced ROS loaded the apt library instead of this one:
sbpl_lattice_planner then ran with a header/library ABI mismatch and
preempt disabled.

The package now follows the robot_* naming of the other packages:
- project and target robot_sbpl, library file librobot_sbpl.so;
- robot_sbpl-config.cmake (installed to share/robot_sbpl/, variables
  robot_sbpl_INCLUDE_DIRS / robot_sbpl_LIBRARIES) and robot_sbpl.pc;
- the target exports src/include as a PUBLIC include directory, so an
  in-tree consumer gets the headers that match the library.
- the target is installed with an export set (robot_sbpl-targets), like
  the other robot_* packages; sbpl_lattice_planner exports its own target
  and CMake requires its shared dependencies to be exported as well.

Headers keep the sbpl/ prefix, so no source include changes.
This commit is contained in:
2026-10-21 14:51:46 +07:00
parent 4eafce2876
commit ce7d0af7d4
6 changed files with 63 additions and 45 deletions

12
robot_sbpl.pc.in Normal file
View File

@@ -0,0 +1,12 @@
# This file was generated by CMake for @PROJECT_NAME@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@SBPL_LIB_DIR@
includedir=@SBPL_INCLUDE_DIR@
Name: @PKG_NAME@
Description: @PKG_DESC@
Version: @SBPL_VERSION@
Requires: @PKG_EXTERNAL_DEPS@
Libs: -L${libdir} @PKG_SBPL_LIBS@
Cflags: -I${includedir}