ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

[ROS2] using native RTI dds *.idl files with ROS2

asked 2017-09-26 08:17:32 -0600

jochen.mueck gravatar image

Hi, I'm wondering if there is an efficient way or best-practice on how to use existing RTI dds idl descriptions with ROS2. Since we have a complete legacy system running with RTI dds, it would be awesome to be able to communicate with it using ROS2.

I was thinking to have a deep look into ros2 message generation and figure out if it is possible to use existing idls. As far as i'm aware, when using rti dds as middleware, ros2 is generating idl files form msg definitions as an intermediate step. so hooking inbetween that process with existing idl files seems reasonable.

BR Jochen

edit retag flag offensive close merge delete

Comments

I know it's confusing, but following a recent discussion (on ROS Discourse: here), ROS2 questions are right now better asked in the ng-ros category on ROS Discourse.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-26 09:31:34 -0600 )edit

I've stumbled upon a large repo containing a bunch of .msg files which might serve as inspiration for manually converting .idl files into .msg: https://github.com/ros2/common_interf... That's not what the OP wanted, so this is not an actual answer but just a comment.

MTDzi gravatar image MTDzi  ( 2020-08-11 03:13:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-26 10:45:45 -0600

Dirk Thomas gravatar image

Currently there is no out-of-the-box way to provide an .idl file directly and use that. All .idl files are being generated from the .msg files and they use a pretty custom mapping (which adds namespaces as well as suffixes) so your existing .idl files will very likely not match the generated types exactly.

edit flag offensive delete link more

Comments

thanks for pointing that out to me again :-) i just re-discovered the discussion at https://discourse.ros.org/t/ros2-and-... Although I have to say that at is kind of a bummer to not being able to smoothly communicate with existing DDS Systems.

jochen.mueck gravatar image jochen.mueck  ( 2017-09-26 10:53:44 -0600 )edit

Both systems are able to "smoothly" communicate. For your use case you would need to generate .msg files from .idl files which nobody has implemented. I think nobody has done that since there are cases where that transformation isn't possible since IDL supports more features than .msg.

Dirk Thomas gravatar image Dirk Thomas  ( 2017-09-26 11:31:16 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-09-26 08:17:32 -0600

Seen: 650 times

Last updated: Sep 26 '17