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

add "--param-type" option to ros2param list. #572

Merged
merged 3 commits into from
Oct 29, 2020

Conversation

fujitatomoya
Copy link
Collaborator

address #569

Signed-off-by: Tomoya.Fujita Tomoya.Fujita@sony.com

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

A few things to change in here, but I like the idea.

ros2param/ros2param/verb/list.py Outdated Show resolved Hide resolved
ros2param/ros2param/verb/list.py Outdated Show resolved Hide resolved
@fujitatomoya
Copy link
Collaborator Author

@clalancette

could you check once again?

fujitatomoya and others added 3 commits October 29, 2020 13:52
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
Use a map so we don't have to continually do a search in
the inner loop.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette force-pushed the topic-20201028-print-param-type branch from 6d077e3 to 174dd2f Compare October 29, 2020 14:52
@clalancette
Copy link
Contributor

@fujitatomoya FYI, I rebased this code and did a few more fixups to make the type lookup even faster.

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

One thing that would be really nice to do here would be to add some "cli" tests for the list verb, like we have for dump in https://github.com/ros2/ros2cli/blob/master/ros2param/test/test_verb_dump.py . I don't think it would be too hard to add, and would give us a bit more verification of this work. @fujitatomoya do you have some time to look into that?

@clalancette
Copy link
Contributor

One thing that would be really nice to do here would be to add some "cli" tests for the list verb, like we have for dump in https://github.com/ros2/ros2cli/blob/master/ros2param/test/test_verb_dump.py . I don't think it would be too hard to add, and would give us a bit more verification of this work. @fujitatomoya do you have some time to look into that?

Never mind. I missed that we had #389 already open, and apparently it is harder than I think since we never solved it there.

I'm going to approve this and run CI on it.

@clalancette
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@clalancette
Copy link
Contributor

@claireyywang @mabelzhang I'd appreciate a second look here since I did some of the modifications myself.

Copy link
Contributor

@claireyywang claireyywang left a comment

Choose a reason for hiding this comment

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

LGTM

@clalancette
Copy link
Contributor

All right, we have approvals, green CI. I'm going to go ahead and merge, thanks @fujitatomoya !

@clalancette clalancette merged commit 0006274 into ros2:master Oct 29, 2020
@fujitatomoya
Copy link
Collaborator Author

@clalancette

I rebased this code and did a few more fixups to make the type lookup even faster.

thanks 👍 this is better!

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.

None yet

3 participants