Skip to content

Extend CLI daemon based features#420

Merged
hidmic merged 4 commits intomasterfrom
hidmic/use-daemon-consistently
Dec 7, 2019
Merged

Extend CLI daemon based features#420
hidmic merged 4 commits intomasterfrom
hidmic/use-daemon-consistently

Conversation

@hidmic
Copy link
Copy Markdown

@hidmic hidmic commented Dec 6, 2019

Connected to #419. This pull request:

  • Augments daemon support for the ROS graph API.
  • Adds a --no-daemon option for NodeStrategy client code to use and allow users to NOT use nor spawn a daemon.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Copy Markdown
Author

hidmic commented Dec 6, 2019

Running CI up to sros2:

  • Linux Build Status
  • Arch Build Status
  • macOS Build Status
  • Windows Build Status

add_daemon_node_arguments(parser)
add_direct_node_arguments(parser)
parser.add_argument(
'--no-daemon', action='store_true', default=False,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nitpick: default=False is not necessary. The default default value is None which would be fine.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

True, coercion will do the trick. See 0406461.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Copy link
Copy Markdown
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

LGTM!
A follow up replacing DirectNode by NodeStrategy where possible would be nice.

server.register_function(
_print_invoked_function_name(node.get_service_names_and_types_by_node))
server.register_function(
_print_invoked_function_name(node.get_client_names_and_types_by_node))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

count_publishers and count_subscribers (which are also graph related), should be added too.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

True, and I'll need it for ros2 topic info. Added in 5a1c313.

@hidmic
Copy link
Copy Markdown
Author

hidmic commented Dec 6, 2019

A follow up replacing DirectNode by NodeStrategy where possible would be nice.

That's coming next.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Copy Markdown
Author

hidmic commented Dec 6, 2019

One last sanity check:

  • Linux Build Status

@nuclearsandwich
Copy link
Copy Markdown
Member

I think these failures:

are occurring because ros2/sros2#173 was merged without this PR. Is there anything preventing this from being merged?

@hidmic
Copy link
Copy Markdown
Author

hidmic commented Dec 7, 2019

Nope, it can be merged now.

@hidmic hidmic merged commit e369394 into master Dec 7, 2019
@delete-merged-branch delete-merged-branch bot deleted the hidmic/use-daemon-consistently branch December 7, 2019 23:55
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.

5 participants