Giter VIP home page Giter VIP logo

tcp-ip-python's Introduction

What's new in this fork

  • 30004 port realtime feedback supported
    • with m_actual supported
  • multiple commands supported
    • GetSixForceData/GetAngle/GetPose added
    • GetTraceStartPose/GetPathStartPose/HandleTrajPoints/HandleTrajPoints_state added
    • PositiveSolution/InverseSolution pending

先读我

1. 运行 Demo 需以下步骤

  1. 电脑可用网线连接控制器的网口,然后设置固定 IP,与控制器 IP 在同一网段下。也可无线连接控制器。

    • 四轴机器人(如MG400等) 有线连接时连接LAN1:ip为192.168.1.6 , 有线连接时连接LAN2:ip为192.168.2.6, 无线连接:ip为192.168.9.1
    • 六轴机器人(如CR系列等) 有线连接:ip为192.168.5.1 , 无线连接:ip为192.168.1.6
  2. 尝试 ping 通控制器 IP,确保在同一网段下。

2. 文件说明

  1. demo.py: 程序运行入口。

  2. dobot_api.py:根据机器人TCP/IP远程控制方案(https://github.com/Dobot-Arm/TCP-IP-Protocol)自行修改。

3. 运行Demo

方法一: 需要检测搜索到动态库,需在VsCode中打开整个目录,再直接运行 demo.py。

方法二: 需要检测搜索到动态库,需在PyCharm中打开整个目录,再直接运行 demo.py。

4. 测试环境

  • language: Python 3.7 64-bit
  • os: Windows 10 64-bit

5.控制器版本

可以使用TCP/IP协议的控制器版本如下:

  • MG400: 1.5.4.0 及以上
  • CR: 3.5.1.9 及以上

Readme

1. The following steps are required to run Demo

  1. The computer can be connected to the network port of the controller with a network cable, and then set a fixed IP, which is in the same network segment as the controller IP. The controller can also be connected wirelessly.

    • Four-axis robots (such as MG400, etc.) When wired connection is connected to LAN1: ip is 192.168.1.6, when wired connection is connected to LAN2: ip is 192.168.2.6, wireless connection: ip is 192.168.9.1 .
    • Six-axis robot (such as CR series, etc.) Wired connection: ip is 192.168.5.1 ,Wireless connection: ip is 192.168.1.6 .
  2. Try to ping the controller IP to make sure it is in the same network segment.

2. File description

  1. demo.py: The entry point of the program.

  2. dobot_api.py: According to the robot TCP/IP remote control scheme (https://github.com/Dobot-Arm/TCP-IP-Protocol), modify it by yourself.

3. Run Demo

Method 1: If you need to detect and search the dynamic library, you need to open the entire directory in VsCode, and then run demo.py directly.

Method 2: To detect and search the dynamic library, you need to open the entire directory in PyCharm, and then run demo.py directly.

4. Test environment

  • language: Python 3.7 64-bit
  • os: Windows 10 64-bit

5. Controller version

The controller versions that can use the TCP/IP protocol are as follows:

  • MG400: 1.5.4.0 and above
  • CR: 3.5.1.9 and above

tcp-ip-python's People

Contributors

nirviaje avatar dobot-arm avatar huxuanxian avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

yinchinan010

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.