Skip to content

Expose .msg/.srv/.action to .idl conversion via rosidl translate CLI#576

Merged
hidmic merged 6 commits intomasterfrom
hidmic/rosidl-translate-ros
Mar 9, 2021
Merged

Expose .msg/.srv/.action to .idl conversion via rosidl translate CLI#576
hidmic merged 6 commits intomasterfrom
hidmic/rosidl-translate-ros

Conversation

@hidmic
Copy link
Copy Markdown
Contributor

@hidmic hidmic commented Feb 26, 2021

Connected to #565. Depends on #575.

@hidmic hidmic requested a review from sloretz February 26, 2021 21:07
@hidmic hidmic mentioned this pull request Feb 26, 2021
21 tasks
@hidmic hidmic force-pushed the hidmic/rosidl-translate-ros branch 2 times, most recently from 26e2bd0 to 38748ff Compare March 3, 2021 20:33
hidmic added 3 commits March 8, 2021 19:00
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic hidmic force-pushed the hidmic/rosidl-translate-ros branch from 91e5152 to 014e218 Compare March 8, 2021 22:00
@hidmic
Copy link
Copy Markdown
Contributor Author

hidmic commented Mar 8, 2021

CI up to rosidl_adapter:

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

@hidmic hidmic requested a review from ahcorde March 8, 2021 22:01
Copy link
Copy Markdown
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.

LGTM with a couple nitpicks and windows CI made happy

@@ -1,4 +1,4 @@
# Copyright 2018 Open Source Robotics Foundation, Inc.
# Copyright 2018-2021 Open Source Robotics Foundation, Inc.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No need to update the copyright year. I'm pretty sure we don't usually bump it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've seen both, but I don't mind strongly. Reverted in 74e0044.


@property
def conversion_function(self):
from rosidl_adapter.msg import convert_msg_to_idl
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is the import in the function instead of on the module?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This source file didn't import them directly, so I just went with it. But I don't mind strongly. Moved to the top in 74e0044.

hidmic added 2 commits March 9, 2021 11:35
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Copy Markdown
Contributor Author

hidmic commented Mar 9, 2021

Re-running Windows CI after 2775f03:

  • Windows Build Status

@hidmic hidmic requested a review from sloretz March 9, 2021 14:38
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
Copy Markdown
Contributor Author

hidmic commented Mar 9, 2021

Re-running Windows CI after 928c1a4:

  • Windows Build Status

@hidmic
Copy link
Copy Markdown
Contributor Author

hidmic commented Mar 9, 2021

And again, using ament/ament_cmake#327:

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

@hidmic
Copy link
Copy Markdown
Contributor Author

hidmic commented Mar 9, 2021

CI's green and ament/ament_cmake#327 is merged. Going in !

@hidmic hidmic merged commit 594c97a into master Mar 9, 2021
@delete-merged-branch delete-merged-branch bot deleted the hidmic/rosidl-translate-ros branch March 9, 2021 20:36
MichaelOrlov pushed a commit to MichaelOrlov/rosidl that referenced this pull request May 24, 2023
- Fix for
""// with input from rosbag2_storage_mcap_testdata/msg\\ComplexMsgDependsOnIdl.msg"
- On Windows platform message generator messing up with the input file
name ""/msg\\ComplexMsgDependsOnIdl.msg" by inserting double backslashes
instead of one forward slash.
- Partial backport from ros2#576

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
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.

3 participants