2
2

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 3 years have passed since last update.

OhoAdvent Calendar 2019

Day 12

ROSをUnityとつなぐ その2 ROS#を使う

Last updated at Posted at 2019-12-15

ROS#をセットアップする

まず、Unityは2019.3以降が必要。
今回は、2019.3.0f3を使用した。

AssetStoreから、ROS#で検索して出てくるので、ダウンロードしてインポート。
適当なシーンで、空のGameObjectを作成して、RosConnector.csをアタッチする。
サーバーのアドレスをプロパティに設定する。

20191216_rosunity.PNG

これで実行すると、サーバー側につなぎに行くので、以下のようなログが出ている。

2019-12-15 17:27:43+0000 [-] [INFO] [1576430863.775880]: Client connected.  1 clients total.
2019-12-15 17:27:46+0000 [-] [INFO] [1576430866.393603]: Client disconnected. 0 clients total.

うまくいった。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?