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

how to convert .idl file to .proto file #24

Open
jackiearcobaleno opened this issue Nov 24, 2023 · 4 comments
Open

how to convert .idl file to .proto file #24

jackiearcobaleno opened this issue Nov 24, 2023 · 4 comments

Comments

@jackiearcobaleno
Copy link

jackiearcobaleno commented Nov 24, 2023

I got the package and colcon build it.
But I cannot find the proto file in the workspace.
On continue, I find it use the rosidl_adaptor_proto to generate files, but it need argument with "--generator-arguments-file" that I cannot GET it.
Please show the detail step.
Thank You!

@FlorianReimold

@FlorianReimold
Copy link
Member

The proto files are only intermediate files for this type-support. You should find them by searching your build directory for proto files. I think the command line to do that from terminal should be
find . -name "*proto" -type f

@jackiearcobaleno
Copy link
Author

The proto files are only intermediate files for this type-support. You should find them by searching your build directory for proto files. I think the command line to do that from terminal should be find . -name "*proto" -type f

Thanks for the reply. Now I can exchange ros2 message with ecal protobuf message by the type-support and rmw_ecal.
I don't known can it convert the ros2 native message format to proto format,such as std_msgs,sensor_msgs and etc.

@FlorianReimold
Copy link
Member

Sure, this works for any ROS2 message. When using the protobuf typesupport in a ROS2 project it even is required to "convert" all the standard messages that you are using, because ROS2 doesn't ship with them.

@tfoote
Copy link
Contributor

tfoote commented Jan 22, 2024

As of #31 there is now automatically generated Type Adapter functions which will convert between ROS native datatypes and the Proto in memory datatypes.

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

No branches or pull requests

3 participants