6
1

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.

ROS2のsetup.*とlocal_setup.*

Last updated at Posted at 2021-07-24

ROS2関係トップページへ

まだメモ程度.情報が集まり次第,随時更新.

setup.*とlocal_setup.*の違い

foxyまでのtutorialではcolcon build後行うのは,. install/setup.bash,galacticでのtutorialではcolcon buld後行うのは,. install/local_setup.bashとなっている.違いは?
頭にいれておくのはoverlayによってワークスペースを切り替えて使用するのが当たり前となっていること.

setup.*

現在のワークスペース以外の設定を読み込む.ament indexのparent_prefixp_pathのリストを読み込んで設定を行った後,自分のところの設定(local_setup.*)を行う.

一方でチュートリアルのNoteでは以下のように書かれている.

Sourcing the local_setup of the overlay will only add the packages available in the overlay to your environment. setup sources the overlay as well as the underlay it was created in, allowing you to utilize both workspaces.

So, sourcing your main ROS 2 installation’s setup and then the dev_ws overlay’s local_setup, like you just did, is the same as just sourcing dev_ws’s setup, because that includes the environment of the underlay it was created in.

こちらの意味だと,ローカルのsetup.bash = /opt/ros/<distro>/setup.bash + ローカルのlocal_setup.bash.

local_setup.*

自分のところの設定を行う.現在の場所のpackagesのリストを読み込んで設定を行う.

参考

6
1
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
6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?