Ask Your Question

How can i generate ROS2 .idl files ?

asked 2018-04-10 09:09:40 -0500

aks gravatar image

I am not clear with my application. Maybe I am totally wrong.

Is it possible to create .idl files from the ROS2 talker-listener demo ?

They are using the standard message type as string. When I run this demo, are the .idl files generated or do i need to first write the custom messages and then convert it into .idl files ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-10 09:16:22 -0500

Dirk Thomas gravatar image

Currently you just create .msg files (similar as in ROS 1 except that you can also define default values for primitive types). When you build your package the .idl file specific to the DDS vendor is being generated and also installed. You will find it in <install>/share/<pkgname>/msg/<dds-vendor>.

edit flag offensive delete link more


just a following question. how do i create a new ROS2 package from scratch ? Similar to ROS but only using ament_cmake instead of catkin_make ?

aks gravatar imageaks ( 2018-04-10 09:27:22 -0500 )edit

Basically yes, but there are e.g. differences in your CMake code. You might want to check the tutorials ( ) and examples ( ).

Dirk Thomas gravatar imageDirk Thomas ( 2018-04-10 09:29:57 -0500 )edit

The build system section of the migration guide can be helpful as well

marguedas gravatar imagemarguedas ( 2018-04-10 11:31:16 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-04-10 09:09:40 -0500

Seen: 180 times

Last updated: Apr 10 '18