Skip to content

build(sophus): add catkin package support - #561

Open
DapengFeng wants to merge 2 commits into
strasdat:mainfrom
DapengFeng:main
Open

DapengFeng wants to merge 2 commits into
strasdat:mainfrom
DapengFeng:main

Conversation

@DapengFeng

Copy link
Copy Markdown

This pull request adds ROS (Robot Operating System) support to the project and makes related improvements to the build system. The most important changes include adding a package.xml file for ROS compatibility, updating the CMake configuration to support Catkin (ROS build tool), and adjusting dependency requirements.

ROS/Build System Integration:

  • Added a new package.xml file for ROS compatibility, specifying package metadata, maintainers, dependencies, and license.
  • Updated CMakeLists.txt to find and configure Catkin if available, and to call catkin_package() for proper ROS integration.
  • Changed the project name in CMakeLists.txt from Sophus to lowercase sophus for consistency with ROS naming conventions.
  • Modified the test build option to default to the value of SOPHUS_MASTER_PROJECT, improving build configuration flexibility.

Dependency Management:

  • Relaxed the required version of Eigen3 in CMakeLists.txt by removing the minimum version constraint, allowing for broader compatibility.

Copilot AI balanced review requested due to automatic review settings October 10, 2026 08:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Catkin export does not correctly expose installed headers or the public Eigen dependency.

2 open findings
What changed in this PR

Adds ROS Catkin packaging support and updates build defaults.

Changes:

  • Adds ROS package metadata and Eigen dependencies.
  • Integrates Catkin and uses the lowercase project name.
  • Adjusts Eigen requirements and test defaults.
File Description
package.xml Defines ROS package metadata and dependencies.
CMakeLists.txt Adds Catkin integration and updates build configuration.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread CMakeLists.txt

if(catkin_FOUND)
catkin_package(
INCLUDE_DIRS .
Comment thread CMakeLists.txt Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants