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

How to convert a ROS message file to an IDL file?

asked 2022-05-18 10:02:51 -0600

StewartHemm74 gravatar image

updated 2022-05-18 10:44:30 -0600

What is the terminal command to convert a ros message file to an idl file?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
5

answered 2022-05-18 19:02:35 -0600

aprotyas gravatar image

The rosidl_adapter core package exposes both scripts and an API to perform these conversions. For your case, use the msg2idl.py script:

ros2 run rosidl_adapter msg2idl.py /path/to/msg/file

edit flag offensive delete link more

Comments

Thank you!

StewartHemm74 gravatar image StewartHemm74  ( 2022-05-19 12:25:06 -0600 )edit
0

answered 2022-05-18 12:15:36 -0600

msmcconnell gravatar image

updated 2022-05-18 12:16:08 -0600

I'm not sure there is a terminal command, however, on build ROS will actually do this for you since its one of the first steps in the message compilation process. Build and install your ROS2 message package and you can find the generated .idl files alongside the original .msg files at

install/<my msgs package>/share/<my msgs package>/msg/<my msg>.idl
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2022-05-18 10:02:51 -0600

Seen: 551 times

Last updated: May 18 '22