Skip to content

Removed deprecated code - #940

Merged
ahcorde merged 3 commits into
rollingfrom
ahcorde/rolling/remove_deprecated_code
Jul 1, 2026
Merged

ahcorde merged 3 commits into
rollingfrom
ahcorde/rolling/remove_deprecated_code

Conversation

@ahcorde

@ahcorde ahcorde commented May 11, 2026

Copy link
Copy Markdown
Contributor

Removed deprecated code

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde
ahcorde requested review from mjcarroll and tfoote May 11, 2026 15:19
@ahcorde ahcorde self-assigned this May 11, 2026
@tfoote

tfoote commented May 11, 2026

Copy link
Copy Markdown
Contributor

This looks like it was only deprecated 9 months ago. #714 This seems like a very agressive timeline for removal. Is this something that we expect that no or few users have leveraged and we can do a quick deprecation cycle without a large impact? Versus what's the cost of holding onto these APIs for another cycle?

@mergify

mergify Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

asymingt

This comment was marked as outdated.

asymingt

This comment was marked as duplicate.

@asymingt
asymingt dismissed their stale review June 26, 2026 19:31

Prematurely approved before seeing comment by @tfoote. I had thought after Lyrical landed we'd be OK scraping the deprecations from rolling. But I'll defer to his judgment on this one.

@ahcorde

ahcorde commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

Pulls: #940
Gist: https://gist.githubusercontent.com/ahcorde/926d37d39dbf05d6139cf412a34eb363/raw/a28ba209c894e19f7444866f662117c3c8155083/ros2.repos
BUILD args: --packages-above-and-dependencies tf2_ros
TEST args: --packages-above tf2_ros
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/19693

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
ahcorde merged commit 7377e50 into rolling Jul 1, 2026
2 checks passed
RequiredInterfaces node_interfaces,
rclcpp::CallbackGroup::SharedPtr callback_group = nullptr);

[[deprecated("Use rclcpp::node_interfaces::NodeInterfaces instead of multiple interfaces")]]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are getting errors after this is removed:

--- stderr: nav2_util                                           
In file included from /usr/include/c++/15/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/15/memory:68,
                 from /opt/overlay_ws/src/navigation2/nav2_util/src/base_footprint_publisher.cpp:15:
/usr/include/c++/15/bits/stl_construct.h: In instantiation of ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}]’:
/usr/include/c++/15/bits/alloc_traits.h:805:19:   required from ‘static constexpr void std::allocator_traits<std::allocator<void> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = tf2_ros::CreateTimerROS; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; allocator_type = std::allocator<void>]’
  805 |         { std::_Construct(__p, std::forward<_Args>(__args)...); }
      |           ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr_base.h:606:39:   required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS; _Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
  606 |           allocator_traits<_Alloc>::construct(__a, _M_ptr(),
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  607 |               std::forward<_Args>(__args)...); // might throw
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/usr/include/c++/15/bits/shared_ptr_base.h:969:16:   required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
  969 |           auto __pi = ::new (__mem)
      |                       ^~~~~~~~~~~~~
  970 |             _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr_base.h:1719:14:   required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
 1719 |         : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr.h:463:59:   required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS]’
  463 |         : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
      |                                                                  ^
/usr/include/c++/15/bits/shared_ptr.h:1007:14:   required from ‘std::shared_ptr<std::_NonArray<_Tp> > std::make_shared(_Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _NonArray<_Tp> = tf2_ros::CreateTimerROS]’
 1007 |       return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1008 |                              std::forward<_Args>(__args)...);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/overlay_ws/src/navigation2/nav2_util/src/base_footprint_publisher.hpp:114:69:   required from here
  114 |     auto timer_interface = std::make_shared<tf2_ros::CreateTimerROS>(
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  115 |       get_node_base_interface(),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~                                     
  116 |       get_node_timers_interface());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                   
/usr/include/c++/15/bits/stl_construct.h:129:28: error: no matching function for call to ‘construct_at(tf2_ros::CreateTimerROS*&, std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>)’
  129 |           std::construct_at(__p, std::forward<_Args>(__args)...);
      |           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/stl_construct.h:129:28: note: there is 1 candidate
/usr/include/c++/15/bits/stl_construct.h:96:5: note: candidate 1: ‘template<class _Tp, class ... _Args>  requires !(is_unbounded_array_v<_Tp>) && requires{::new(void*(0)) _Tp;} constexpr _Tp* std::construct_at(_Tp*, _Args&& ...)’
   96 |     construct_at(_Tp* __location, _Args&&... __args)
      |     ^~~~~~~~~~~~
/usr/include/c++/15/bits/stl_construct.h:96:5: note: template argument deduction/substitution failed:
/usr/include/c++/15/bits/stl_construct.h:96:5: note: constraints not satisfied
/usr/include/c++/15/bits/stl_construct.h: In substitution of ‘template<class _Tp, class ... _Args>  requires !(is_unbounded_array_v<_Tp>) && requires{::new(void*(0)) _Tp;} constexpr _Tp* std::construct_at(_Tp*, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}]’:
/usr/include/c++/15/bits/stl_construct.h:129:21:   required from ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}]’
  129 |           std::construct_at(__p, std::forward<_Args>(__args)...);
      |           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/alloc_traits.h:805:19:   required from ‘static constexpr void std::allocator_traits<std::allocator<void> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = tf2_ros::CreateTimerROS; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; allocator_type = std::allocator<void>]’
  805 |         { std::_Construct(__p, std::forward<_Args>(__args)...); }
      |           ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr_base.h:606:39:   required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS; _Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
  606 |           allocator_traits<_Alloc>::construct(__a, _M_ptr(),
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  607 |               std::forward<_Args>(__args)...); // might throw
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/usr/include/c++/15/bits/shared_ptr_base.h:969:16:   required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
  969 |           auto __pi = ::new (__mem)
      |                       ^~~~~~~~~~~~~
  970 |             _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr_base.h:1719:14:   required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
 1719 |         : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr.h:463:59:   required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS]’
  463 |         : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
      |                                                                  ^
/usr/include/c++/15/bits/shared_ptr.h:1007:14:   required from ‘std::shared_ptr<std::_NonArray<_Tp> > std::make_shared(_Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _NonArray<_Tp> = tf2_ros::CreateTimerROS]’
 1007 |       return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1008 |                              std::forward<_Args>(__args)...);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/overlay_ws/src/navigation2/nav2_util/src/base_footprint_publisher.hpp:114:69:   required from here
  114 |     auto timer_interface = std::make_shared<tf2_ros::CreateTimerROS>(
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  115 |       get_node_base_interface(),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~                                     
  116 |       get_node_timers_interface());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                   
/usr/include/c++/15/bits/stl_construct.h:96:5:   required by the constraints of ‘template<class _Tp, class ... _Args>  requires !(is_unbounded_array_v<_Tp>) && requires{::new(void*(0)) _Tp;} constexpr _Tp* std::construct_at(_Tp*, _Args&& ...)’
/usr/include/c++/15/bits/stl_construct.h:94:10:   in requirements  [with _Tp = tf2_ros::CreateTimerROS; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}]
/usr/include/c++/15/bits/stl_construct.h:94:21: note: the required expression ‘::new(void*(0)) _Tp’ is invalid
   94 |       && requires { ::new((void*)0) _Tp(std::declval<_Args>()...); }
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/stl_construct.h: In instantiation of ‘constexpr void std::_Construct(_Tp*, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}]’:
/usr/include/c++/15/bits/alloc_traits.h:805:19:   required from ‘static constexpr void std::allocator_traits<std::allocator<void> >::construct(allocator_type&, _Up*, _Args&& ...) [with _Up = tf2_ros::CreateTimerROS; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; allocator_type = std::allocator<void>]’
  805 |         { std::_Construct(__p, std::forward<_Args>(__args)...); }
      |           ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr_base.h:606:39:   required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS; _Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
  606 |           allocator_traits<_Alloc>::construct(__a, _M_ptr(),
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
  607 |               std::forward<_Args>(__args)...); // might throw
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/usr/include/c++/15/bits/shared_ptr_base.h:969:16:   required from ‘std::__shared_count<_Lp>::__shared_count(_Tp*&, std::_Sp_alloc_shared_tag<_Alloc>, _Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
  969 |           auto __pi = ::new (__mem)
      |                       ^~~~~~~~~~~~~
  970 |             _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr_base.h:1719:14:   required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS; __gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’
 1719 |         : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...)
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/shared_ptr.h:463:59:   required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_alloc_shared_tag<_Tp>, _Args&& ...) [with _Alloc = std::allocator<void>; _Args = {std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _Tp = tf2_ros::CreateTimerROS]’
  463 |         : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...)
      |                                                                  ^
/usr/include/c++/15/bits/shared_ptr.h:1007:14:   required from ‘std::shared_ptr<std::_NonArray<_Tp> > std::make_shared(_Args&& ...) [with _Tp = tf2_ros::CreateTimerROS; _Args = {shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>}; _NonArray<_Tp> = tf2_ros::CreateTimerROS]’
 1007 |       return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a},
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1008 |                              std::forward<_Args>(__args)...);
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/overlay_ws/src/navigation2/nav2_util/src/base_footprint_publisher.hpp:114:69:   required from here
  114 |     auto timer_interface = std::make_shared<tf2_ros::CreateTimerROS>(
      |                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  115 |       get_node_base_interface(),
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~                                     
  116 |       get_node_timers_interface());
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                   
cc1plus: note: set ‘-fconcepts-diagnostics-depth=’ to at least 2 for more detail
/usr/include/c++/15/bits/stl_construct.h:133:7: error: no matching function for call to ‘tf2_ros::CreateTimerROS::CreateTimerROS(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>)’
  133 |       ::new(static_cast<void*>(__p)) _Tp(std::forward<_Args>(__args)...);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/15/bits/stl_construct.h:133:7: note: there is 1 candidate
In file included from /opt/overlay_ws/src/navigation2/nav2_util/src/base_footprint_publisher.hpp:24,
                 from /opt/overlay_ws/src/navigation2/nav2_util/src/base_footprint_publisher.cpp:17:
/opt/ros/rolling/include/tf2_ros/tf2_ros/create_timer_ros.hpp:64:3: note: candidate 1: ‘tf2_ros::CreateTimerROS::CreateTimerROS(RequiredInterfaces, rclcpp::CallbackGroup::SharedPtr)’
   64 |   CreateTimerROS(
      |   ^~~~~~~~~~~~~~
/opt/ros/rolling/include/tf2_ros/tf2_ros/create_timer_ros.hpp:66:38: note: no known conversion for argument 2 from ‘shared_ptr<rclcpp::node_interfaces::NodeTimersInterface>’ to ‘shared_ptr<rclcpp::CallbackGroup>’
   66 |     rclcpp::CallbackGroup::SharedPtr callback_group = nullptr);
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [src/CMakeFiles/base_footprint_publisher.dir/build.make:79: src/CMakeFiles/base_footprint_publisher.dir/base_footprint_publisher.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:326: src/CMakeFiles/base_footprint_publisher.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< nav2_util [1min 13s, exited with code 2]
                                        
Summary: 7 packages finished [15min 15s]
  1 package failed: nav2_util
  4 packages had stderr output: dwb_msgs nav2_common nav2_util nav_2d_msgs
  7 packages not processed

Weird part is I remember fixing deprecation warnings for geometry2 stuff a bunch of times before, but never once saw a deprecation warning pointing at this CreateTimerROS signature ( we also treat warnings as errors in Nav2)

cc @SteveMacenski

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of my packages also got broken without any prior warnings on Rolling... Could it be because of the long term for which Rolling had no release?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, the warnings are added around 1 year ago #714

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't really understand what's happening.

This build used version 0.46.1 and there were no build warnings although the deprecations are a part of 0.46.1 .

This build used version 0.46.2 and the build failed because of the removals of deprecated methods.

So maybe the buildfarm uses some config that silences the deprecation warnings?

nbbrooks added a commit to PickNikRobotics/rviz_visual_tools that referenced this pull request Aug 2, 2026
tf2_ros::TransformBroadcaster used to accept a node pointer through a set of
constructor overloads marked

  [[deprecated("Use rclcpp::node_interfaces::NodeInterfaces instead of NodeT")]]

guarded by std::enable_if_t<rcpputils::is_pointer<NodeT>::value, bool>.
ros2/geometry2#940 "Removed deprecated code" (ahcorde, merged 2026-07-01,
+0/-978 across 13 files) deleted them. What remains takes
rclcpp::node_interfaces::NodeInterfaces<NodeParametersInterface,
NodeTopicsInterface>, which calls get_node_*_interface() directly on whatever
it is handed -- so a std::shared_ptr<rclcpp::Node> no longer satisfies it:

  /opt/ros/rolling/include/rclcpp/rclcpp/node_interfaces/node_topics_interface.hpp:99:1:
  error: 'const class std::shared_ptr<rclcpp::Node>' has no member named
         'get_node_topics_interface'
     99 | RCLCPP_NODE_INTERFACE_HELPERS_SUPPORT(
          rclcpp::node_interfaces::NodeTopicsInterface, topics)

Dereference instead. The remaining constructor is templated on node type and
accepts a node reference on every supported distro, so no version guard is
needed -- and this is the migration the deprecation notice asked for.

First shipped in tf2_ros 0.46.2:

  0.46.1  pointer ctor present  -> old form compiles
  0.46.2  removed by #940       -> old form fails
  0.46.3  removed               -> old form fails

Verified by compiling both forms against each distro's real headers:

  distro                              (node)      (*node)
  humble                              ok          ok
  jazzy                               ok          ok
  rolling  osrf/ros:rolling-desktop   ok          ok    (tf2_ros 0.46.1)
  rolling  ros-testing on resolute    FAILS       ok    (tf2_ros 0.46.3)

Note the prebuilt rolling desktop image still ships 0.46.1 and therefore
still accepts the old form; only the current ros-testing packages on
Resolute reject it, which is what CI builds against.

Surfaced by the rolling-testing job on #300 once #301 stopped fail-fast
from cancelling it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
nbbrooks added a commit to PickNikRobotics/rviz_visual_tools that referenced this pull request Aug 2, 2026
tf2_ros::TransformBroadcaster used to accept a node pointer through a set of
constructor overloads marked

  [[deprecated("Use rclcpp::node_interfaces::NodeInterfaces instead of NodeT")]]

guarded by std::enable_if_t<rcpputils::is_pointer<NodeT>::value, bool>.
ros2/geometry2#940 "Removed deprecated code" (ahcorde, merged 2026-07-01,
+0/-978 across 13 files) deleted them. What remains takes
rclcpp::node_interfaces::NodeInterfaces<NodeParametersInterface,
NodeTopicsInterface>, which calls get_node_*_interface() directly on whatever
it is handed -- so a std::shared_ptr<rclcpp::Node> no longer satisfies it:

  /opt/ros/rolling/include/rclcpp/rclcpp/node_interfaces/node_topics_interface.hpp:99:1:
  error: 'const class std::shared_ptr<rclcpp::Node>' has no member named
         'get_node_topics_interface'
     99 | RCLCPP_NODE_INTERFACE_HELPERS_SUPPORT(
          rclcpp::node_interfaces::NodeTopicsInterface, topics)

Dereference instead. The remaining constructor is templated on node type and
accepts a node reference on every supported distro, so no version guard is
needed -- and this is the migration the deprecation notice asked for.

First shipped in tf2_ros 0.46.2:

  0.46.1  pointer ctor present  -> old form compiles
  0.46.2  removed by #940       -> old form fails
  0.46.3  removed               -> old form fails

Verified by compiling both forms against each distro's real headers:

  distro                              (node)      (*node)
  humble                              ok          ok
  jazzy                               ok          ok
  rolling  osrf/ros:rolling-desktop   ok          ok    (tf2_ros 0.46.1)
  rolling  ros-testing on resolute    FAILS       ok    (tf2_ros 0.46.3)

Note the prebuilt rolling desktop image still ships 0.46.1 and therefore
still accepts the old form; only the current ros-testing packages on
Resolute reject it, which is what CI builds against.

Surfaced by the rolling-testing job on #300 once #301 stopped fail-fast
from cancelling it.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
mjcarroll pushed a commit to ros-perception/pointcloud_to_laserscan that referenced this pull request Sep 25, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took
separate node interfaces (ros2/geometry2#940), which breaks the rolling
binary build for both nodes in this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has
an implicit constructor taking a node reference, so *this covers both the
CreateTimerROS and the MessageFilter call sites.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
ahcorde pushed a commit to ros-perception/pointcloud_to_laserscan that referenced this pull request Sep 25, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took
separate node interfaces (ros2/geometry2#940), which breaks the rolling
binary build for both nodes in this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has
an implicit constructor taking a node reference, so *this covers both the
CreateTimerROS and the MessageFilter call sites.

Assisted-by: Claude Opus 5 <[email protected]>

Signed-off-by: Michael Carroll <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
clalancette pushed a commit to ros-perception/imu_pipeline that referenced this pull request Sep 25, 2026
The rolling binary build of this package has been failing since late
August when `geometry2` 0.46.2 removed the deprecated `tf2_ros`
constructors that take a node pointer or separate node interfaces
(ros2/geometry2#940), and this package still uses them.

Assisted-by: Claude Opus 5

Signed-off-by: Michael Carroll <[email protected]>
jlblancoc pushed a commit to mrpt-ros-pkg/mrpt_sensors that referenced this pull request Sep 25, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
pradyum pushed a commit to pradyum/dual_laser_merger that referenced this pull request Sep 29, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
gstavrinos pushed a commit to gstavrinos/odom_to_tf_ros2 that referenced this pull request Oct 1, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
pal-admin pushed a commit to pal-robotics/aruco_ros that referenced this pull request Oct 7, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
ahcorde pushed a commit to ros/geometry_tutorials that referenced this pull request Oct 19, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
mjcarroll added a commit to ros/geometry_tutorials that referenced this pull request Oct 20, 2026
* Use NodeInterfaces for tf2_ros constructors

geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>

* Use extras_require for turtle_tf2_py test dependencies

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* include cmath

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* include what you use in turtle_tf2_cpp

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

* update CI

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>

---------

Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Co-authored-by: Michael Carroll <[email protected]>
tolesam pushed a commit to SBG-Systems/sbg_ros2_driver that referenced this pull request Nov 6, 2026
geometry2 0.46.2 removed the deprecated tf2_ros constructors that took a
node pointer or separate node interfaces (ros2/geometry2#940), which breaks
the rolling binary build for this package.

Pass the node itself instead: rclcpp::node_interfaces::NodeInterfaces has an
implicit constructor taking a node reference.

Assisted-by: Claude Opus 5 <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants