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

How can i generate ROS2 .idl files ?

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

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
1

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

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

Comments

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 image aks  ( 2018-04-10 09:27:22 -0600 )edit

Basically yes, but there are e.g. differences in your CMake code. You might want to check the tutorials ( https://github.com/ros2/ros2/wiki/Tut... ) and examples ( https://github.com/ros2/examples/ ).

Dirk Thomas gravatar image Dirk Thomas  ( 2018-04-10 09:29:57 -0600 )edit

The build system section of the migration guide can be helpful as well https://github.com/ros2/ros2/wiki/Mig...

marguedas gravatar image marguedas  ( 2018-04-10 11:31:16 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 814 times

Last updated: Apr 10 '18