Giter Club home page Giter Club logo

mycobot_unity_ros_sharp's Introduction

myCobotをMoveItで動かしながらUnityで可視化する

img

概要

  • MoveItでパスプランニングを実施。
  • 実機に動作を流す。
  • joint_statesを拾ってUnityで可視化。

検証環境

Ubuntu

  • Ubuntu 18.04(古くてごめんなさい)
  • ROS Melodic(古くてごめんなさい)

Windows

  • Windows 10
  • Unity 2020.3.0f1

セットアップ

Ubuntu

  • ROSがインストールされていることが前提。
  • 追加パッケージとして、以下をインストールする。
sudo apt-get install ros-melodic-rosbridge-server
  • myCobotはMoveitでUnity関係なく動作できる状態であること。

参考サイト(先人の方がとても良い記事を書いてくれているので参考にする)

https://qiita.com/nisshan_/items/304cc8e1a2da7c2bebad
https://qiita.com/MeRT/items/77366486b120fa4a18c6

Windows(Ubuntuでもいい)

Unityがインストールされている前提。

このリポジトリをClone。

git clone https://github.com/Ry0/mycobot_unity_ros_sharp.git

ROS#公式リポジトリのRosSharpフォルダをAssetフォルダにまるっとコピーする。

img

動作を確認したときのcommit IDはf469726

コピー作業が完了したらUnity Hub上で、クローンしてきたフォルダを選択してリストに追加する。

img

追加後、プロジェクトを開く。

動作させる

Ubuntu

myCobotがMoveitのGUIを使って動かせる状態にしておく。

このlaunchでunityとの接続を実施。

roslaunch rosbridge_server rosbridge_websocket.launch

Unity側でROS Coreが立ち上がっているIPアドレスを指定する箇所があるので、そこは環境に応じて変更する。

img

設定が完了したプレイボタンを押す。

デモ

img

参考ページ

mycobot_unity_ros_sharp's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.