LoginSignup
1
0

More than 1 year has passed since last update.

interactivemarkerでstlを表示する

Posted at

概要

interactivemaekerをrvizで表示させる際に、基本図形ではなく、任意のSTLを表示させました。.

実行環境

Soft and Hard バージョン
Ubuntu 20.04
ROS noetic

説明

interactivemarkerでstlを表示させる際には、markerクラスのメンバにstlを使う設定を指定します。
package nameには、stlがあるパッケージ名、stl directory nameはstlがあるディレクトリ名、stl file nameにはstlのファイル名を指定します。

marker = Marker()

# mesh fileを使用する設定にする
marker.type = Marker.MESH_RESOURCE
# 表示させるmesh fileのpathを指定する
marker.mesh_resource = "package://(package name)/ (stl directory name) / (stl file name )

こちらのリポジトリから試すことが可能です.

test.png

参考

1
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
1
0