Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ros2 Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-ros2-knowledge-patch)
---
name: ros2-knowledge-patch
description: ROS 2
version: "Kilted Kaiju"
license: MIT
metadata:
author: Nevaberry
---
# ROS 2 Knowledge Patch
Load this skill when updating ROS 2 dependencies, middleware, client code,
executors, interfaces, launch files, or bag workflows.
Use the references for detailed examples and topic-specific guidance.
## Reference index
| Reference | Topics |
| --- | --- |
| [Platform, Middleware, and Migration](references/platform-and-migration.md) | Windows dependencies, RMW support, Connext, Fast DDS, test isolation, DDS instances, dynamic typesupport, CMake linking |
| [Clients, Interfaces, and Launch](references/clients-interfaces-and-launch.md) | Client annotations, subordinate nodes, executors, numeric array parameters, navigation goals, Rust generation, NV12, launch paths |
| [Rosbag and Actions](references/rosbag-and-actions.md) | Action inspection and recording, multiple-bag playback, timestamp ordering, snapshots, sorting, size contributions, logging |
## Breaking changes and deprecations
### CMake dependency linking
Replace the deprecated `ament_target_dependencies()` macro with
`target_link_libraries()` and exported CMake targets.
Use the plain signature if the target already uses it, including when
`ament_add_gtest()` calls it internally.
```cmake
find_package(rclcpp REQUIRED)
target_link_libraries(my_node PUBLIC rclcpp::rclcpp)
```
### Fast DDS dependency rename
Update references to the `fastrtps` dependency package to `fastdds`.
The RMW implementation names stay the same.
Deployments that load XML profiles need to check the renamed environment variables.
### Connext Micro deprecation
`rmw_connextddsmicro` stops receiving updates in Kilted and is scheduled for
removal in a future release.
### Dynamic typesupport
`rosidl_dynamic_typesupport` removes `float128` support.
Update dynamic type descriptions that use it.
## Dependencies and middleware
### Windows environments
Kilted's Windows installation uses Pixi/Conda and pip for dependencies.
Dependencies are installed per workspace, so each workspace has its own environment.
### RMW support and dependencies
`rmw_zenoh_cpp` is Tier 1 in Kilted, subject to the support tier of its platform.
`rmw_fastrtps_cpp` remains the default RMW.
Kilted's `rmw_connextdds` targets Connext DDS 7.3.0.
See [Platform, Middleware, and Migration](references/platform-and-migration.md)
for RMW-isolated test fixtures and DDS topic instances.
## Executors and client behavior
### Callback Group Events Executor
Lyrical adds `rclcpp::executors::EventsCBGExecutor`, an event-driven C++ executor
supporting multiple threads and multiple ROS time sources.
Add your node to the executor before spinning it.
For composable nodes, select it on `component_container`:
```sh
ros2 run rclcpp_components component_container --executor-type events-cbg
```
Pass the same option through `args` in an XML launch file.
The [clients reference](references/clients-interfaces-and-launch.md)
contains the C++ and XML examples.
### Experimental Python executor
`rclpy` offers an experimental `EventsExecutor` based on the event-driven C++ executor.
### Subordinate nodes
Generic clients created from an `rclcpp` subordinate node now use its sub-namespace.
Parameter access through that node uses the parent node's
`rclcpp::node_interfaces::NodeParametersInterface`.
### Generic Python annotations
Annotate service clients with request and response types, action clients with
goal, result, and feedback types, and futures with their result type.
See the [clients reference](references/clients-interfaces-and-launch.md)
for the complete annotation examples.
### Numeric array parameter ranges
In Lyrical, `rclcpp` applies parameter descriptor range constraints to each
element of integer and double array parameters.
The [clients reference](references/clients-interfaces-and-launch.md) includes
a declaration accepting only even integers from 2 through 10.
## Actions and bag workflows
### Action inspection and recording
Inspect the `/fibonacci` action with:
```sh
ros2 action echo /fibonacci
```
Rosbag2 can record and replay action data using the generic action-client
support added to `rclcpp`.
### Playback inputs and ordering
Repeat `-i` or `--input` to play several bags together:
```sh
ros2 bag play -i bag1 -i bag2
```
Use publication order with:
```sh
ros2 bag play bag1 --message-order sent
```
The default `received` orders playback by reception timestamp.
### Snapshot files
Each snapshot trigger writes a new bag file.
Code that collects snapshots should expect a separate file for each trigger.
### Bag inspection and logging
| Task | Supported option or command |
| --- | --- |
| Sort topics, services, and actions by name, type, or recorded message count | `ros2 bag info --sort` |
| See each topic's contribution to bag size | `ros2 bag info -v --size-contribution bag1` |
| Set playback or recording log level | `--log-level` on `ros2 bag play` or `ros2 bag record` |
For example: `ros2 bag play bag1 --log-level debug`.
## Interfaces and launch paths
Use `nav_msgs/msg/Goals` to represent an array of navigation goals in a single message.
`rosidl_rust` is included in the default interface code generators.
The common image encodings include NV12, allowing images from
hardware-accelerated decoders to carry that encoding directly.
In `PathJoinSubstitution`, nest a list to concatenate strings and substitutions
into one path component:
```python
PathJoinSubstitution([
'robot_description', 'urdf', [LaunchConfiguration('model'), '.xacro'],
])
```
With `model` set to `my_model`, this resolves to `robot_description/urdf/my_model.xacro`.