|
| Publisher (rclcpp::node_interfaces::NodeBaseInterface *node_base, const std::string &topic, const rcl_publisher_options_t &publisher_options, const PublisherEventCallbacks &event_callbacks, const std::shared_ptr< MessageAlloc > &allocator) |
|
virtual | ~Publisher () |
|
mapped_ring_buffer::MappedRingBufferBase::SharedPtr | make_mapped_ring_buffer (size_t size) const override |
| Implementation utility function that creates a typed mapped ring buffer. More...
|
|
virtual void | publish (std::unique_ptr< MessageT, MessageDeleter > msg) |
| Send a message to the topic for this publisher. More...
|
|
virtual void | publish (const std::shared_ptr< const MessageT > &msg) |
|
virtual void | publish (const MessageT &msg) |
|
virtual void | publish (const MessageT *msg) |
|
void | publish (const rcl_serialized_message_t &serialized_msg) |
|
void | publish (const rcl_serialized_message_t *serialized_msg) |
|
void | publish (std::shared_ptr< const rcl_serialized_message_t > serialized_msg) |
|
std::shared_ptr< MessageAlloc > | get_allocator () const |
|
| PublisherBase (rclcpp::node_interfaces::NodeBaseInterface *node_base, const std::string &topic, const rosidl_message_type_support_t &type_support, const rcl_publisher_options_t &publisher_options) |
| Default constructor. More...
|
|
virtual | ~PublisherBase () |
|
const char * | get_topic_name () const |
| Get the topic that this publisher publishes on. More...
|
|
size_t | get_queue_size () const |
| Get the queue size for this publisher. More...
|
|
const rmw_gid_t & | get_gid () const |
| Get the global identifier for this publisher (used in rmw and by DDS). More...
|
|
const rmw_gid_t & | get_intra_process_gid () const |
| Get the global identifier for this publisher used by intra-process communication. More...
|
|
rcl_publisher_t * | get_publisher_handle () |
| Get the rcl publisher handle. More...
|
|
const rcl_publisher_t * | get_publisher_handle () const |
| Get the rcl publisher handle. More...
|
|
const std::vector< std::shared_ptr< rclcpp::QOSEventHandlerBase > > & | get_event_handlers () const |
| Get all the QoS event handlers associated with this publisher. More...
|
|
size_t | get_subscription_count () const |
| Get subscription count. More...
|
|
size_t | get_intra_process_subscription_count () const |
| Get intraprocess subscription count. More...
|
|
RCUTILS_WARN_UNUSED bool | assert_liveliness () const |
| Manually assert that this Publisher is alive (for RMW_QOS_POLICY_LIVELINESS_MANUAL_BY_TOPIC). More...
|
|
rmw_qos_profile_t | get_actual_qos () const |
| Get the actual QoS settings, after the defaults have been determined. More...
|
|
bool | operator== (const rmw_gid_t &gid) const |
| Compare this publisher to a gid. More...
|
|
bool | operator== (const rmw_gid_t *gid) const |
| Compare this publisher to a pointer gid. More...
|
|
void | setup_intra_process (uint64_t intra_process_publisher_id, IntraProcessManagerSharedPtr ipm, const rcl_publisher_options_t &intra_process_options) |
| Implementation utility function used to setup intra process publishing after creation. More...
|
|
template<typename MessageT, typename Alloc = std::allocator<void>>
class rclcpp::Publisher< MessageT, Alloc >
A publisher publishes messages of any type to a topic.