Configure maximum DDS participants in a generic way

Open
#324 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
c
Domain
api

Research direction

Start by reviewing the rmw_init_options_t data structure and the existing ROS_LOCALHOST_ONLY handling. Compare how participant limits are configured by the DDS vendors discussed in the issue, then determine the generic interface needed. Done means a vendor-agnostic setting can adjust the maximum participant count and address the reported participant-index failure.

Written by the indexing model from the issue text.

Description

enhancement help wanted

Feature request

As a developer, I would like a DDS vendor agnostic way to set the maximum number of DDS participants, so that (1) myself and new users do not have to maintain different configs for different vendors, and (2) I can easily fix the "Failed to find a free participant index for domain #" without knowing the person's DDS vendor or config file details.

Feature description

As a developer, I prefer to use 'ROS_LOCALHOST_ONLY' environment variable over maintaining a custom DDS config for each vendor. It makes it very easy for new users using whatever DDS vendor to ensure they are keeping traffic local to their machine. However, I cannot fully migrate away from maintaining these configs, because the default max participants is too low for my use cases.

I would like a similar environment variable like 'ROS_LOCALHOST_ONLY' that adjust the max # participants (ex: MaxAutoParticipantIndex for CycloneDDS).

Implementation considerations

I am not terribly familiar with the implementation specifics of the various ROS DDS implementations. With a bit of digging around, I think this might go inside the 'rmw_init_options_t' data structure?

The discussion leading up to this feature request can be found here.

Dominant language
C
Stars
121
Forks
89
Avg merge
17h 40m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/rmw

All issues in ros2/rmw

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.