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

[ros2topic] Use import message logic provided by rosidl_runtime_py #415

Merged
merged 2 commits into from
Dec 10, 2019

Conversation

jacobperron
Copy link
Member

Connects to #218.

Note that the action feedback logic in the echo verb was incorrect, resulting in a ModuleImportError.
The new logic added in ros2/rosidl_runtime_py#9 should fix the error.

Depends on ros2/rosidl_runtime_py#9

Connects to #218.

Note that the action feedback logic in the echo verb was incorrect, resulting in a ModuleImportError.
The new logic added in ros2/rosidl_runtime_py#9 should fix the error.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

jacobperron commented Dec 6, 2019

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

@jacobperron jacobperron added in review Waiting for review (Kanban column) enhancement New feature or request labels Dec 6, 2019
Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM

ros2topic/test/fixtures/repeater_node.py Outdated Show resolved Hide resolved
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Member Author

jacobperron commented Dec 9, 2019

Rebuild with latest change for sanity: Build Status

Edit: I'll wait for new linter errors from an update to be resolved in ros2/rclpy#480

Copy link
Contributor

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -128,7 +128,7 @@ def subscriber(
raise RuntimeError(
'Could not determine the type for the passed topic')

msg_module = import_message_type(topic_name, message_type)
msg_module = get_message(message_type)
Copy link
Contributor

Choose a reason for hiding this comment

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

@jacobperron meta^2: I wonder what'd happen if you used nargs='?', type=get_message above.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess it would be fine if we change this line to msg_module = message_type. But this seems out of scope of this PR. If you'd like to change it in a follow-up, go for it :)

@jacobperron jacobperron merged commit 6d4cd49 into master Dec 10, 2019
@delete-merged-branch delete-merged-branch bot deleted the jacob/import_logic branch December 10, 2019 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants