AGX Dynamics  2.38.0.2
agxROS2::Publisher< TMsg > Class Template Reference

Publisher class that enables sending ROS2 messages. More...

#include <Publisher.h>

Public Member Functions

 Publisher (const std::string &topic, const QOS &qos=QOS(), int8_t inDomainId=0)
 Constructor for the Publisher. More...
 
 ~Publisher ()
 
void sendMessage (const TMsg &msg)
 Sends a message. More...
 

Detailed Description

template<typename TMsg>
class agxROS2::Publisher< TMsg >

Publisher class that enables sending ROS2 messages.

Definition at line 45 of file var/agx-dependencies/agx_dependencies_240131_ubuntu_20.04_64/include/agx-nt-ros2/Publisher.h.

Constructor & Destructor Documentation

◆ Publisher()

template<typename TMsg >
agxROS2::Publisher< TMsg >::Publisher ( const std::string &  topic,
const QOS &  qos = QOS(),
int8_t  inDomainId = 0 
)

Constructor for the Publisher.

Parameters
topic- the topic on which the Subscriber will receive messages.
qos- Quality of Service (QOS) specifies behaviours such as message lifetime among other things.
inDomainId- determines which DDS domain the Subscriber uses. Default for ROS2 is 0.

◆ ~Publisher()

template<typename TMsg >
agxROS2::Publisher< TMsg >::~Publisher ( )

Member Function Documentation

◆ sendMessage()

template<typename TMsg >
void agxROS2::Publisher< TMsg >::sendMessage ( const TMsg &  msg)

Sends a message.

Parameters
msg- the message to send.

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