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

[ROS2]missing <buildtool_depend>ament_python</buildtool_depend> in package.xml

asked 2020-08-05 03:19:23 -0500

sylvia20 gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-08-21 03:22:27 -0500

ipa-jba gravatar image

No. According to https://github.com/ros2/ros2_document... you are fine. (Actually rosdep install ... fails if you would have the <buildtool_depend> specified

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-05 03:19:23 -0500

Seen: 648 times

Last updated: Aug 21 '20