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 support for nested arrays #207

Closed
wants to merge 1 commit into from

Conversation

mikaelarguedas
Copy link
Member

@mikaelarguedas mikaelarguedas commented Mar 13, 2019

replaces #197 now that ros2/rosidl_python#24 has merged.
Fixes #59

Note: the code for importing a message from a NamespacedType is inline for now. It could be refactored into a rosidl package but I'm unsure what the right place for it is, and it looks like the other import logic in this repo are also pending refactor

def import_message_type(topic_name, message_type):
# TODO(dirk-thomas) this logic should come from a rosidl related package

Can be tested by following the steps of bug reports #59 or #191

Requires ros2/rosidl_python#33

Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
@mikaelarguedas mikaelarguedas added the in progress Actively being worked on (Kanban column) label Mar 13, 2019
@mikaelarguedas mikaelarguedas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Mar 13, 2019
# Check if field is an array of ROS message types
if isinstance(field_type(), list):
if isinstance(f_type.basetype, NamespacedType):
# TODO(mikaelarguedas) Consider putting this import logic in a rosidl function
Copy link
Member

Choose a reason for hiding this comment

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

Maybe the new package from ros2/rosidl_python#34 would be a good place for this too.

@mikaelarguedas
Copy link
Member Author

Closing in favor of ros2/rosidl_python#33 and #209

@mikaelarguedas mikaelarguedas deleted the get_slot_types_2 branch April 1, 2019 17:35
@mikaelarguedas mikaelarguedas removed the in review Waiting for review (Kanban column) label Apr 1, 2019
esteve pushed a commit to esteve/ros2cli that referenced this pull request Dec 16, 2022
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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.

2 participants