LoginSignup
5
2

More than 3 years have passed since last update.

Ubuntu 18.04 に ROS2 のIDE開発環境構築 ROS Qt Creator Plug-in

Last updated at Posted at 2019-09-26

ROS2 のIDE開発環境構築 ROS Qt Creator Plug-inの設定を纏めます。

Qt Creatorのインストール

  1. QTの左メニュー「Qt Creator」リンクより最新版(現在:4.10.0)をダウロード
$ chmod 755 qt-creator-opensource-linux-x86_64-4.10.0.run
$ ./qt-creator-opensource-linux-x86_64-4.10.0.run

ROS Plug-inのインストール

  1. ROS Qt Creator Plug-inリンクより最新版をダウロード
$ chmod 755 qtcreator-ros-bionic-latest-online-installer.run
$ ./qtcreator-ros-bionic-latest-online-installer.run

image.png

image.png

ROS Plug-inの設定

Debug許可

$ sudo gedit /etc/sysctl.d/10-ptrace.conf
change kernel.yama.ptrace_scope to 0
$ sudo systemctl restart procps.service

Syntax Color Schemes設定

Tools > Options > Text Editor > Font & Colors
Monokai(1)を選択

ROS Code Format設定

Tools > Options > C++ > code style
ROSを選択

ROS 設定

オプション > ROS
Set Build System to Colcon
image.png

Import a ROS Workspace

New Project > Other Projects > ROS Workspace
image.png

Set Build System to colcon for ros2
image.png

image.png

ビルド設定

プロジェクト > Build & Run > Build
image.png

プロジェクト > Build & Run > Run
image.png

5
2
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
5
2