Skip to content

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

Merged
jacobperron merged 2 commits intomasterfrom
jacob/import_logic
Dec 10, 2019
Merged

[ros2topic] Use import message logic provided by rosidl_runtime_py#415
jacobperron merged 2 commits intomasterfrom
jacob/import_logic

Conversation

@jacobperron
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron
Copy link
Copy Markdown
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
Copy Markdown

@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

'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
Copy Markdown

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
Copy Markdown
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