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

sylvia20's profile - activity

2021-03-20 06:52:00 -0500 marked best answer [ROS2]missing <buildtool_depend>ament_python</buildtool_depend> in package.xml

I followed the tutorial:Creating your first ROS 2 package
I entered the following command in my terminal:

ros2 pkg create --build-type ament_python test_pkg_py

I opened package.xmlthat ros2 pkg create automatically generated:

<?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>pubsub_py</name>
  <version>0.0.0</version>
  <description>TODO: Package description</description>
  <maintainer email="sylvia@todo.todo">sylvia</maintainer>
  <license>TODO: License declaration</license>

  <test_depend>ament_copyright</test_depend>
  <test_depend>ament_flake8</test_depend>
  <test_depend>ament_pep257</test_depend>
  <test_depend>python3-pytest</test_depend>

  <export>
    <build_type>ament_python</build_type>
  </export>
</package>

The content is different from tutorial:Creating your first ROS 2 package
My package.xml misses the following command:

<buildtool_depend>ament_python</buildtool_depend>

Did I miss any dependecies? ROS environment: Foxy OS: Ubuntu20.04

2021-03-20 06:50:45 -0500 received badge  Student (source)
2020-12-23 15:42:54 -0500 received badge  Famous Question (source)
2020-11-05 11:59:42 -0500 received badge  Notable Question (source)
2020-08-31 23:10:54 -0500 received badge  Popular Question (source)
2020-08-17 00:26:15 -0500 received badge  Enthusiast
2020-08-05 18:03:11 -0500 asked a question [ROS2]missing <buildtool_depend>ament_python</buildtool_depend> in package.xml

[ROS2]missing <buildtool_depend>ament_python</buildtool_depend> in package.xml I followed the tutorial:Creat