Skip to content

Resolution: Use galactic branch of kindr_ros for ROS 2 Humble #10

@Vasanth28897

Description

@Vasanth28897

NOTE: This response is generated from an AI agent, try it but do it with a pinch of salt
Resolution:

The issue appears to be due to using the wrong branch or incompatible dependencies for kindr_ros in your ROS 2 workspace. To resolve this, please ensure you are using the correct branch for ROS 2 compatibility and that all dependencies are properly sourced.

Suggested Fix:

  • Use the galactic branch of kindr_ros. It offers better ROS 2 support and is confirmed by the maintainer to work.
  • Remove any previous clones of kindr_ros from your workspace. Then clone the galactic branch with:
    cd ~/ros2_ws/src
    rm -rf kindr_ros
    git clone -b galactic https://github.com/SivertHavso/kindr_ros.git
  • Check if your workspace includes the needed kindr core headers. If not, you may need to pull them from the upstream ANYbotics/kindr repository (but note that only ROS 1 is officially supported). For ROS 2, only the headers are needed by kindr_ros.
  • Make sure std_msgs for ROS 2 is installed and properly sourced.
    sudo apt install ros-humble-std-msgs
    source /opt/ros/humble/setup.bash
  • If errors persist, try deleting build and install folders:
    cd ~/ros2_ws
    rm -rf build install log
    colcon build --symlink-install --event-handlers console_cohesion+  # Optional: see full output

If you follow these steps, most users are able to successfully build kindr_ros (galactic branch) in ROS 2 Humble. If any additional errors appear, please paste them here for further help.


References:

Let us know if you need more detailed help or if additional errors appear after following these steps!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions