ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Doubt in ROS-2 design document about topics

asked 2020-12-28 09:39:32 -0500

Aakashp gravatar image

updated 2020-12-28 10:19:25 -0500

In the ROS-2 design page "https://design.ros2.org/articles/ros_...", it is written by @Dirk Thomas as

The DDS DataReader and DataWriter as well as DDS topics are not exposed through the ROS API.

My question is: How can we say that the DDS topics are not exposed through the ROS API, when using "ros2 topic list", we do access the topics ? Does these topics do not belong to DDS implementation ? What was the actual concept that was meant to be conveyed by the quoted text above ?

I request to help me in clearing this doubt.

edit retag flag offensive close merge delete

Comments

@Aakashp: please don't close questions to mark them as resolved. Instead, accept the best answer by clicking the checkmark to the left of the answer.

gvdhoorn gravatar image gvdhoorn  ( 2020-12-29 04:28:12 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2020-12-28 12:22:05 -0500

tfoote gravatar image

What you see in the ros2 topic list are the ROS topics and not the DDS topics. Under the hood it is implemented with DDS by default but the topics are not exactly the same. And you don't have access to the raw DDS DataReader and DataWriter objects.

edit flag offensive delete link more

Comments

Thanks @tfoote for clearing my doubt.

Aakashp gravatar image Aakashp  ( 2020-12-29 03:57:02 -0500 )edit
1

answered 2020-12-28 12:26:48 -0500

jacobperron gravatar image

ROS topics and DDS topics are different things and there is a mapping between the two, as described by the design document Topic and Service name mapping to DDS.

You can check out the design document for more info, but some key points from the design:

  • ROS topics have different naming constraints compared to DDS topics
  • Some name mangling occurs when mapping a ROS topic name to a DDS topic name
edit flag offensive delete link more

Comments

Thanks @jacobperron for your answer, it is helpful.

Aakashp gravatar image Aakashp  ( 2020-12-29 03:56:17 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2020-12-28 09:39:32 -0500

Seen: 137 times

Last updated: Dec 28 '20