|
AGX Dynamics
2.38.0.2
|
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... | |
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.
| agxROS2::Publisher< TMsg >::Publisher | ( | const std::string & | topic, |
| const QOS & | qos = QOS(), |
||
| int8_t | inDomainId = 0 |
||
| ) |
Constructor for the Publisher.
| 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. |
| agxROS2::Publisher< TMsg >::~Publisher | ( | ) |
| void agxROS2::Publisher< TMsg >::sendMessage | ( | const TMsg & | msg | ) |
Sends a message.
| msg | - the message to send. |