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

What default ports are used in ROS2 DDS implementations?

asked 2018-06-26 12:02:28 -0500

thinwybk gravatar image

updated 2018-07-09 02:06:22 -0500

Its seems like the default ports for DDS communication are not specified. What deafult ports do the different DDS stacks use?

edit retag flag offensive close merge delete

Comments

1

Thx. Worked just fine with these ports. If you repost I'll accept as answer.

thinwybk gravatar image thinwybk  ( 2018-07-09 01:38:22 -0500 )edit
1

Looks like you’re links are a better answer. Maybe just repost your links as an answer and accept your own? I only noticed you linked to the same thing after sending the comment.

William gravatar image William  ( 2018-07-09 01:52:21 -0500 )edit

I don't have enough rep here to edit yet, or I would've just edited the accepted answer. As of 2019/07/17, the links in the accepted answer for eProsima FastRTPS are invalid. Correct links:

Given that links often go stale, I think appropriate to post the relevant info here:

By default eProsima Fast RTPS calculates the listening locators for the built-in UDPv4 network transport using well-known ports. These well-known ports are calculated using the following predefined rules...

(see page ~49, as of v1.9.0 PDF documentation)

kaliatech gravatar image kaliatech  ( 2019-07-18 08:57:05 -0500 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2018-07-09 02:08:50 -0500

thinwybk gravatar image

updated 2019-07-18 09:16:23 -0500

Procópio gravatar image
edit flag offensive delete link more

Comments

1

Thanks, better than my "answer" :)

William gravatar image William  ( 2018-07-09 11:57:29 -0500 )edit
0

answered 2021-10-20 14:34:37 -0500

ananya.muddu gravatar image

updated 2021-10-20 14:35:00 -0500

ROS2 Galactic provides API called get_network_flow_endpoints() for publishers and subscriptions to understand ports and IP addresses assigned for their messages by the RMW implementation.

Have a look the example here to understand said API use.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-06-26 12:02:28 -0500

Seen: 4,424 times

Last updated: Oct 20 '21