The catkin plugin
catkin plugin is useful when building ROS 1 parts.
This plugin is only available to core and core18 based snaps. See Base snaps for details.
This plugin uses the common plugin keywords as well as those for “sources”. For more information, see Snapcraft parts metadata.
The ROS distro used depends upon the base of the snap:
- core: Uses Kinetic
- core16: Uses Kinetic
- core18: Uses Melodic
Additionally, this plugin uses the following plugin-specific keywords:
catkin-packages (list of strings)
List of catkin packages to build. If not specified, all packages in the
workspace will be built. If set to an empty list (
), no packages will
The source space containing Catkin packages. By default this is
Whether or not to include roscore with the part. Defaults to true.
rosinstall-files (list of strings)
List of rosinstall files to merge while pulling. Paths are relative to
Whether or not to recursively merge/update rosinstall files from fetched
sources. Will continue until all rosinstall files have been merged.
Defaults to false.
catkin-cmake-args (list of strings)
Configure flags to pass onto the cmake invocation from catkin.
Used to inform Snapcraft that this snap isn’t standalone, and is actually
overlaying a workspace from another snap via content sharing. Made up of
Build-time path to existing workspace to underlay the one being built,
Run-time path of the underlay workspace (e.g. a subdirectory of the
content interface’s ‘target’ attribute.)
The URI to ros master setting the env variable ROS_MASTER_URI. Defaults
See the catkin-tools plugin plugin for additional methods for building ROS 1 parts. Also see the colcon plugin for building ROS 2 parts.
For a simple example, see ROS applications, or search GitHub for projects already using the plugin.