Custom Interface error of Cmake file

Error found in Colcon Build of Cmake file. I do see any errors from the reference



file list showing executable files

Hi @ROxX ,

The error clearly states that you should include the following line in your package.xml file:

<member_of_group>rosidl_interface_packages</member_of_group>

Refer to the course instructions on how to create a custom interfaces to know where to add the above mentioned line.

Your package.xml file should include the above line as shown below:
Between <depend> and <test_depend> tags.

<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
  <name>services_quiz_srv</name>
  <version>0.0.0</version>
  <description>TODO: Package description</description>
  <maintainer email="user@todo.todo">user</maintainer>
  <license>TODO: License declaration</license>

  <buildtool_depend>ament_cmake</buildtool_depend>

  <depend>rclcpp</depend>
  <depend>std_msgs</depend>
  <depend>std_srvs</depend>

  <build_depend>rosidl_default_generators</build_depend>
  <exec_depend>rosidl_default_runtime</exec_depend>
  <member_of_group>rosidl_interface_packages</member_of_group>

  <test_depend>ament_lint_auto</test_depend>
  <test_depend>ament_lint_common</test_depend>

  <export>
    <build_type>ament_cmake</build_type>
  </export>
</package>

This should solve your issue. let me know if this does not fix your issue.

Regards,
Girish

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.