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

#include <nros_generated.h>

Collaboration diagram for rcl_publisher_t:
Collaboration graph
[legend]

Data Fields

uint64_t _opaque [PUBLISHER_OPAQUE_U64S]
 
struct rclc_node_ref_t node
 
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

◆ 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: