Run Rotrics DexArm with python API

Now that we have Rotrics DexArm, let's run it with the python API. I use Rotrics Studio to adjust the arm position.

environment

Get the API

I got pydexarm.py from the Rotrics Repository and placed it in my working directory.

move

Describe the operation with reference to pydexarm.py and ʻexample.py. In the argument of Dexarm`, enter the assigned port. You can find the port on the Rotrics Studio connection screen or in Device Manager's USB serial device.

demo.py


from pydexarm import Dexarm


def main():
    dexarm = Dexarm("COM3")  #Connected port number
    dexarm.go_home()

    dexarm.move_to(350, 0, 0)
    dexarm.move_to(350, 0, -50)

    dexarm.soft_gripper_pick()

    dexarm.move_to(350, 0, 100)
    dexarm.move_to(350, 0, -50)

    dexarm.soft_gripper_nature()

    dexarm.move_to(350, 0, 0)
    dexarm.go_home()


if __name__ == "__main__":
    main()

Execution result

It works like this

Recommended Posts

Run Rotrics DexArm with python API
Run Python with VBA
Run prepDE.py with python3
Run Blender with python
Run iperf with python
Run VMware vSphere 6 vSphere API with Python script (pyvmomi)
Use Trello API with python
Run Python with CloudFlash (arm926ej-s)
Let's run Excel with Python
Use Twitter API with Python
Web API with Python + Falcon
Run Label with tkinter [Python]
Play RocketChat with API / Python
Call the API with python3.
Use subsonic API with python3
Run DHT22 with RasPi + Python
Create Awaitable with Python / C API
Run mruby with Python or Blender
Quine Post with Qiita API (Python)
Run XGBoost with Cloud Dataflow (Python)
Hit the Etherpad-lite API with Python
[python] Read information with Redmine API
Run Aprili from Python with Orange
Run python3 Django1.9 with mod_wsgi (deploy)
Until you run python with apache
Run Ansible from Python using API
Collecting information from Twitter with Python (Twitter API)
Run servo with Python on ESP32 (Windows)
Retrieving food data with Amazon API (Python)
[Python] Quickly create an API with Flask
Run a Python web application with Docker
Serverless face recognition API made with Python
[Python] Get Python package information with PyPI API
FizzBuzz with Python3
Scraping with Python
Statistics with python
Scraping with Python
Python with Go
Twilio with Python
Integrate with Python
Play with 2016-Python
AES256 with python
Tested with Python
python starts with ()
with syntax (Python)
Bingo with python
Zundokokiyoshi with python
Excel with Python
Microcomputer with Python
Cast with python
Text extraction with GCP Cloud Vision API (Python3.6)
Run Google Analytics API (core v3) in python
Python> Run with run-time arguments> Use import argparse
Get stock price data with Quandl API [Python]
LINE BOT with Python + AWS Lambda + API Gateway
Explosive speed with Python (Bottle)! Web API development
Recent ranking creation using Qiita API with Python
Run Flask on CentOS with python3.4, Gunicorn + Nginx.
Get Gmail subject and body with Python and Gmail API
[Python] Mention to multiple people with Slack API
Create an API server quickly with Python + Falcon