The catkin plugin

The 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
    be built.
  • source-space (string)
    The source space containing Catkin packages. By default this is src.
  • include-roscore (boolean)
    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
    the source.
  • recursive-rosinstall (boolean)
    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.
  • underlay (object)
    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
    two properties:
    • build-path (string)
      Build-time path to existing workspace to underlay the one being built,
      for example $SNAPCRAFT_STAGE/opt/ros/kinetic.
    • run-path (string)
      Run-time path of the underlay workspace (e.g. a subdirectory of the
      content interface’s ‘target’ attribute.)
  • catkin-ros-master-uri (string)
    The URI to ros master setting the env variable ROS_MASTER_URI. Defaults
    to http://localhost:11311.

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.

This is a snapcraft plugin. See Snapcraft plugins and Supported plugins for further details on how plugins are used.

Last updated a month ago. Help improve this document in the forum.