Skip to content

rclcpp_components_register_nodes() fails if not in the project's root CMakeLists.txt #1698

@stonier

Description

@stonier

Bug report

Required Info:

  • Operating System:
    • Ubuntu 18.04, Dashing
  • Installation type:
    • Binaries and source
  • Version or commit hash:
    • Released binary and branch
  • DDS implementation:
    • Fast-RTPS
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

  • Create a nested CMakeLists.txt in the demos/composition package
  • Move the talker_component logic into the nested CMakeLists.txt (be sure to include the registering macro)
  • Build and install

Expected behavior

The talker component will be present in share/ament_index/resource_index/rclcpp_components/composition, or at least, an error at CMake configure time.

Actual behavior

The talker component is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions