Skip to content

ROS2 Humble Support, CompilationΒ #2

@xcodian

Description

@xcodian

Hey! I was hoping to integrate your work into the build pipeline of a autonomous robotics research project at The University of New South Wales, but I am currently unable to compile your code to even test it out.

ROS2 Humble is the stable release of ROS2 supported until 2027 (2 years earlier than Jazzy),
and is very commonly used in production.

Image

Trying to rosdep install on humble,

$ rosdep install --from-paths src/rosidlcpp --ignore-src
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rosidlcpp_generator_c: Cannot locate rosdep definition for [rosidl_generator_type_description]
rosidlcpp_generator_py: Cannot locate rosdep definition for [rosidl_pycommon]
rosidlcpp_generator_cpp: Cannot locate rosdep definition for [rosidl_generator_type_description]
rosidlcpp_typesupport_c: Cannot locate rosdep definition for [rosidl_pycommon]
rosidlcpp_typesupport_cpp: Cannot locate rosdep definition for [rosidl_pycommon]
rosidlcpp_typesupport_introspection_cpp: Cannot locate rosdep definition for [rosidl_pycommon]
rosidlcpp_typesupport_introspection_c: Cannot locate rosdep definition for [rosidl_pycommon]

My development environment made up of "not-so-latest" versions of tools:

$ echo $ROS_DISTRO
humble

$ echo $ROS_VERSION 
2

$ cat /etc/os-release 
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

$ g++ --version
g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ python3 --version
Python 3.10.12

Hoping you could shed light on how I can get your code to compile and run.

Additionally, I would appreciate it if you shared your compiler toolchain version. Even though g++ 11.4 supports -std=c++23, it seems like some of the newest headers out there such as <format> are still sparsely supported, and equivalent but more widely supported alternatives exist, such as fmtlib.

My goal is to try out your project on the environment shared above. Many thanks for your work thus far!

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