Coder Social home page Coder Social logo

Comments (6)

wjwwood avatar wjwwood commented on May 29, 2024

@miguelprada thanks for pointing it out. I think the purpose of that last example was to bring up that issue with the concept of rostopic+exact://, which I thought would be addressed by the next line:

Considering the third case, itโ€™s not clear if the / should be respected or if additional syntax is required to support partitions in the case of โ€œexactโ€ topic names.

Perhaps it should just be made clearer that this last case is intentionally problematic.

from design.

miguelprada avatar miguelprada commented on May 29, 2024

I understand this issue needs to be addressed, but since the / is not valid in topic names, I think presenting the first option can lead to confusion. Let me propose a rephrase of that section.

from design.

Karsten1987 avatar Karsten1987 commented on May 29, 2024

From what I understand in the linked spec, DDS topics don't exclude a forward slash. AFAIS, it only has a special meaning within the SQL Extension of rti.
With that in mind, you could imagine a ROS2 independent DDS topic with a forward slash. If you want to subscribe to such a topic, you may not be able to apply the same topic rules as for ROS2.

But I have to do some more research on that.

from design.

wjwwood avatar wjwwood commented on May 29, 2024

DDS topics only allow alphanumeric and underscores (and must not start with a number) according to the spec:

In DDS, topic names are restricted by these restrictions:

From DDS 1.4 specification, or the RTI documentation:

TOPICNAME - A topic name is an identifier for a topic, and is defined as any series of characters 'a', ..., 'z', 'A', ..., 'Z', '0', ..., '9', '_' but may not start with a digit. Note: that the DDS specification has a known typo, where it says - are allowed, but the RTI documentation correctly lists _ as allowed.

Additionally, DDS - or more precisely the underlying RTPS protocol - has a hard limit on topic names of 256 characters, so an additional goal is to minimize the number of extra characters used when mapping from ROS to DDS names. See The Real-time Publish-Subscribe Protocol (RTPS) DDS Interoperability Wire Protocol Specification, Table 9.12 for more details.

-- http://design.ros2.org/articles/topic_and_service_names.html#dds-topic-names

@Karsten1987 What makes you think forward slash is allowed in a topic name? It might be allowed by the implementation, but we have to go by the specification since we're not tied to one implementation.

from design.

Karsten1987 avatar Karsten1987 commented on May 29, 2024

I totally agree with what you said. We will comply to the specification, however, as you already mentioned, the implementations may be relaxed on these and you technically could end up with one forward slash in a DDS topic. If so, the question would be if we excluded that topic from being available in ROS.

If we decide to not allow the forward slash, then I like the proposed rephrasing of this PR.

from design.

wjwwood avatar wjwwood commented on May 29, 2024

I see what you mean, we can let the user pass a / into a DDS topic name by using "exact", and if the implementation doesn't allow it, let it raise. Basically "exact" would circumvent all of our checking.

from design.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.