How ROS2 communication is done between two nodes over DDS?
Hi, I am a newbie in the ROS2 paradigm. I have Ubuntu 20.04 and ROS2 Foxy installed on it. I am able to communicate among nodes via publishing/subscribing topics and services. I have read the documentation about default DDS in ROS2. I have also read about, how to create a fast DDS publisher and subscriber, as well as the topic name mapping between ROS2 and DDS.
But I am still unable to understand how can I communicate between two nodes over DDS? Do I need a discovery server?
What steps should I follow to communicate via a topic between two nodes?
Confusions:
- As DDS follows idl format for messages, how msg and srv files will be translated to dds?
- There is also an integer domain_value to set up the availability among publishers and subscribers. How can I set domain values?
- Will publishing and subscribing to DDS topics follow the same procedure as ROS2 topics?