nros C API
Lightweight ROS 2 client for embedded real-time systems
Loading...
Searching...
No Matches
rcl_publisher_t Struct Reference

#include <nros_generated.h>

Collaboration diagram for rcl_publisher_t:

Data Fields

uint64_t _opaque [PUBLISHER_OPAQUE_U64S]
struct rclc_node_ref_t node
struct rcl_publisher_options_t options
enum rclc_publisher_state_t state
uint8_t topic_name [256]
size_t topic_name_len
uint8_t type_hash [128]
size_t type_hash_len
uint8_t type_name [256]
size_t type_name_len
const struct rclc_message_type_t * type_support

Detailed Description

Publisher structure.

Field Documentation

◆ _opaque

uint64_t rcl_publisher_t::_opaque[PUBLISHER_OPAQUE_U64S]

Inline opaque storage for the RMW publisher handle. Avoids heap allocation — managed by rclc_publisher_init_default/fini.

◆ node

struct rclc_node_ref_t rcl_publisher_t::node

Pointer to parent node

◆ options

struct rcl_publisher_options_t rcl_publisher_t::options

The options it was initialised with (all zero without any), which rcl_publisher_get_options returns (phase-515 C6). Placed in the alignment padding after topic_name.

◆ state

enum rclc_publisher_state_t rcl_publisher_t::state

Current state

◆ topic_name

uint8_t rcl_publisher_t::topic_name[256]

Topic name storage

◆ topic_name_len

size_t rcl_publisher_t::topic_name_len

Topic name length

◆ type_hash

uint8_t rcl_publisher_t::type_hash[128]

Type hash storage

◆ type_hash_len

size_t rcl_publisher_t::type_hash_len

Type hash length

◆ type_name

uint8_t rcl_publisher_t::type_name[256]

Type name storage

◆ type_name_len

size_t rcl_publisher_t::type_name_len

Type name length

◆ type_support

const struct rclc_message_type_t* rcl_publisher_t::type_support

phase-492 W8 — the descriptor this publisher was created with, kept so rcl_publish can serialise through its codec. Descriptors are generated static consts, so the pointer outlives the publisher.


The documentation for this struct was generated from the following file: