rmw_fastrtps_cpp  master
Implement the ROS middleware interface using eProsima FastRTPS static code generation in C++.
All Classes Namespaces Files Functions Variables Macros
Classes | Functions
rmw_fastrtps_cpp Namespace Reference

Classes

class  MessageTypeSupport
 
class  RequestTypeSupport
 
class  ResponseTypeSupport
 
class  ServiceTypeSupport
 
class  TypeSupport
 

Functions

eprosima::fastdds::dds::DataWriter * get_request_datawriter (rmw_client_t *client)
 Return a native Fast DDS DataWriter handle for the request. More...
 
eprosima::fastdds::dds::DataReader * get_response_datareader (rmw_client_t *client)
 Return a native Fast DDS DataReader handle for the response. More...
 
eprosima::fastdds::dds::DomainParticipant * get_domain_participant (rmw_node_t *node)
 Return a native Fast DDS DomainParticipant handle. More...
 
eprosima::fastdds::dds::DataWriter * get_datawriter (rmw_publisher_t *publisher)
 Return a native Fast DDS DataWriter handle. More...
 
eprosima::fastdds::dds::DataReader * get_request_datareader (rmw_service_t *service)
 Return a native Fast DDS DataReader handle for the request. More...
 
eprosima::fastdds::dds::DataWriter * get_response_datawriter (rmw_service_t *service)
 Return a native Fast DDS DataWriter handle for the response. More...
 
eprosima::fastdds::dds::DataReader * get_datareader (rmw_subscription_t *subscription)
 Return a native Fast DDS DataReader handle. More...
 
rmw_ret_t increment_context_impl_ref_count (rmw_context_t *context)
 Increment rmw_context_impl_t reference count, initializing it if necessary. More...
 
rmw_publisher_tcreate_publisher (const CustomParticipantInfo *participant_info, const rosidl_message_type_support_t *type_supports, const char *topic_name, const rmw_qos_profile_t *qos_policies, const rmw_publisher_options_t *publisher_options, bool keyed, bool create_publisher_listener)
 
rmw_subscription_tcreate_subscription (const CustomParticipantInfo *participant_info, const rosidl_message_type_support_t *type_supports, const char *topic_name, const rmw_qos_profile_t *qos_policies, const rmw_subscription_options_t *subscription_options, bool keyed, bool create_subscription_listener)
 

Function Documentation

◆ get_request_datawriter()

eprosima::fastdds::dds::DataWriter* rmw_fastrtps_cpp::get_request_datawriter ( rmw_client_t client)

Return a native Fast DDS DataWriter handle for the request.

The function returns NULL when either the client handle is NULL or when the client handle is from a different rmw implementation.

Returns
native Fast DDS DataWriter handle if successful, otherwise NULL

◆ get_response_datareader()

eprosima::fastdds::dds::DataReader* rmw_fastrtps_cpp::get_response_datareader ( rmw_client_t client)

Return a native Fast DDS DataReader handle for the response.

The function returns NULL when either the client handle is NULL or when the client handle is from a different rmw implementation.

Returns
native Fast DDS DataReader handle if successful, otherwise NULL

◆ get_domain_participant()

eprosima::fastdds::dds::DomainParticipant* rmw_fastrtps_cpp::get_domain_participant ( rmw_node_t node)

Return a native Fast DDS DomainParticipant handle.

This function returns NULL when either the node handle is NULL or when the node handle is from a different rmw implementation.

Returns
native Fast DDS DomainParticipant handle if successful, otherwise NULL

◆ get_datawriter()

eprosima::fastdds::dds::DataWriter* rmw_fastrtps_cpp::get_datawriter ( rmw_publisher_t publisher)

Return a native Fast DDS DataWriter handle.

The function returns NULL when either the publisher handle is NULL or when the publisher handle is from a different rmw implementation.

Returns
native Fast DDS DataWriter handle if successful, otherwise NULL

◆ get_request_datareader()

eprosima::fastdds::dds::DataReader* rmw_fastrtps_cpp::get_request_datareader ( rmw_service_t service)

Return a native Fast DDS DataReader handle for the request.

The function returns NULL when either the service handle is NULL or when the service handle is from a different rmw implementation.

Returns
native Fast DDS DataReader handle if successful, otherwise NULL

◆ get_response_datawriter()

eprosima::fastdds::dds::DataWriter* rmw_fastrtps_cpp::get_response_datawriter ( rmw_service_t service)

Return a native Fast DDS DataWriter handle for the response.

The function returns NULL when either the service handle is NULL or when the service handle is from a different rmw implementation.

Returns
native Fast DDS DataWriter handle if successful, otherwise NULL

◆ get_datareader()

eprosima::fastdds::dds::DataReader* rmw_fastrtps_cpp::get_datareader ( rmw_subscription_t subscription)

Return a native Fast DDS DataReader handle.

The function returns NULL when either the subscription handle is NULL or when the subscription handle is from a different rmw implementation.

Returns
native Fast DDS DataReader handle if successful, otherwise NULL

◆ increment_context_impl_ref_count()

rmw_ret_t rmw_fastrtps_cpp::increment_context_impl_ref_count ( rmw_context_t context)

Increment rmw_context_impl_t reference count, initializing it if necessary.

Should be called when creating a node, and before using context->impl.

◆ create_publisher()

rmw_publisher_t* rmw_fastrtps_cpp::create_publisher ( const CustomParticipantInfo participant_info,
const rosidl_message_type_support_t *  type_supports,
const char *  topic_name,
const rmw_qos_profile_t qos_policies,
const rmw_publisher_options_t publisher_options,
bool  keyed,
bool  create_publisher_listener 
)

◆ create_subscription()

rmw_subscription_t* rmw_fastrtps_cpp::create_subscription ( const CustomParticipantInfo participant_info,
const rosidl_message_type_support_t *  type_supports,
const char *  topic_name,
const rmw_qos_profile_t qos_policies,
const rmw_subscription_options_t subscription_options,
bool  keyed,
bool  create_subscription_listener 
)