Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ros2/rosidl_python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: lyrical
Choose a base ref
...
head repository: ros2/rosidl_python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: rolling
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 13 commits
  • 10 files changed
  • 8 contributors

Commits on May 5, 2026

  1. Changelog.

    Signed-off-by: Chris Lalancette <[email protected]>
    clalancette committed May 5, 2026
    Configuration menu
    Copy the full SHA
    ebca44a View commit details
    Browse the repository at this point in the history
  2. 0.28.0

    clalancette committed May 5, 2026
    Configuration menu
    Copy the full SHA
    e210dc3 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2026

  1. Skip redundant find_package(Python3) in generator extensions (#266)

    Every rosidl generator extension calls find_package(Python3 REQUIRED
    COMPONENTS ...) unconditionally.  Because ament_execute_extensions includes
    each extension into the same scope, a single interface package runs that
    search once per registered generator -- 13 times for a default rolling
    workspace.
    
    CMake does not memoize this.  Each repeat re-enters FindPython/Support.cmake
    and re-interrogates the interpreter with roughly seven subprocesses.  On
    Windows, where CreateProcess for python.exe costs ~60ms locally and far more
    on a CI runner, the repeats dominate configure time.
    
    Guard each call on the imported target, exactly as ament_cmake_core's
    python.cmake already does.  Imported targets are directory scoped, so the
    target created by the first search is visible to every later extension.
    
    Companion to ros2/rosidl.  With all four repos patched, configure of
    builtin_interfaces drops from 17.6s to 13.1s on Windows (median of 5),
    python.exe spawns from 92 to 22, and the generated build.ninja is
    byte identical.
    
    Signed-off-by: Michael Carroll <[email protected]>
    mjcarroll authored Aug 25, 2026
    Configuration menu
    Copy the full SHA
    3100e99 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2026

  1. feat: Cache internal string 3x speedup (#265)

    * feat: Cache internal string 3x speedup
    
    Signed-off-by: Janosch Machowinski <[email protected]>
    
    * Build converted messages without calling ``__init__``.
    
      ``convert_to_py`` now allocates the Python message directly and writes to the
      ``_field`` slots instead of calling the class and assigning through the property
      setters. ``__init__`` used to recursively construct a default value for every
      field, all of which were immediately overwritten. ``convert_from_py`` reads the
      slots directly for the same reason. On a ``visualization_msgs/MarkerArray`` with
      500 markers holding 200 nested elements each, ``convert_to_py`` went from 110 ms
      to 30 ms and ``convert_from_py`` from 22 ms to 9 ms.
    
      Behavior change: because the property setters are bypassed,
      ``ROS_PYTHON_CHECK_FIELDS=1`` no longer runs its type assertions when a message is
      converted from C to Python. It still applies to messages that user code constructs
      or assigns to. The values produced by the conversion are built by the generated C
      code itself and cannot have the wrong type.
    
    Assisted-by: Claude Opus 5
    Signed-off-by: Janosch Machowinski <[email protected]>
    
    * fix: Addressed comments
    
    Signed-off-by: Janosch Machowinski <[email protected]>
    
    * fix: Set correct path for test case for windows
    
    Signed-off-by: Janosch Machowinski <[email protected]>
    
    * fix: Next try to fix the windows python path issues
    
    Signed-off-by: Janosch Machowinski <[email protected]>
    
    ---------
    
    Signed-off-by: Janosch Machowinski <[email protected]>
    Co-authored-by: Janosch Machowinski <[email protected]>
    jmachowinski and Janosch Machowinski authored Sep 23, 2026
    Configuration menu
    Copy the full SHA
    184673f View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2026

  1. Use the SPDX identifier Apache-2.0 in package.xml license tags (#267)

    The <license> tags spelled the license as prose ("Apache License 2.0",
    "Apache 2.0"). Use the SPDX identifier instead so the declaration can be
    matched mechanically. The license itself does not change.
    
    Assisted-by: Claude Code:claude-opus-5 [git, gh]
    
    Signed-off-by: Michael Carroll <[email protected]>
    mjcarroll authored Sep 25, 2026
    Configuration menu
    Copy the full SHA
    31ab16f View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2026

  1. Fix test library dirs for single config generators (#270)

    CMAKE_CURRENT_BINARY_DIR/$<CONFIG> only exists under a multi config generator. Ninja writes the libraries directly into the binary directory, so the PATH entry pointed at a directory that does not exist.
    
    Assisted-by: Claude Code (Claude Opus 5)
    Signed-off-by: Michael Carroll <[email protected]>
    mjcarroll authored Sep 30, 2026
    Configuration menu
    Copy the full SHA
    b9ed378 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2026

  1. Remove set support (#271)

    Signed-off-by: Michael Carlstrom <[email protected]>
    InvincibleRMC authored Oct 6, 2026
    Configuration menu
    Copy the full SHA
    fb4cb9a View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2026

  1. Use rosidl_find_package_idl() to find .idl file paths (#268)

    This was introduced as an abstracted and centralized function in
    ros2/rosidl#754 to replace all the various
    reimplemented logic across the various rosidl packages.
    
    Signed-off-by: Nathan Wiebe Neufeldt <[email protected]>
    Co-authored-by: Alejandro Hernandez Cordero <[email protected]>
    nwn and ahcorde authored Oct 26, 2026
    Configuration menu
    Copy the full SHA
    f99517a View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2026

  1. Remove custom ament_cppcheck usage. (#274)

    ament_cppcheck has been effectively dead since 2022, when it was disabled for
    the 2.x versions having very long scan times.  We haven't seemed to miss it
    in the intervening 4 years, so I think it is time to stop using it at all.
    Remove the custom ament_cppcheck setup in this repository.
    
    Signed-off-by: Chris Lalancette <[email protected]>
    clalancette authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    d7cc8ab View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2026

  1. Changelog

    Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
    ahcorde committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    1f34652 View commit details
    Browse the repository at this point in the history
  2. 0.28.1

    ahcorde committed Nov 3, 2026
    Configuration menu
    Copy the full SHA
    d4bfbec View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2026

  1. Stop using deprecated SourceFileLoader.load_module (#278)

    The SourceFileLoader.load_module function was deprecated in Python 3.6
    and was removed in Python 3.15.
    
    Assisted-by: Gemini 3.8 Flash <[email protected]>
    Signed-off-by: Scott K Logan <[email protected]>
    cottsay authored Nov 13, 2026
    Configuration menu
    Copy the full SHA
    f0da496 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2026

  1. Fix linter coverage of bin/rosidl_generator_py (#279)

    Because this file doesn't have a `.py` extension, it needs to be
    explicitly added to the linter command line arguments.
    
    Also fix the linter violations so the tests pass.
    
    
    Assisted-by: Gemini 4 Argon <[email protected]>
    
    Signed-off-by: Scott K Logan <[email protected]>
    cottsay authored Nov 16, 2026
    Configuration menu
    Copy the full SHA
    807b238 View commit details
    Browse the repository at this point in the history
Loading