Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Optional Attributes #850

Open
Ryanf55 opened this issue Feb 25, 2025 · 0 comments
Open

Feature Request: Optional Attributes #850

Ryanf55 opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Ryanf55
Copy link

Ryanf55 commented Feb 25, 2025

DDS supports the optional attribute in IDL 4.2 specification attribute section 8.3.1.3. In C++, now that we have C++17, we can use std::optional.

A prior dicussion is here: https://discourse.ros.org/t/optional-fields-in-message/991/16

Consider adding a @optional specifier to rosidl that translates to the DDS optional .

Amend the ROS 2 design documentation for Standardized Annotations to add optional:
https://design.ros2.org/articles/idl_interface_definition.html

It's supported by:

@sloretz sloretz added the enhancement New feature or request label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants