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

Parameter handling improvements. #345

Merged
merged 2 commits into from
May 15, 2019
Merged

Conversation

jubeira
Copy link
Contributor

@jubeira jubeira commented May 13, 2019

Closes #341.

There are some details that still need a bit of attention (see #341 (comment)). The PR includes a proposal for set_descriptor as described in the comment.

On the other hand, I'd like some input about the optional signature using Parameter as input for declare_parameter (see comment). Is it worth implementing it even if it only applies to declare_parameter but not declare_parameters?

Other than that, this should be ready for an initial review.

Juan Ignacio Ubeira added 2 commits May 13, 2019 18:14
- Adding set_descriptor.
- Using better optional parameters for declare_parameters.
- Handling read-only parameters.

Signed-off-by: Juan Ignacio Ubeira <jubeira@ekumenlabs.com>
Signed-off-by: Juan Ignacio Ubeira <jubeira@ekumenlabs.com>
@jubeira jubeira added the in progress Actively being worked on (Kanban column) label May 13, 2019
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

rclpy/rclpy/node.py Show resolved Hide resolved
@wjwwood
Copy link
Member

wjwwood commented May 13, 2019

On the other hand, I'd like some input about the optional signature using Parameter as input for declare_parameter (see comment). Is it worth implementing it even if it only applies to declare_parameter but not declare_parameters?

I don't think it is necessary. It just looked more consistent.

Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jubeira
Copy link
Contributor Author

jubeira commented May 14, 2019

CI:

  • Linux: Build Status
  • Linux-aarch64: Build Status
  • Mac OS: Build Status
  • Windows: Build Status

@wjwwood Errors look unrelated; I think we can proceed with this one.

@wjwwood wjwwood merged commit bd7a0b6 into master May 15, 2019
@wjwwood wjwwood removed the in progress Actively being worked on (Kanban column) label May 15, 2019
@wjwwood wjwwood deleted the issue/#341_parameter_improvements branch May 15, 2019 05:07
@wjwwood
Copy link
Member

wjwwood commented May 15, 2019

Thanks @jubeira!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow-up on parameter API
3 participants