Giter Club home page Giter Club logo

arm-control's Introduction

About The Arm-Control Repo

This repo is designed for control Kinova Jaco2 remotely at any platform.

The server end is running ROS Indigo on Ubuntu 14.04 since the official kinova package supports only upto ROS Indigo, and ROS Indigo only could be installed on Ubuntu 14.04.

The package that we use to communicate is rosbridge. To have a good communication, you may need to use another repo that I mirrored from official package.

Contents

  0 General Environment Requirement

      0.1 ROS End

      0.2 Remote End

  1 Run Order

      1.1 ROS End

      1.2 Remote End

  2 Useful Pages for Rosbridge

  3 Todo List

0 General Environment Requirement

0.1 ROS End

On ROS end, the Kinova official package kinova-ros is tested in ROS Indigo. Therefore, you need to have the ROS Indigo installed. Although, I believe, there is a way to run this package on ROS Kinect or even higher, I didn't give it a try due to limited time.

Once you have ROS Indigo fully installed, you can follow the instruction on that github page to run real robot control or simulation in gazebo or moveit.

Once you are totally familiar with it, you need to clone a mirrored repo here. The License issue should be dealed with.

Please don't put the original kinova-ros and the mirrored one in the same catkin_ws/src/, becasue I did not change the node's names, and it will cause some complie issues.

Back to Top

0.2 Remote End

If you want to use the web page that is based on javascript, there is nothing you need to prepare. Oh yes, maybe a Firefox or Chrome would be better for debug.

For the use of python script, you need to use pip install roslibpy to obtain that module. See here to see the details of this module.

Back to Top

1 Run Order

1.1 ROS End

  1. Enter command in terminal as follow: roslaunch arm-control sar_rosbridge_websocket.launch to start websocket.

  2. Enter command in terminal as follow: roslaunch arm-control virtual_j2n6s300.launch to start RViz.

  3. Enter command in terminal as follow: roslaunch arm-control moveit_remote.launch to start movement. And if you want to control through end-effector position, please use roslaunch arm-control moveit_remote_xyz.launch instead.

Back to Top

1.2 Remote End

1.2.1 For JS html page control

Note: In JS html page, you couldn't read file directly while you are running some scripts due to web browser security issue.

  1. Open "arm-control/websocket/html/communicate_w_kinova.html" to connect with ROS end. And if you want to control through end-effector position, please use "arm-control/websocket/html/communicate_w_kinova_xyz.html"

  2. Edit the values, then push it to control. or just slide the range control to control it in real time.

1.2.2 For direct files reading and writting

Note: Although the I should inclued a jupyter notebook script doing the same job to help people to have a better understanding of the code, there is something going wrong with my jupyter kernel in the Ubuntu 14.04. It might be done in the future.

  1. Install roslibpy module by pip install roslibpy

  2. Run the python script inside "/websocket/py/" to communicate.

Back to Top

2 Useful Pages for Rosbridge

http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality#CA-3bc839e9e2d3c2cac3f7fabffacfbda3d5c050ae_7

http://wiki.ros.org/ROS/Tutorials/UnderstandingServicesParams

https://answers.ros.org/question/273480/publish-and-subscribe-array-of-vector-as-message/

http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29

https://answers.ros.org/question/250959/connecting-different-computers-via-rosbridge/

Back to Top

3 Todo List

  • Add end-effector coordinate control
  • Update initial position to "Starting Pose" in JS page
  • License issue with the kinova-ros pacakge
  • Complete constantly reading and writting files in py script.

Back to Top

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.