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?

URDFをVS Codeでプレビュー表示する方法

0
Posted at

はじめに

ロボットの構造を記述するファイルであるURDF(Unified Robot Description Format)をVisual Studio Code(以下、VS Code)でプレビュー表示する方法を紹介する。

動作確認環境

方法

VS Code拡張機能のインストール

拡張機能のタブから、「URDF Visualizer」を検索して、インストールする。

image.png

URDFの表示

表示したいURDFファイル(またはxacroファイル)をVS Codeで開き、右上の「Preview URDF/Xacro」アイコンをクリックする。

image.png

URDFのプレビューが表示される(以下はUnitree G1のURDFの例)。

image.png

各種設定と操作

プレビュー画面左上にある「Control」や「Settings」メニューから、表示の切り替えやロボットの軸の操作などができる。

image.png

例えば、「Control」の「Show Link Frames」にチェックを入れると、各フレームの座標軸が表示される。

image.png

また、「Control」にあるスライドバーを操作することで、各軸を動かすことができる。その他の機能の詳細は、公式リポジトリを参照。

image.png

まとめ

ロボットの構造を記述するファイルであるURDF(Unified Robot Description Format)をVisual Studio Code(以下、VS Code)でプレビュー表示する方法を紹介した。ロボットの構造を手軽に確認したいときに便利なツールである。簡単に導入でき、機能も豊富で現在も活発に開発されているため、ぜひ活用してみてほしい。

参考

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?