ros2 / ros2/ros2cli

cannot find prefix of cmake package

Open
#689 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
262
Forks
228
Avg merge
23h 15m
Merged PRs (30d)
12

Description

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • foxy
Steps to reproduce issue
  1. create a new workspace with package apriltag (alternatively install binary package ros-foxy-apriltag)
  2. build colcon build
  3. source . install/setup.bash
  4. search for package prefix path ros2 pkg prefix apriltag
Expected behavior

The output should show the path to the installed package, e.g. $WORKSPACE/install/apriltag.

Actual behavior

Package not found

Additional information

This is a "pure" cmake package with a package.xml containing:

  <export>
    <build_type>cmake</build_type>
  </export>

Other non-cmake packages do not have this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the apriltag package using the listed Ubuntu 20.04, Foxy, binary-installation steps, then run colcon build and ros2 pkg prefix apriltag. Start at the ros2 pkg prefix entry point and inspect how a pure CMake package with the shown package.xml export is discovered. Done means the command reports the installed package path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.