#include <publisher.hpp>
§ StoreMessageCallbackT
§ PublisherBase()
Default constructor.
Typically, a publisher is not created through this method, but instead is created through a call to Node::create_publisher
.
- Parameters
-
[in] | node_base | A pointer to the NodeBaseInterface for the parent node. |
[in] | topic | The topic that this publisher publishes on. |
[in] | type_support | The type support structure for the type to be published. |
[in] | publisher_options | QoS settings for this publisher. |
§ ~PublisherBase()
virtual rclcpp::publisher::PublisherBase::~PublisherBase |
( |
| ) |
|
|
virtual |
§ get_topic_name()
const char* rclcpp::publisher::PublisherBase::get_topic_name |
( |
| ) |
const |
Get the topic that this publisher publishes on.
- Returns
- The topic name.
§ get_queue_size()
size_t rclcpp::publisher::PublisherBase::get_queue_size |
( |
| ) |
const |
Get the queue size for this publisher.
- Returns
- The queue size.
§ get_gid()
const rmw_gid_t& rclcpp::publisher::PublisherBase::get_gid |
( |
| ) |
const |
Get the global identifier for this publisher (used in rmw and by DDS).
- Returns
- The gid.
§ get_intra_process_gid()
const rmw_gid_t& rclcpp::publisher::PublisherBase::get_intra_process_gid |
( |
| ) |
const |
Get the global identifier for this publisher used by intra-process communication.
- Returns
- The intra-process gid.
§ operator==() [1/2]
bool rclcpp::publisher::PublisherBase::operator== |
( |
const rmw_gid_t & |
gid | ) |
const |
Compare this publisher to a gid.
Note that this function calls the next function.
- Parameters
-
[in] | gid | Reference to a gid. |
- Returns
- True if the publisher's gid matches the input.
§ operator==() [2/2]
bool rclcpp::publisher::PublisherBase::operator== |
( |
const rmw_gid_t * |
gid | ) |
const |
Compare this publisher to a pointer gid.
A wrapper for comparing this publisher's gid to the input using rmw_compare_gids_equal.
- Parameters
-
[in] | gid | A pointer to a gid. |
- Returns
- True if this publisher's gid matches the input.
§ setup_intra_process()
Implementation utility function used to setup intra process publishing after creation.
§ rcl_node_handle_
§ publisher_handle_
§ intra_process_publisher_handle_
§ intra_process_publisher_id_
uint64_t rclcpp::publisher::PublisherBase::intra_process_publisher_id_ |
|
protected |
§ store_intra_process_message_
§ rmw_gid_
rmw_gid_t rclcpp::publisher::PublisherBase::rmw_gid_ |
|
protected |
§ intra_process_rmw_gid_
rmw_gid_t rclcpp::publisher::PublisherBase::intra_process_rmw_gid_ |
|
protected |
The documentation for this class was generated from the following file: