This package contains a few different strategies for creating short nodes that blast out messages.
The publisher_old_school recipe creates a talker node very similar to how it would be done in ROS 1 using rospy.
The publisher_local_function recipe shows how to leverage the timers provided by ROS 2 to trigger message publication.
The publisher_member_function recipe creates a class MinimalPublisher that sends messages periodically.
The publisher_member_function_with_wait_for_all_acked recipe creates a class MinimalPublisher that sends messages and wait for all messages are acknowledged.
系列: ROS 2
更新於 2026-03-28
· 1 分鐘閱讀
Minimal "publisher" cookbook recipes
本頁原文為其他語言。
自動翻譯成繁體中文 →
相關文章
ROS 2
EN
更新於 2026-03-28
resource index
package_resource_indexer ========================
閱讀文章 →
ROS 2
EN
更新於 2026-03-28
ament_cmake_google_benchmark
This package contains logic for invoking Google Benchmark tests and is comprised of three main parts
閱讀文章 →
ROS 2
EN
更新於 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
閱讀文章 →
ROS 2
EN
更新於 2026-03-28
ament_cmake_python
This package adds functions for installing Python packages and modules in CMake.
閱讀文章 →
ROS 2
EN
更新於 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.
閱讀文章 →
ROS 2
EN
更新於 2026-03-28
ament_index_cpp
ament_index_cpp is a C++ API to access the ament resource index.
閱讀文章 →