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 5 years have passed since last update.

ROS2環境のDockerコンテナでのVSCode Remote開発

0
Posted at

VSCodeでリモート開発しようとすると,インテリセンスが機能せず不便だったので調べてみた.

インテリセンスを有効にする方法

コンテナ上の開発フォルダの直下に以下のフォルダとファイルを書き込む.

.vscode/
 └ setting.json

setting.jsonファイルに,以下の内容を書き込む.

{
    "python.autoComplete.extraPaths": [
        "/opt/ros/foxy/lib/python3.8/site-packages/"
    ]
}

ここで,foxyの部分はROSのディストリビューションに応じて変更し,python3.8の部分もPythonのバージョンに応じて変更する.

これで,ROSに関するライブラリに対してパスが通り,インテリセンスが機能するようになる.

記事を書くのに参考にしたページ

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?