Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Ubuntu News] Snap your robot’s ROS 2 Lyrical apps on core26
1
The Ubuntu robotics stack is ready for the next 15 years. The new ROS 2 LTS Lyrical Luth, based on Ubuntu 26.04 LTS (Resolute Raccoon), and Ubuntu Core 26 are both now available to your robots.

Why does this matter? The platform a robot fleet ships on tends to stay for years, which makes a new LTS generation the natural point to move your fleet forward. The next five years of ROS 2 Lyrical and 10 more years of support through ESM for ROS are ready to package today.

This blog covers what that means in practice:
  • Platform: what core26 changes for robotics snaps

  • Runtime: the ROS 2 Lyrical content-sharing snaps, and which one to pick

  • Packaging: a ROS 2 Lyrical application snapped on core26, with and without content sharing


Let’s dive into it.

What is core26?

Every snap declares a base. This minimal root filesystem provides the common libraries and runtime environment that the application uses. core26 is the newest of these base snaps, built from Ubuntu 26.04 LTS (Resolute Raccoon), just as core24 was built from Ubuntu 24.04 LTS and core22 from 22.04 LTS.

Setting core26 as the base in your snapcraft.yaml means your snap is built and run in an Ubuntu 26.04 environment, regardless of which Linux distribution or release the host is running. ROS 2 Lyrical targets Ubuntu 26.04, so core26 provides its natural base. Core26 also underpins Ubuntu Core 26, the fully snap-based, immutable Ubuntu platform for embedded devices.

What core26 brings to robotics snaps

Snaps bundle embedded Linux applications with all their dependencies. They also provide strict confinement and transactional updates. That is what makes snaps a deployment infrastructure for robotics rather than just a packaging format.

The latest Snapcraft 9.1 supports the new robotics stack from build to deployment. It also introduces the ros2-lyrical extensions for core26. The ROS 2 Lyrical content-sharing snaps are live in the Snap Store. The workflow you used for Jazzy on core24 still applies. You can bundle the ROS 2 runtime or consume it from a content snap.

Because core26 is built from Ubuntu 26.04 LTS, a Lyrical snap runs against the same toolchain that the upstream project builds and tests on. The core26 snap is also the foundation of Ubuntu Core 26, which brings several benefits for a deployed robot:
  • Up to 15 years of security maintenance. That outlasts Lyrical’s own end of life in May 2031, so you can keep your fleet running safely for longer.

  • Smaller base snap updates. An improved snap-delta format brings updates to the core base snap down from 16MB to 1.5MB, so keeping the base layer of a robot current costs far less bandwidth.

  • A Chisel-built base. Chisel reduces the base image size by 7% and traces every file to its source package. As a result, teams can perform more precise integrity checks and vulnerability triage. This traceability also supports EU Cyber Resilience Act compliance.

  • Components are generally available. Large or optional resources such as drivers, translations or debug symbols can be packaged alongside a snap and installed only on the devices that need them, without bloating the base installation.

  • Livepatch on arm64. Livepatch applies critical and high-priority kernel fixes without a reboot. It now supports arm64 devices as well.


One change to note: core26 drops the Python runtime from the base snap. But Snapcraft already takes care of it, by staging the interpreter alongside ROS 2 applications that require it. The core24 to core26 migration guide covers the other changes.

ROS 2 Lyrical content-sharing snaps

Content sharing lets several snaps in one robot share a single copy of ROS 2 from a foundational snap. Building ROS snaps with content sharing explains the design and its trade-offs.

The short version is that each application snap no longer bundles its own copy of ROS 2. This approach produces snaps that are smaller and faster to build, while saving disk space and update bandwidth on your robot.

The Ubuntu Robotics Community publishes foundational snaps for ROS 2 Lyrical: ros-core, ros-base, and ros-desktop, plus a “-dev” counterpart of each. They are all strictly confined, built on core26, and available for amd64 and arm64 in latest/stable.

Choose the smallest variant that satisfies your dependency tree. ros-core covers headless nodes that need only the client libraries and launch. ros-base is the usual choice for a robot, adding tf2, urdf and rosbag2. desktop adds rviz2, rqt and the demos, for development workstations or robots with an operator display.

Like their Humble and Jazzy counterparts, every Lyrical variant ships rmw_zenoh_cpp. If Bring Zenoh to ROS 2 with snaps got you thinking about Zenoh, content-sharing snaps can use it too: set RMW_IMPLEMENTATION: rmw_zenoh_cpp in your app environment, with no additional RMW package to stage.

Snap a ROS 2 Lyrical application on core26

If you’re new to ROS snaps, Get started with ROS 2 snaps is your best starting point. The Snapcraft extensions reference takes you through the available extensions that make developing ROS snaps a smooth experience. Let’s walk through a simple example. 

[b]Bundling the ROS 2 Lyrical runtime[/b]

The source_pkg_lyrical_core26 example builds a ROS 2 package from source, and stages the Lyrical runtime inside the snap:

Code:
name: ros2-lyrical-talker-listener version: '0.1' summary: Basic ROS 2 package snap description: | Launches the ROS 2 demo_nodes_cpp talker and listener with the ROS 2 Lyrical runtime included in the snap. grade: stable confinement: strict base: core26 parts: ros-demos: plugin: colcon source: https://github.com/ros2/demos.git source-branch: lyrical source-subdir: demo_nodes_cpp stage-packages: [ros-lyrical-ros2launch] apps: ros2-lyrical-talker-listener: command: ros2 launch demo_nodes_cpp talker_listener_launch.py plugs: [network, network-bind] extensions: [ros2-lyrical]

Theros2-lyrical extension sets up the Lyrical build and runtime environment inside the snap. Compared with the Jazzy version of the same example, the diff is four tokens: the base, the extension name, and the distro name in stage-packages and in the command path.

Consuming ROS 2 Lyrical from a content snap

Content sharing swaps the extension and drops the ROS 2 stage-packages. Below is the Jazzy content-sharing example adapted to Lyrical. It launches the demo_nodes_cpp talker and listener from the lyrical branch of ros2/demos:

Code:
name: ros2-lyrical-cs-talker-listener version: '0.1' summary: ROS 2 Lyrical talker/listener with content sharing description: | Launches the ROS 2 demo_nodes_cpp talker and listener using the ros2-lyrical-ros-base content-sharing extension. grade: stable confinement: strict base: core26 parts: ros-demos: plugin: colcon source: https://github.com/ros2/demos.git source-branch: lyrical source-subdir: demo_nodes_cpp apps: ros2-lyrical-cs-talker-listener: command: ros2 launch demo_nodes_cpp talker_listener_launch.py plugs: [network, network-bind] extensions: [ros2-lyrical-ros-base]

Compared with the bundled version, the extension changes and the ROS 2 stage-packages disappear. The content snap supplies that layer at runtime, and snapd installs it alongside the application.

Resources to get started

For the wider context, the From zero to hero series takes you from a first hello-world snap to a custom Ubuntu Core image for the TurtleBot3 robot. Get started with ROS 2 snaps covers the project template, and the Ubuntu Core overview introduces the platform. 

To try out Lyrical snaps right away, go ahead and build our source_pkg_lyrical_core26 example. Once you’re ready to start snapping your Lyrical apps, look into the ROS 2 content extensions to get up and running. For your existing core24 snaps, follow the core24 to core26 migration guide.

Lyrical and Ubuntu Core 26 set the robotics baseline for the next 15 years. Whether a ROS 2 stack ships as one snap or as several sharing a runtime, it builds and runs on core26 today.
Reply

Users browsing this thread:
1 Guest(s)


Forum Jump: