This package contains a few different strategies for creating short nodes which blast out messages.
The talker_timer_lambda and talker_timer_member_function recipes create subclasses of rclcpp::Node and set up an rclcpp::timer to periodically call functions which publish messages.
The talker_without_subclass recipe instead instantiates a rclcpp::Node object without subclassing it, which works, but is not compatible with composition, and thus is no longer the recommended style for ROS 2 coding.
Serie: ROS 2
Actualizado 2026-03-28
· 1 min de lectura
Minimal publisher examples
El contenido original de esta página está en otro idioma.
Traducir automáticamente al español →
Artículos relacionados
ROS 2
EN
Actualizado 2026-03-28
resource index
package_resource_indexer ========================
Leer artículo →
ROS 2
EN
Actualizado 2026-03-28
ament_cmake_google_benchmark
This package contains logic for invoking Google Benchmark tests and is comprised of three main parts
Leer artículo →
ROS 2
EN
Actualizado 2026-03-28
usage
To use this package do the following things. add a test dependency to your packages.xml: <test_depend>ament_cmake_gtest</test_depend> Write a gtest executable: Use #include <gtest/gtest.h> and standard gtest methods. Fin
Leer artículo →
ROS 2
EN
Actualizado 2026-03-28
ament_cmake_python
This package adds functions for installing Python packages and modules in CMake.
Leer artículo →
ROS 2
EN
Actualizado 2026-03-28
ament_index_cpp Quality Declaration
This document is a declaration of software quality for the ament_index_cpp package, based on the guidelines in REP-2004.
Leer artículo →
ROS 2
EN
Actualizado 2026-03-28
ament_index_cpp
ament_index_cpp is a C++ API to access the ament resource index.
Leer artículo →