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

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

Merged
merged 6 commits into from
Mar 9, 2021

Conversation

hidmic
Copy link
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
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
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
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
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
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
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
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.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
@hidmic
Copy link
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
Contributor Author

hidmic commented Mar 9, 2021

Re-running Windows CI after 928c1a4:

  • Windows Build Status

@hidmic
Copy link
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
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 added 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.

None yet

3 participants