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

ROS2 conversion of .msg files into .idl files

asked 2018-06-04 04:44:29 -0500

aks gravatar image

updated 2018-06-04 04:57:52 -0500

tfoote gravatar image

I have currently a faint understanding of the ROS2 system. I read that in ROS2 the msg files are converted into idl files before publishing and then these idl files are used for publishing and subscribing. In this image, how can i understand the circled part, ROS to DDS conversion functions...shouldnt there be an arrow as shown ? e.g. with help of these conversion functions, idl files are generated from msg files ?

conversion

I need to somehow access these idl or msg files and perform read and write operations ? Is there a possibility that i can do that ? Are there some examples ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-07-05 17:48:18 -0500

Dirk Thomas gravatar image

The diagram only indicates how the information flows. The conversion functions mapping ROS messages to DDS messages are being generated for each DDS implementation (using their native vendor-specific DDS types). As input these templates only need the message definitions - it doesn't need any information from the .idl files - since those are generated from the message definitions themselves they don't contain any more information.

For the generated source code there is a dependency from the conversion functions on the DDS message classes as they are in e.g. C++ being included.

I am not sure what "read and write operations" you are intending to do. You will find the .idl files after building a package under <install>/share/<pkgname>/msg|srv/dds_connext|dds_opensplice. They are being generated and installed by the rosidl_generator_dds_idl package.

edit flag offensive delete link more

Comments

Could explain how can I use rosidl_generator_dds_idl packages? I want to convert image.msg to image.idl Thanks and look forward to hearing from you

golizheh_66 gravatar image golizheh_66  ( 2019-11-01 08:15:30 -0500 )edit
1

You don't need to invoke rosidl_generator_dds_idl directly. It is being trigger implicitly when your message package calls rosidl_generate_interfaces().

Dirk Thomas gravatar image Dirk Thomas  ( 2019-11-03 00:11:36 -0500 )edit

Question Tools

3 followers

Stats

Asked: 2018-06-04 04:44:29 -0500

Seen: 1,520 times

Last updated: Jul 05 '18