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

Validate parameter names #380

Open
jubeira opened this issue Jun 26, 2019 · 9 comments
Open

Validate parameter names #380

jubeira opened this issue Jun 26, 2019 · 9 comments
Labels
enhancement New feature or request

Comments

@jubeira
Copy link
Contributor

jubeira commented Jun 26, 2019

Feature request

Validate parameter names on declaration.
The current name validation is simply a non-empty check.

Feature description

Complete constraints for parameter names TBD.
Name validation should enable to reject parameters when their name.

Implementation considerations

Nodes and topics have name validations, but parameters don't.
Following the implementation for node names and topics, it would make sense to implement the solution at RCL level and use that functionality in rclpy and rclcpp. See topic and service names design doc for reference.

@jubeira jubeira added the enhancement New feature or request label Jun 26, 2019
@suab321321
Copy link
Contributor

I want to contribute to this one

@nuclearsandwich
Copy link
Member

@suab321321 please feel free to do so and open a pull request if you have any questions or want early feedback.

@suab321321
Copy link
Contributor

I have started going through code,will update you soon

@suab321321
Copy link
Contributor

suab321321 commented Aug 17, 2019

@nuclearsandwich Do I have to implement this in rcl reposiroty like the ones used for rcl/validate_topic_name,and then using the c api I need to implement this in rospy ,am I correct?
And also is the rules for validating a node topic is given in design doc but not of parameters.

@jubeira
Copy link
Contributor Author

jubeira commented Aug 19, 2019

@nuclearsandwich Do I have to implement this in rcl reposiroty like the ones used for rcl/validate_topic_name,and then using the c api I need to implement this in rospy ,am I correct?

Yes, that would be a good approach.

And also is the rules for validating a node topic is given in design doc but not of parameters.

AFAIK that is correct.
There is an open discussion here about parameter design and parameter naming in particular; so far there are some assumptions but I think it's not a settled discussion. Perhaps it's better to wait until a design document goes out and then work on this.

@ivanpauno
Copy link
Member

AFAIK that is correct.
There is an open discussion here about parameter design and parameter naming in particular; so far there are some assumptions but I think it's not a settled discussion. Perhaps it's better to wait until a design document goes out and then work on this.

I agree, rules for parameter naming aren't clear now. We should wait until we start implementing ros2/design#241.

@suab321321
Copy link
Contributor

Okay I will wait for it.

@suab321321
Copy link
Contributor

@jubeira are parameters rules clear now..should I start

@ivanpauno
Copy link
Member

@jubeira are parameters rules clear now..should I start

There is not progress in that discussion at the moment.

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

4 participants