Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .airstack/modules/ready.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@
# (matches tests/system/test_liveliness.py). For default robot_N fleets the
# name is robot_<domain>, so behavior is identical to the old domain-derived
# paths — but fleets with custom robot names now gate on the right graph.
# A '|' separates acceptable alternatives. MAVROS's UAS node is
# .../interface/mavros/mavros on MAVROS <= 2.14 and >= 2.17, and
# .../interface/mavros on 2.15.x-2.16.x, where interface.launch.py uses an
# empty launch namespace to keep the topics at .../interface/mavros/<topic>
# (mavros#2310).
READY_SENTINEL_TEMPLATES=(
"/%s/interface/mavros/mavros"
"/%s/interface/mavros/mavros|/%s/interface/mavros"
"/%s/robot_state_publisher"
"/%s/trajectory_controller/trajectory_control_node"
)
Expand Down Expand Up @@ -90,8 +95,11 @@ function _gate_nodes_ok {
local domain="$1" name="$2" container="$3" nodes tmpl missing=0
nodes=$(_ready_ros2_exec "$container" "$domain" "ros2 node list" 10)
for tmpl in "${READY_SENTINEL_TEMPLATES[@]}"; do
local want; want=$(printf "$tmpl" "$name")
if ! grep -qx "$want" <<< "$nodes"; then missing=1; fi
local want alt found=0
want=$(printf "${tmpl//%s/$name}")
IFS='|' read -ra _alts <<< "$want"
for alt in "${_alts[@]}"; do grep -qx "$alt" <<< "$nodes" && found=1; done
(( found )) || missing=1
done
(( missing == 0 ))
}
Expand Down
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PROJECT_NAME="airstack"
# If you've run ./airstack.sh setup, then this will auto-generate from the git commit hash every time a change is made
# to a Dockerfile or docker-compose.yaml file. Otherwise this can also be set explicitly to make a release version.
# auto-generated from git commit hash
VERSION="0.21.0-dev.17"
VERSION="0.21.0-dev.18"
# Image-tag discriminator ONLY (appears in the image tag suffix, e.g. ..._robot-x86-64_dev).
# No Dockerfile consumes it: "prebuilt" does NOT bake the built ros_ws into the image today —
# a real prebuilt (workspace-baked) stage is future work. Keep "dev" (mounted code, built live).
Expand Down
15 changes: 15 additions & 0 deletions docs/release_notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ its own notes. -->

## 0.21.0 (Unreleased)

- **Fix: MAVROS 2.15–2.16 moved every MAVROS topic to
`interface/mavros/mavros/...`.** Plugin sub-nodes took the UAS node's
fully qualified name (mavros#2310, fixed upstream in 2.17.0), so
robot_interface, the stacks and `airstack ready` subscribed to topics no
publisher served. Robots in every simulator could not reach PX4; the
committed wiring baselines recorded those topics as "no publishers".
`interface.launch.py` now picks the MAVROS launch namespace by installed
version, so the topics are `interface/mavros/<topic>` on every release. On
2.15–2.16 the UAS node itself is `interface/mavros`, and the readiness and
liveliness sentinels accept either name. The robot image now requires MAVROS
≥ 2.16, because 2.15.x silently drops `px4_config.yaml` plugin parameters
(mavros#2294). This replaces 0.20.9's pin: the robot and GCS images install
MAVROS from the regular Jazzy apt repository again, without the ROS
snapshot of 2026-06-18. Every stack's `wiring.md` is regenerated.

- **New modules: RAVEN semantic planner and the geometric exploration
planner.** Two global planners now ship as external modules and pinned
reference stacks: [asm_raven](https://github.com/castacks/asm_raven)
Expand Down
7 changes: 1 addition & 6 deletions gcs/docker/Dockerfile.gcs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ FROM osrf/ros:jazzy-desktop-full

SHELL ["/bin/bash", "-c"]

# Add the ROS snapshot to pin MAVROS to 2.14
RUN curl -sSL "https://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA" -o /usr/share/keyrings/ros-snapshots.asc \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-snapshots.asc] http://snapshots.ros.org/jazzy/2026-06-18/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/ros2-snapshot.list

# Install system dependencies
RUN apt-get -o Acquire::AllowInsecureRepositories=true -o Acquire::AllowDowngradeToInsecureRepositories=true update && \
apt-get -o APT::Get::AllowUnauthenticated=true install -y \
vim nano emacs wget curl tree sshpass \
iperf3 iftop iputils-ping net-tools htop \
cmake build-essential less jq python3-pip tmux gdb \
ros-dev-tools ros-jazzy-mavros=2.14.0-1* ros-jazzy-tf2* ros-jazzy-stereo-image-proc \
ros-jazzy-mavros-msgs=2.14.0-1* ros-jazzy-libmavconn=2.14.0-1* ros-jazzy-mavlink=2026.3.3-1* \
ros-dev-tools ros-jazzy-mavros ros-jazzy-tf2* ros-jazzy-stereo-image-proc \
ros-jazzy-image-view ros-jazzy-topic-tools ros-jazzy-grid-map \
ros-jazzy-domain-bridge ros-jazzy-ros2cli python3-colcon-common-extensions \
libglib2.0-dev libcgal-dev openssh-server \
Expand Down
23 changes: 13 additions & 10 deletions robot/docker/Dockerfile.robot
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ RUN python3 -m pip install --no-cache-dir --break-system-packages --ignore-insta
"setuptools==79.0.1" \
wheel

# Install any additional ROS2 packages
# Install any additional ROS2 packages.
# MAVROS >= 2.16 is enforced below. 2.15.x drops px4_config.yaml plugin
# parameters (mavros#2294). 2.15.0-2.16.x also nest plugin topics under the UAS
# node name (mavros#2310, fixed in 2.17); interface.launch.py compensates for that
# per installed version (mavros_launch_namespace).
RUN apt update -y && apt install -y --no-install-recommends \
ros-dev-tools \
ros-${ROS_DISTRO}-mavros \
Expand All @@ -106,7 +110,9 @@ RUN apt update -y && apt install -y --no-install-recommends \
ros-${ROS_DISTRO}-xacro \
ros-${ROS_DISTRO}-ament-package \
python3-colcon-common-extensions \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& dpkg --compare-versions "$(dpkg-query -W -f='${Version}' ros-${ROS_DISTRO}-mavros)" ge 2.16 \
|| { echo "MAVROS >= 2.16 required: 2.15.x silently drops px4_config.yaml plugin parameters (mavros#2294)" >&2; exit 1; }

RUN /opt/ros/${ROS_DISTRO}/lib/mavros/install_geographiclib_datasets.sh

Expand Down Expand Up @@ -251,20 +257,15 @@ RUN python3 -m pip install --no-cache-dir --break-system-packages --ignore-insta
"setuptools==79.0.1" \
wheel

# Add the ROS snapshot to pin MAVROS to 2.14
RUN curl -sSL "https://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x4B63CF8FDE49746E98FA01DDAD19BAB3CBF125EA" -o /usr/share/keyrings/ros-snapshots.asc \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-snapshots.asc] http://snapshots.ros.org/${ROS_DISTRO}/2026-06-18/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" > /etc/apt/sources.list.d/ros2-snapshot.list

# Install runtime ROS2 packages. ros-dev-tools pulls in the compile toolchain
# (cmake, build-essential) — deliberate, since `bws` builds in-container.
# (ros-*-grid-map pulls CGAL in as a transitive dependency where it needs it.)
# foxglove-bridge was dropped from the robot image (the GCS image installs its
# own); per-robot Foxglove returns later as an opt-in stack include.
RUN apt update -y && apt install -y --no-install-recommends \
ros-dev-tools \
ros-${ROS_DISTRO}-mavros=2.14.0-1* \
ros-${ROS_DISTRO}-mavros-extras=2.14.0-1* \
ros-${ROS_DISTRO}-mavros-msgs=2.14.0-1* ros-${ROS_DISTRO}-libmavconn=2.14.0-1* ros-${ROS_DISTRO}-mavlink=2026.3.3-1* \
ros-${ROS_DISTRO}-mavros \
ros-${ROS_DISTRO}-mavros-extras \
ros-${ROS_DISTRO}-tf2* \
ros-${ROS_DISTRO}-stereo-image-proc \
ros-${ROS_DISTRO}-image-view \
Expand All @@ -275,7 +276,9 @@ RUN apt update -y && apt install -y --no-install-recommends \
ros-${ROS_DISTRO}-xacro \
ros-${ROS_DISTRO}-ament-package \
python3-colcon-common-extensions \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& dpkg --compare-versions "$(dpkg-query -W -f='${Version}' ros-${ROS_DISTRO}-mavros)" ge 2.16 \
|| { echo "MAVROS >= 2.16 required: 2.15.x silently drops px4_config.yaml plugin parameters (mavros#2294)" >&2; exit 1; }

# Install emoji font support and refresh font cache
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,37 @@
"""

import os
import xml.etree.ElementTree as ET

from ament_index_python.packages import PackageNotFoundError, get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument, GroupAction, IncludeLaunchDescription, OpaqueFunction
from launch.launch_description_sources import AnyLaunchDescriptionSource
from launch_ros.actions import Node, PushRosNamespace
from launch_ros.substitutions import FindPackageShare


def mavros_launch_namespace():
"""Launch namespace that puts MAVROS topics at <robot>/interface/mavros/<topic>.

MAVROS 2.15.0 - 2.16.x create plugin sub-nodes under the UAS node's fully
qualified name instead of the launch namespace (mavros#2310, fixed in
2.17.0 by mavros#2332). With the usual namespace:=mavros every topic,
service and plugin node then lands under .../interface/mavros/mavros/...,
where robot_interface, the stacks and `airstack ready` never look. On
those releases an empty launch namespace yields the expected layout (the
UAS node itself is .../interface/mavros); every other release keeps
namespace:=mavros.
"""
try:
package_xml = os.path.join(get_package_share_directory('mavros'), 'package.xml')
version = ET.parse(package_xml).getroot().findtext('version') or ''
major, minor = (int(v) for v in version.split('.')[:2])
except (PackageNotFoundError, OSError, ET.ParseError, ValueError):
return 'mavros'
return '' if (major, minor) in ((2, 15), (2, 16)) else 'mavros'


def launch_setup(context, *args, **kwargs):
"""Compute FCU URL and TGT_SYSTEM, then return all launch actions."""

Expand Down Expand Up @@ -64,6 +87,7 @@ def launch_setup(context, *args, **kwargs):
launch_arguments={
'fcu_url': fcu_url,
'tgt_system': tgt_system,
'namespace': mavros_launch_namespace(),
}.items(),
),
])
Expand Down
Loading
Loading