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

Jeremy_z's profile - activity

2021-06-06 10:29:16 -0500 received badge  Famous Question (source)
2021-06-06 10:29:16 -0500 received badge  Notable Question (source)
2020-08-13 15:14:38 -0500 marked best answer How to pass constants using a .idl file directly ?

I'm using ros2 eloquent and trying to write a .idl message directly so that it could be compatible with Fast-DDS; I'm trying to pass constants in the .idl file. The file I wrote looks like

module package_name{
    module idl {
        struct exmaple_msg{
            // constants
           uint32 CONSTANT = 0;
       };
   };
};

I failed to pass it through rosidl_generate_interfaces; Could you give an correct syntax to write it and how to use it later ?

2020-08-13 15:14:38 -0500 received badge  Scholar (source)
2020-08-13 15:14:08 -0500 received badge  Supporter (source)
2020-08-13 15:14:05 -0500 received badge  Popular Question (source)
2020-08-06 12:19:13 -0500 received badge  Enthusiast
2020-07-09 10:09:21 -0500 asked a question How to pass constants using a .idl file directly ?

How to pass constants using a .idl file directly ? I'm using ros2 eloquent and trying to write a .idl message directly s