holoscan::FastDdsHoloscanEntityTypeSupport
holoscan::FastDdsHoloscanEntityTypeSupport
holoscan::FastDdsHoloscanEntityTypeSupport
DDS TopicDataType implementation for HoloscanEntityData.
This class implements the FastDDS TopicDataType interface, enabling HoloscanEntityData to be used as a DDS topic type. It handles:
Inherits from: eprosima::fastdds::dds::TopicDataType (public)
Construct a new FastDdsHoloscanEntityTypeSupport.
Sets the type name to “holoscan::Entity” and configures for variable-size data.
Uses a 1MB initial max_serialized_type_size for payload pool allocation. With FastDDS’s default PREALLOCATED_WITH_REALLOC_MEMORY_MODE, larger messages (10-100+ MB tensors) will trigger automatic reallocation. The actual size per message is determined by calculate_serialized_size().
FastDDS 3.4.2 Bug: Documentation says to use 0 for unbounded types, but this causes a null pointer crash in TopicPayloadPoolProxy::reserve_history().
Destructor.
Serialize HoloscanEntityData to CDR format.
Returns: true on success, false on failure
Parameters
Pointer to HoloscanEntityData to serialize
Output serialized payload
Data representation (CDR encoding)
Deserialize CDR format to HoloscanEntityData.
Returns: true on success, false on failure
Parameters
Input serialized payload
Pointer to HoloscanEntityData to populate
Get the serialized size of a HoloscanEntityData instance.
Returns: Size in bytes when serialized
Parameters
Pointer to HoloscanEntityData
Data representation (CDR encoding)
Create a new HoloscanEntityData instance.
Returns: Pointer to newly allocated HoloscanEntityData
Delete a HoloscanEntityData instance.
Parameters
Pointer to HoloscanEntityData to delete
Check if this type has a key.
HoloscanEntityData does not use keyed topics.
Returns: false (no key defined)
Check if this type is bounded.
Returns: false (variable-size type with serialized_data vector)
Check if this type is plain (all members have fixed size and no optional).
Returns: false (contains variable-size vector and string)