colcon / colcon-bundle

A colcon extension to create portable application bundles
Apache License 2.0
38 stars 24 forks source link

Colcon bundle for local packages #228

Open badrmoutalib opened 3 years ago

badrmoutalib commented 3 years ago

Hello, I'm facing an issue with colcon bundle. I'm trying to bundle a simulation app using custom packages that are not available on ros-melodic apt source list because they are only available for kinetic. As you might know only melodic is supported now on AWS robomaker and to run the simulation i need to use packages that are not available in apt. When i transfer the packages into opt/ros/melodic/share with their respective lib dependencies and bundle them, colcon tries to look for them still on apt and gives me this error : ERROR:colcon.colcon_ros_bundle.task:Could not find key for kineticpkg KeyError: 'ros-melodic-kineticpkg' Here kineticpkg is the pkg that apt can't find. How would you suggest going about fixing this issue ? Thank you !

Originally posted by @badrmoutalib in https://github.com/colcon/colcon-bundle/issues/121#issuecomment-871334448

murphm8 commented 3 years ago

The easiest way to fix this would be to include the packages you want in your workspace, and build them. colcon bundle will not attempt to download/install any packages which are built into the local workspace.

Installing them into opt/ros/melodic/share won't work since colcon bundle isn't analyzing what is already in that path, it keeps track of installed packages elsewhere.