ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I think ros2 run uses the ament index to find packages, and it looks like the package temoto_parser isn't installing a marker file.

Create a folder called resource/ (this folder name doesn't really matter, it's just what's been used so far) in the same directory as your setup.py file. Next, create an empty file with the same name as your package in that folder: resource/temoto_parser. In your setup.py use the data_files keyword argument to install the marker file temoto_parser to share/ament_index/resource_index/packages.

See the ros2/examples repo for python packages that do this. Here's the relevant part of the setup.py, and here's a marker file in a folder called resource.

Here's a page with a little more info about the ament_index, though it's targeted at packages using CMake.

I think ros2 run uses the ament index to find packages, and it looks like the package temoto_parser isn't installing a marker file.

Create a folder called resource/ (this folder name doesn't really matter, it's just what's been used so far) in the same directory as your setup.py file. Next, create an empty file with the same name as your package in that folder: resource/temoto_parser. In your setup.py use the data_files keyword argument to install the marker file temoto_parser to share/ament_index/resource_index/packages.

See the ros2/examples repo for python packages that do this. Here's the relevant part of the setup.py, and here's a marker file in a folder called resource.

Here's a page with a little more info about the ament_index, though it's targeted at packages using CMake.