3
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 1 year has passed since last update.

colcon build中にubuntuデスクトップがフリーズするときの対処方法 ROS2

Last updated at Posted at 2021-06-19

ラズパイなどのメモリの少ないPCでROS2を使っていて、SLAMなどの重いパッケージをcolcon build する際に画面がフリーズすることがあります。

その時の対応方法のメモ。

MAKEFLAGS環境変数を設定する

colcon build前にMAKEFLAGS環境変数で並列処理する数を指定

cd ~/ros2_ws
MAKEFLAGS=-j1
colcon build

colcon buildのオプションを使用する

colcon buildの--parallel-workersオプションで同時にビルドするパッケージ数を指定

cd ~/ros2_ws
colcon build --parallel-workers 1

メモリのSWAP領域を増やす

参考

colconビルドで便利なオプション

3
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
3
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?