Giter VIP home page Giter VIP logo

dynamixel-mikataarm-'s Introduction

概要

mikata-armのROSパッケージ 既存のmikata-armの6軸のパッケージMikata-arm Ros パッケージは Gazebo+Moveit!は可能だが、moveit_commanderを用いたプログラムを用いるとうまく動作しないことがわかった

よって、ここのリポジトリを用いることで、シミュレーションでも実機環境でも動作可能にできるようにパッケージを変更した

簡易的ではあるが、サンプルコードも入っているので実際に試してみると動作確認できると思われる

インストール方法

上記のMikata-arm Ros パッケージを参考にすればよいが、下記までgit clone すること

   $ git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git
   $ git clone https://github.com/ROBOTIS-GIT/dynamixel-workbench.git
   $ git clone https://github.com/ROBOTIS-GIT/dynamixel-workbench-msgs.git
   $ git clone https://github.com/ROBOTIS-GIT/robotis_manipulator.git
   $ git clone https://github.com/ROBOTIS-GIT/open_manipulator_msgs.git
    $ cd ~/catkin_ws/src
    $ git clone https://github.com/Ryusei-Tomikawa/DYNAMIXEL-MikataArm-
    $ cd ..
    $ catkin build

これで一応環境開発は整うはず

動作方法

基本的にはOpen_manipulatorと同じなので。e-Manualを参考にするようにe-Manual

これはシミュレーション環境で行う場合のコマンドである

  $ roslaunch open_manipulator_controller open_manipulator_controller.launch use_gazebo:=true use_moveit:=true

これは、実機環境で行う場合のコマンドである

 $ sudo chmod 666 /dev/ttyUSB0
 $ roslaunch open_manipulator_controller open_manipulator_controller.launch use_moveit:=true

USBの実行権限に関してのPathは適宜変更すること

サンプルコードを動かすと、簡単なPick and Place動作を行う(グリッパー部分は、現状サービスで実装してあるが、本当はplanning nameのところにgripperを用いて、gripper controllerを使って開閉を行うのが普通なはず...?) シミュレーション環境や実機環境どちらで動かしてもよいので、下記のコマンドで動作確認を行うとよい

  $ rosrun open_manipulator_moveit open_manipulator.py

なぜうまくmoveit_comannderが動かないのか?

open_manipulator_controller.launchを見てもらえばわかるが、既存のmikata-armのパッケージには、なぜが ns="mikata-arm"がgazeboやMoveit!を立ち上げるファイルに書かれている. namespaceが入ってしまうと、トピック名やサービス名全部が変わってしまい、joint_state_controllerやrobot_state_publisherの部分でうまくトピックを受け取ることができなくなり、 tfを発行できなくなることにより、Rvizと実機のロボットが対応していないことになっている.

例: 既存のパッケージを用いると、/joint_statesのトピック名の部分が、/mikata-arm/joint_statesとなっている. こうなってしまうと,robot_state_publisherでは,subscriberでは/joint_states というトピック名なので、受け取ることができない→したがって、namespaceをいらないところは消す必要があった.

dynamixel-mikataarm-'s People

Contributors

ryusei-tomikawa avatar

Stargazers

 avatar

Watchers

 avatar  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.