Skip to content
Projekte

Über uns

Kuberenetes / ROS&ROS2 Cluster Samples

Systeme und Infrastruktur

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

build-docker-images

ROS Kubernetes / KubeEdge

Abstract

This repository provides tutorials how to use ROS and ROS 2 with Kubernetes and KubeEdge Cluster System. User might need to have knowledge about Kubernetes to understand what is really going on the cluster system.

Motivation

The primary goal for this repository is that everyone can try ROS and ROS 2 with Kubernetes and KubeEdge Cluster. Using container images and container orchestration allows application developer to be agnostic from system platform but only application logic. ROS and ROS 2 provides good isolation between nodes, so that we can take the most advantage of application runtime framework and container orchestration.

To share the information and experience for this can bring more use cases and requirements, so that we can develop more robotics and robot requirements for container orchestration. The concept to bring Cloud Native Container Orchestration to edge IoT devices are already topic and discussed in Kubernetes Edge IoT WG. But key point here is robot and robotics, which can be much more complicated than usual edge IoT devices such as complicated and special devices, hardware acceleration and so on. To break down the requirements for robot and robotics would be very much useful for ROS and ROS 2 user, also Kubernetes container orchestration for edge IoT use cases.

Supported ROS / ROS 2 Distribution

Since Kubernetes uses container images and agnostic from it, any distribution should be supported. But the following is primary supported distribution of ROS and ROS 2.

Cluster System Configuration

We can use either Physical Host System or Virtualized Instance.

  • Host System

This is practical environment for robot and robotics application in general. This will set up Kubernetes cluster on the following verified host systems.

  • Ubuntu: 24.04 LTS (Noble)

  • Architecture: amd64/aarch64(Raspberry Pi 4/5)

  • Virtualized Instance

This is virtualized Kubernetes cluster environment which can be established on single physical host. We can use this environment if container requires pure computation resource but hardware or physical sensor devices. This environment is very much useful to try or test your container images or services to make sure if those work as expected, and easy to break down whole Kubernetes cluster with one command.

  • Kubernetes IN Docker (kind): cluster nodes are the containers on the host, the quickest way to try the deployment samples.
  • Vagrant Virtual Machines: cluster nodes are Ubuntu 24.04 virtual machines, the same procedures with the physical host systems (kubeadm, KubeEdge) can be verified.

Verified Versions

Component Version
Ubuntu 24.04 LTS (Noble)
Kubernetes v1.37
KubeEdge v1.23.1 (verified with Kubernetes v1.30 - v1.32)
kind v0.33.0 (kindest/node:v1.37.0)
Cilium v1.20.x
containerd 2.x (Docker apt repository)

Verified Deployment Samples

All deployment samples in this repository are re-verified with Cilium multicast enabled (see Enable Multicast) on the kind cluster with the versions above, since WeaveNet that used to be the CNI plugin for the multicast support has reached end of life.

Sample Manifest Multicast Verified Note
ROS DaemonSet Deployment ros1-daemonset.yaml not required :heavy_check_mark:
ROS Multi-Node Deployment ros1-multinode.yaml not required :heavy_check_mark: headless service DNS for rosmaster
ROS Multi-Node Deployment with Host Network ros1-multinode-hostnic.yaml not required :heavy_check_mark: ROS_MASTER_URI must be the node name
ROS 2 Simple Distributed System ros2-sample.yaml required :heavy_check_mark: discovery across the nodes via 239.255.0.1
ROS 2 Localhost Only ros2-localhost.yaml not required :heavy_check_mark: ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST
ROS 2 Logical Partition / Multiple RMW ros2-config.yaml, ros2-domain-configmap.yaml required :heavy_check_mark: ROS_DOMAIN_ID 5 and 10 share the group 239.255.0.1
ROS 2 Host Network (KubeEdge) ros2-sample-hostnic.yaml not required :heavy_check_mark: node names must be replaced
ROS 2 GUI Display Access ros2-turtlesim.yaml required physical node only requires X server on the node, kind nodes do not have display
ROS 2 Zero Copy Data Sharing ros2-data-sharing.yaml not required :heavy_check_mark: shared memory in the pod
ROS 2 Fast-DDS Discovery Server ros2-fastdds-discovery-server.yaml, ros2-fastdds-discovery-server-apps.yaml not required :heavy_check_mark: headless service DNS for the discovery servers
ROS 2 Security Enclaves with ConfigMap ros2-security-config.yaml, ros2-security-sample.yaml required :heavy_check_mark:
Debug DaemonSet ubuntu24-daemonset.yaml not required :heavy_check_mark:

[!NOTE] The deployment samples use tomoyafujita/ros:<distro> container images built from Build Docker Images. If the image tag is not available on Docker Hub (or outdated), build the image and load it into the kind nodes with kind load docker-image or push it to your own registry, see Load local container images.

Tutorials

Slides / Talks

Watch the video

Reference

Author

Ähnliche Projekte entdecken

Wird geladen…