LoginSignup
9
7

More than 3 years have passed since last update.

【6軸ロボットアーム】myCobot動かし方②(moveit編)

Last updated at Posted at 2021-02-06

myCobot Moveit編

さあいきまっしょう!今回もmyCobot特集です。
前回はこちら。
【6軸ロボットアーム】myCobot動かし方①(ロボット到着〜ROSで動かすまで)

今回の内容は・・・Moveit!
●Moveit
Moveit!とはIK(逆運動学)や軌道計画の等のタスクを簡単に実現できるライブラリです。
実際に使うと以下のようなことができます。

●とりあえず説明よりもコード見せろと言う方はこちらへ。

自宅でロボットアームが動くのは面白いですね!!!!

実装

なんちゃってros controlを実装しました。

Hardware InterfacesとControllersあたりを理解する必要がありました。
詳細はこちらへ↓
http://wiki.ros.org/ja/ros_control

使い方

準備

以下2つをclone or forkしてください。 PRもあると嬉しいです!!!!!
mycobot_ros
mycobot_controller

cd your_ws/src
git clone https://github.com/mertcookimg/mycobot_ros.git
git clone https://github.com/mertcookimg/mycobot_controller.git
catkin build

Moveit使い方

USBケーブルつないで以下を実行してください。

sudo chmod 666 /dev/ttyUSB0
roslaunch mycobot_controller demo_mycobot.launch

以下の写真のようなロボットが現れると思います。

moveit_q1.png

参考サイト

参考になりすぎました!

nisshan にっしゃんさん
https://qiita.com/nisshan_/items/de06464dbac84408d188
https://qiita.com/nisshan_/items/304cc8e1a2da7c2bebad
https://github.com/nisshan-x/mycobot_moveit

次はハンドとかかも。。。

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