LoginSignup
0
0

More than 5 years have passed since last update.

rqtのpluginでステートマシンのグラフを表示する

Last updated at Posted at 2019-01-10

はじめに

ROSでステートマシンを作るのにsmachライブラリが使用される。

状態を可視化するためにsmach_viwer
がある。

smach_viewerは独立した画面で起動してくるが、rqt内で呼びたくなったので、rqt内で動かす手順を解説する。

rqt_smach

rqt_smachというパッケージで実現できる。

インストール方法

gistの解説の通りにインストールする。

使っているcatkin workspaceで以下を実行する。
ここでは、~/catkin_wsだとすると

cd ~/catkin_ws/src
git clone https://github.com/matt3o/xdot.git
git clone https://github.com/jbohren/executive_smach.git
git clone https://github.com/matt3o/executive_smach_visualization.git
cd ~/catkin_ws
catkin_make

これで、rqt_smachが使用できるようになっています。

使い方

  1. 直接rqt_smachを起動する
rosrun rqt_smach rqt_smach
  1. rqtを起動してから、プラグインを選択する(画像参照)
rqt
plugins→control→smach

rqt_smach

0
0
1

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