Code Monkey home page Code Monkey logo

cri_dobot's Introduction

Common Robot Interface (Wrapper for dobot magician)

Important Note: This is a dobot magician wrapper for the cri library from John Lloyd. It enables use of the cri library for the dobot magician robot arm. The wrapper is compatible with:

  • dobot magician firmware version 3.7.0
  • the latest [as of Feb 2020 v0.0.1] version of the cri library.

Prerequisites

The cri library must be installed to use this wrapper: https://github.com/jlloyd237/cri

I recommend installing this libary by navigating to the directory of 'setup.py' in a terminal window, then running the command:

pip install -e .

This will create an editable install of the cri library

Installation (part 1)

To install the package on Windows, OS X or Linux, clone the repository and use the 'pip install' command inside the repository root directory.

It is suggested to do this in a virtual environment by:

(1) create a virtual environment (e.g. using venv or conda). (2) open a terminal window with the virtual environment activated (3) navigate the the local directory of dobot_tactile_toolbox setup.py using the 'cd' command (2) Then run the following command

pip install -e .

Installation (part 2) of .dll for use with dobot magician arm:

For both windows and mac you should not need to do anything with the dll. The 64 bit dlls are packaged with cri_dobot. If you get an error message relating to the dll library try the steps below. Please reach out for help if this isn't working! Please also note that currently dobot have yet to supply the .so files for this verision of firmware, so this is untested on a linux system.

To use the dobot dll (which is a prerequisite) follow these instructions

  • [A] use the correct DLL from dobot (64 bit or 32 bit), and
  • [B] put the dll in either
    • \cri_dobot\dobotMagician\dll_files
    • or the system root directory, for example on windows this is (%SystemRoot%\system32)

You can find the dll at (https://www.dobot.cc/downloadcenter/dobot-magician.html) - Look for Development Protocol -> 'DobotDemovX.X.zip' - Ensure you extract the correct DLL for your system (windows/linux/mac) (x64/x32)

Usage

  • For examples of basic usage with cri library see script in tests folder

Tool center point

With a Tactip attachment the corresponding Tool Center Point using cri_dobot is = (59.7, 0, 0, 0, 0, 0). The origin is not well described in the dobot magician user documentation, but is instead shown in the image below. The working which shows how this is infered is defined by the the point described in the excel sheet in the \images directory

tcp_origin.jpg

Bug list

(1) Tool Center Point [Now squished]

For info only: TCP bug has been rectified by dobot in the new firmware version. TCP is now working correctly!

cri_dobot's People

Contributors

jlloyd237 avatar meisben avatar tebazil12 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

tebazil12

cri_dobot's Issues

segfault in libDobotDll.so.1.0.0 when running tests/dobot_robot_test.py on linux

Judging from native library update dates segfault was probably caused by not updating libDobotDll.so.1.0.0 file during last update cycle.

dmesg output:

[330658.149918] QThread[11550]: segfault at 7f030d0c9dfe ip 00007f02ed9e5084 sp 00007f02feab48f0 error 7 in libDobotDll.so.1.0.0[7f02ed9c0000+2f000]
[330658.149926] Code: fe ff ff 0f 1f 00 48 b8 44 6f 62 6f 74 53 65 72 41 c7 47 08 69 61 6c 00 49 89 07 48 8b 44 24 48 48 85 c0 74 0f ba 30 00 00 00 <c7> 00 30 2e 30 2e 66 89 50 04 4c 89 f7 e8 6a 58 fe ff 48 8b 7c 24

TO REPRODUCE SEGFAULT COUNSULT RELATED ISSUE REPORTED HERE.

UPDATE

Solved by following THESE INSRUCTIONS

segfault with every setter function

I tried so many libraries and wrapper for the dobot, but always end with seg faults. I managed to connect to the dobot with this wrapper and can use some getter functions. But as soon as i start e.g. set_home_cmd i get an seg fault.

I'm using Ubuntu 20.04 on an Intel NUC.

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.