-
Notifications
You must be signed in to change notification settings - Fork 8
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_generate_dds_interfaces() doesn't support passing msg files as of Dashing #52
Comments
@dirk-thomas @mjcarroll any inputs to solve this are welcomed. Thank you! |
The error message indicates that you are trying to pass a The function I am not sure what to are trying to do but you package should probably just invoke the same function as any other message package: |
I am not sure I understand. Maybe you can describe what you think has changed in more detail. |
That means that the behavior between ROS distros for the same function has changed then. Because I use |
Example: https://github.com/PX4/px4_msgs/blob/master/CMakeLists.txt#L54-L58. This works correctly to all distros before Dashing. As you can see in the Crystal release, https://github.com/ros2/rosidl_dds/blob/crystal/rosidl_generator_dds_idl/cmake/rosidl_generate_dds_interfaces.cmake#L53, so it expected a list of msgs, srvs or actions, not IDL tuples. |
Thanks for the references. I get your point now how the semantic of I am not sure of it makes sense to attempt to recreate an API which takes |
Where you able to use that approach? If not, why didn't it work for you? |
Because of what's being reported in eProsima/Fast-DDS#829. The type names are different, so it doesn't work for intra-vendor (Fast-RTPS) communication between two participants in the same domain. |
Although the reported problem is still true (since the API was changed), I am moving away from this since this doesn't seem that is going to be fixed any time soon. Closing. |
Bug report
Required Info:
0.7.1-1bionic.20191015.013612
Steps to reproduce issue
git clone https://github.com/PX4/px4_msgs.git -b use_rosidl_generator_dds_idl
to a colcon/ament ws;colcon build --event-handlers console_direct+
.Expected behavior
rosidl_generate_dds_interfaces()
should correctly generate the IDL files for each message in px4_msgs, as it was doing for the Crystal release.Actual behavior
The generator fails with the following error:
Additional information
This follows up the problem reported in ros2/rmw_fastrtps#251 (comment) and in eProsima/Fast-DDS#829. Letting
rosidl_generate_interfaces()
generate the IDL files and respective typesupport results in having typenames which are not compatible with the ones generated by fastrtpsgen. Previously in Crystal, usingrosidl_generate_dds_interfaces()
, one was able to generate IDL's and typesupport compatible with the ones from fastrtpsgen (more context in eProsima/Fast-DDS#829).I am not sure at this point if using
rosidl_generate_dds_interfaces()
in Dashing is going to result on the same problem or not.The text was updated successfully, but these errors were encountered: