C++
<?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>パッケージ名</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="mailアドレス@gmail.com">作成者名</maintainer>
<license>TODO: License declaration</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<!--使用するパッケージ-->
<depend>rclcpp</depend>
<depend>rclcpp_components</depend>
<depend>std_msgs</depend>
<!--おまじない-->
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<!--ビルド設定等-->
<export>
<build_type>ament_cmake</build_type>
<!--Gazeboで使用するメッシュファイル等のファイルパスを記載-->
<!--Gazeboで自作フィールドを使わない場合は不要-->
<gazebo_ros gazebo_media_path="${prefix}/field" />
<gazebo_ros gazebo_model_path="${prefix}/field"/>
</export>
</package>
python
<?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>パッケージ名</name>
<version>0.0.0</version>
<description>TODO: Package description</description>
<maintainer email="mailアドレス@gmail.com">作成者名</maintainer>
<license>TODO: License declaration</license>
<!--余計なものは書かない-->
<!--ビルド設定等-->
<export>
<build_type>ament_python</build_type>
</export>
</package>
Footer