Coder Social home page Coder Social logo

meisben / dobot_magician_utilities Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 8 KB

Utility programs for the dobot magician robotic arm, written in python. Useful for setting up experiments

License: MIT License

Python 100.00%
dobot-magician cri-dobot python

dobot_magician_utilities's People

Contributors

meisben avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

vksharma17

dobot_magician_utilities's Issues

segfault in libDobotDll.so.1.0.0 when running move_to_pose.py

Getting following dmesg error when running move_to_pose.py from prebuilt container

[359942.902888] QThread[2080775]: segfault at 7facf91f4dfe ip 00007face5fc2084 sp 00007facd4bdb8f0 error 7 in libDobotDll.so.1.0.0[7face5f9d000+2f000]
[359942.902897] 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

Command to run container:

docker run -ti -v /dev:/dev -v /run/udev:/run/udev:ro --device-cgroup-rule='c 188:* rmw' meisben/dobot

docker usb device passthrough instructions

Docker image dockerfile:

ROM python:3.8-slim

RUN apt -y update
RUN apt -y install git python3-pyqt5 libqt5serialport5
RUN pip install frankx

RUN mkdir /root/workspace
WORKDIR /root/workspace

RUN git clone https://github.com/meisben/dobot_magician_utilities
RUN git clone https://github.com/jlloyd237/cri
RUN git clone https://github.com/meisben/cri_dobot

RUN pip install /root/workspace/dobot_magician_utilities
RUN pip install /root/workspace/cri
RUN pip install /root/workspace/cri_dobot

WORKDIR /root/workspace/dobot_magician_utilities/dobot_magician_utilities

CMD ["python", "move_to_pose.py"]

Output

CDobotConnector : QThread(0x55c86c8acfe0)
CDobotProtocol : QThread(0x55c86c7bb6b0)
CDobotCommunicator : QThread(0x55c86c7bb6d0)
Segmentation fault (core dumped)

Host env:

  • OS: Centos 8 Stream
  • cpu: Architecture: x86_64, op-modes: 32-bit, 64-bit, Model name: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz

Update:

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

Segfault reproduced directly on different linux host (no docker container):

  • OS: Ubuntu 18.04.5 LTS
  • cpu: Architecture: x86_64, op-modes: 32-bit, 64-bit, AMD Ryzen 5 3600X 6-Core Processor

Tested on Windows PC - dobot worked as expected.

UPDATE

Solved by following THESE INSRUCTIONS

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.