-
Notifications
You must be signed in to change notification settings - Fork 126
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
ROSIDL - Support generating files for fastddsgen without multiple definition errors #767
Comments
Just so you know, we don't use That said, if you find a way to make this work we'd be happy to review a fix. |
In a quick test, looks like a simple What's interesting is there are notes about this issue in the OMG IDL spec, but no proposed solution. Thoughts? |
Yes, that's a definite concern. So we'll have to see what happens with other vendors, particularly CycloneDDS and GurumDDS. I'll note that without additional work in rosidl, adding this won't have any effect for ROS 2 itself. But if this helps others use |
To be even more specific, the OMG IDL spec says
That ISO is the C++03 spec, which says that
That all to say, a spec-compliant IDL implementation is not required to implement |
As far as I can tell, all the compilers for ROS tier 1 platforms support it. |
Up to now, the issue has not been resolved. just like Ryanf55 said: add #pragma once at the top of every idl, can ignore the issue. |
Bug report
Required Info:
-Ubuntu 22
3.1.5-2jammy.20230718.201832 amd64
Steps to reproduce issue
OR, use
ros2 run rosidl_adapter msg2idl.py /opt/ros/humble/share/std_msgs/msg/Header.msg
to generate the IDL file into a directory if you want to work off the ROS messages, you get the sameidl
files.Expected behavior
The generated IDL files do not have naming conflicts.
Actual behavior
Additional information
Causes this downstream issue because the IDL file has conflicts.
eProsima/Fast-DDS-Gen#52
The text was updated successfully, but these errors were encountered: