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

ROS2 message format should support enums #447

Closed
calvertdw opened this issue Jan 8, 2018 · 1 comment
Closed

ROS2 message format should support enums #447

calvertdw opened this issue Jan 8, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@calvertdw
Copy link

calvertdw commented Jan 8, 2018

You guys know what this means.

Constants aren't good enough. They don't constrain you to the range of values and you are able to set the field to any number you want.

// Current way

int16 FOO=0
int16 BAR=1
int16 value

// Proposed way

enum foo_bar { FOO, BAR }
@dirk-thomas
Copy link
Member

This issue was moved to ros2/rosidl#260

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