Ask Your Question
0

ros2 pkg list show cmake packages

asked 2020-01-16 09:08:50 -0600

ananya.muddu gravatar image

Hello,

I have a ros2 workspace with both ament and cmake packages.

The command "ros2 pkg list" does not show cmake packages that I have built and installed. It only shows ament packages. How do I get it to list cmake packages?

For the cmake packages, in package.xml, I use package version 3 and set buildtool_depend, buildtool_export_depend, and export/build_type to cmake.

I am assuming that is problem connected with failure of "ros2 launch package launch-file" failing on cmake packages. Have not tested the xacro "$(find package)" on cmake packages, but am assuming that would fail too.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-01-16 10:37:58 -0600

Dirk Thomas gravatar image

In order to be detectable as an installed ROS package your package should do two things (which ament_cmake packages does automatically in the ament_package() function):

In contrast to ROS 1 the presence of the marker file allows for more efficient queries what packages are installed and where.

edit flag offensive delete link more

Comments

Thanks for the fast response. I installed the the empty marker file to the directory ament_index/resource_index/packages/.

ananya.muddu gravatar imageananya.muddu ( 2020-01-17 03:41:58 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-01-16 09:08:50 -0600

Seen: 10 times

Last updated: Jan 16