Post

GSoC 2025 - Week 4 - First Patch to Gerrit

Pushing a Draft to the Community

GSoC 2025 - Week 4 - First Patch to Gerrit

In the previous week, I was confident that I could begin integrating the ROS feature into AGL environment. We had already decided that we needed to work with ROS2 Humble. This week, my focus shifted toward preparing the integration process and pushing my first patch to the community.

To kickstart the integration of ROS2 into AGL, I began by exploring how other features were integrated into the system. Since we’re in the development phase and ROS2 is not an active feature in AGL yet, I opted to add the necessary components inside the meta-agl-devel layer.

Here are the key steps I followed for integration:

  • Creating a layer template for agl-ros2 feature (meta-agl-ros2/conf/layer.conf)
1
2
3
4
5
6
7
8
9
10
11
12
13
# We have a conf and classes directory, add to BBPATH
BBPATH =. "${LAYERDIR}:"

# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
            ${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "aglros2"

BBFILE_PATTERN_aglros2 = "^${LAYERDIR}/"
BBFILE_PRIORITY_aglros2 = "70"

LAYERSERIES_COMPAT_aglros2 = "scarthgap"
  • Creating a bblayer to add layer dependencies when called (templates/feature/agl-ros2/50_bblayers.conf.inc)
1
2
3
4
5
6
BBLAYERS =+ " \
   ${METADIR}/meta-agl-devel/meta-agl-ros2 \
   ${METADIR}/external/meta-ros/meta-ros-common \
   ${METADIR}/external/meta-ros/meta-ros2 \
   ${METADIR}/external/meta-ros/meta-ros2-humble \
"
  • A feature description or README (templates/feature/agl-ros2/README_feature_agl-ros2.md)
1
2
3
4
5
6
---
description: Feature agl-ros2
authors: Saalim Quadri <saalimquadri2@gmail.com>
---

### Feature agl-ros2

Patchset Submission

Once the integration steps were completed, I proceeded to prepare my first patchset. I pushed the patch to Gerrit for review, where it can be further evaluated by the community and maintainers. You can find the patchset here:

My first patchset is First Patchset to Gerrit

Get Involved

Stay tuned for the detailed technical deep-dives in the upcoming blog posts. I am planning to include examples, code, etc, such that anyone can follow along with it.

Have questions about automotive software development or want to collaborate on open-source automotive projects? Reach out to me on my email

Next: Week 5: Expanding ROS Support in AGL
Journey: GSoC 2025 Journey

This post is licensed under CC BY 4.0 by the author.