0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ROS×PCL ROS Create package

Last updated at Posted at 2021-10-26

今回はROSのパッケージを作成していきます!

Requirement

Catkin packageを作るとできるファイル

  • package.xml:そのパッケージのメタ情報を記載するファイル
  • CMakeLists.txt: catkin buildに必要

Create package

まずはworkspaceのソースフォルダに移動します

cd ~/catkin_ws/src

次にcatkin_create_pkgを使って新たなパッケージを作成します

catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

ここで,catkin_create_pkgはこんな感じで使えますってのを示しときます

catkin_create_pkg <name> <depends>

ここでnameはパッケージの名前,dependsは依存しているライブラリです.さっきのコードで例えるとこんな感じになってます

  • package name: beginner_tutorials
  • depending liblaries: std_msgs, rospy, roscpp

以上でパッケージ作成は完了です!
おつです!

next

previous

references

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?