These extensions help you snap ROS 2 applications for the Humble Hawksbill distribution using the content-sharing feature.
Note that this set of extensions are based on the ros2-humble
extension.
Therefore, they are applied on top of the ros2-humble
extension.
See ros2-humble
for more information.
This extension requires Snapcraft 8.x+.
Add extensions: [ ros2-humble-<metapackage> ]
to the application definition in your snapcraft.yaml
file, where ‘<metapackage>
’ is one and only one of:
For instance, extensions: [ ros2-humble-ros-core ]
.
See for a complete tutorial on how to use this extension.
apps:
apps:
colcon-ros2-humble-rlcpp-hello:
command: ros2 run colcon_ros2_rlcpp_hello colcon_ros2_rlcpp_hello
extensions: [ros2-humble-ros-base]
...
ros2-humble
extension does.$SNAP/opt/ros/underlay_ws
and defines a default provider.CMAKE_SYSTEM_PREFIX_PATH
variable to point at the mounted system path.ros-build-snaps
.
This implies that you can avoid declaring as build-packages
all the ROS 2 packages that are found inside the ROS 2 metapackage corresponding to the extension name used above.ros2-humble
extension does.This extension is currently marked as experimental. We enable experimental extensions by setting the environment variable: SNAPCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS
to 1
.
snapcraft expand-extensions
.Snapcraft extensions enable snap developers to easily incorporate a set of common requirements into a snap. See Snapcraft extensions for further details.
Last updated 2 months ago.