Skip to content
This repository has been archived by the owner on Dec 9, 2021. It is now read-only.

change generators to IDL-based pipeline #11

Merged
merged 50 commits into from
Mar 12, 2019
Merged

change generators to IDL-based pipeline #11

merged 50 commits into from
Mar 12, 2019

Conversation

dirk-thomas
Copy link
Member

@dirk-thomas dirk-thomas commented Nov 21, 2018

Connected to ros2/rosidl#334.

@dirk-thomas dirk-thomas added the in progress Actively being worked on (Kanban column) label Nov 21, 2018
@dirk-thomas dirk-thomas self-assigned this Nov 21, 2018
@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Nov 26, 2018
@clalancette clalancette requested a review from sloretz January 3, 2019 20:53
@dirk-thomas dirk-thomas mentioned this pull request Feb 12, 2019
8 tasks
@dirk-thomas dirk-thomas force-pushed the idl-stage-7 branch 2 times, most recently from cacdc90 to f3af6c3 Compare February 15, 2019 00:19
@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) and removed in review Waiting for review (Kanban column) labels Feb 15, 2019
@dirk-thomas dirk-thomas changed the title update includes and type mapping change generators to IDL-based pipeline Feb 19, 2019
@dirk-thomas dirk-thomas added in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Feb 21, 2019
@dirk-thomas
Copy link
Member Author

@sloretz Back in review.

Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

Partial review up to msg__type_support_c.cpp.em

@dirk-thomas
Copy link
Member Author

Partial review up to msg__type_support_c.cpp.em

@sloretz Can you please finish the review soonish.

Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

made it through rosidl_typesupport_opensplice_c/resource/msg__type_support_c.cpp.em

@sloretz Can you please finish the review soonish.

I can change to just skimming code to make sure it looks roughly like the old code, and rely on time and automated testing to catch issues instead.

Realistically I can't review this like normal and finish it in the time I think you're looking for. I've spent a bunch of time reading the generated message code and the rosidl PR to figure out how this generator fits in, and I don't have many comments to show for it. More comments in code (especially in CMake code), and longer doc strings in rosidl_parser would have helped a lot.

elif isinstance(member.type.basetype, WString):
keys.add('rosidl_generator_c/u16string.h')
keys.add('rosidl_generator_c/u16string_functions.h')
elif isinstance(member.type.basetype, NamespacedType):
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this adds imports for other messages if there is an array or sequence of messages, but where are these imports being added when member.type is a single NamespacedType?

Copy link
Member Author

Choose a reason for hiding this comment

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

Only for nested types we need the header to be included. For plain namespaced type fields we only need the forward declared type support functions (starting around line 89).

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 think this is actually causing the linker warning on Windows. I changed the logic in 3d5f30d to include the header for not-nested namespaced types as well as fixed a bug in the forward declaration logic.

@dirk-thomas
Copy link
Member Author

dirk-thomas commented Mar 2, 2019

I can change to just skimming code to make sure it looks roughly like the old code, and rely on time and automated testing to catch issues instead.

Realistically I can't review this like normal and finish it in the time I think you're looking for.

To clarify my timeline goal: since currently CI is green (minus linker warnings on Windows for OpenSplice) I would rather get the current state in than wait until WString is fully implemented / tested. All other 13 PRs have been approved so I am looking to get this one reviewed by Monday (?) in order to move forward with the merge.

Copy link
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

Only nitpicks. LGTM with green CI

@dirk-thomas dirk-thomas merged commit 2fea5d7 into master Mar 12, 2019
@dirk-thomas dirk-thomas deleted the idl-stage-7 branch March 12, 2019 04:12
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Mar 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants