{ "info": { "author": "Kevin Walchko", "author_email": "walchko@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/pyservos/master/pics/complex.gif\n :align: center\n :width: 300px\n :target: https://github.com/walchko/pyservos\n :alt: animated gif\n\npyServos\n=========\n\n.. image:: https://img.shields.io/pypi/v/pyservos.svg\n :target: https://pypi.python.org/pypi/pyservos/\n :alt: Latest Version\n.. image:: https://img.shields.io/pypi/l/pyservos.svg\n :target: https://pypi.python.org/pypi/pyservos/\n :alt: License\n.. image:: https://travis-ci.org/MomsFriendlyRobotCompany/pyservos.svg?branch=master\n :target: https://travis-ci.org/MomsFriendlyRobotCompany/pyservos\n\n\nThis is still a work in progress and **only** supports AX-12A and XL-320. The\nlibrary is divided up as follows:\n\n - pyservos\n \t- **ServoSerial** - half duplex hardware serial interface\n\t- **Packet** - creates packets to talk to the servo\n\t- **utils** - misc\n\t- **XL320** - register/command/error definitions for Dynamixel's XL-320 servo\n\t- **AX12** - register/command/error definitions for Dynamixel's AX-12A servo\n\n\nSetup\n--------\n\nInstall\n~~~~~~~~~~~~~\n\nThe suggested way to install this is via the ``pip`` command as follows::\n\n\tpip install pyservos\n\nDevelopment\n~~~~~~~~~~~~~\n\nTo submit git pulls, clone the repository and set it up as follows::\n\n\tgit clone https://github.com/walchko/pyservos\n\tcd pyservos\n\tpip install -e .\n\nUsage\n--------\n\nThe ``\\bin`` directory has a number of useful programs to set servo position or ID number. Just\nrun the command with the ``--help`` flag to see how to use it.\n\n==================== ==============================================================\nCommand Description\n==================== ==============================================================\n``servo_ping.py`` pings one or all of the servos\n``servo_reboot.py`` reboots one or all servos\n``servo_reset.py`` resets one or all servos to a specified level\n``set_angle.py`` sets the angle of a given servo\n``set_baud_rate.py`` change the baud rate of the servos\n``set_id.py`` changes the ID number for a given servo\n==================== ==============================================================\n\nDocumentation\n-------------------------------------------------------------------------------------\n\n- `AX-12A Servo `_\n- `XL-320 Servo `_\n\nA simple example to turn the servo and turn the LED on using a USB serial converter:\n\n.. code-block:: python\n\n\t# Run an AX-12 servo\n\tfrom pyservos import ServoSerial, Packet, AX12\n\n\tserial = ServoSerial('/dev/tty.usbserial') # tell it what port you want to use\n\t# serial = ServoSerial('dummy') # use a dummy serial interface for testing\n\tserial.open()\n\n\tax = Packet(AX12)\n\tpkt = ax.makeServoPacket(1, 158.6) # move servo 1 to 158.6 degrees\n\tret = serial.sendPkt(pkt) # send packet, I don't do anything with the returned status packet\n\n\tpkt = ax.makeLEDPacket(1, AX12.LED_ON)\n\tret = serial.sendPkt(pkt)\n\nAlthough I have made some packet creators (like LED and Servo), you can make\nyour own using the basic ``makeWritePacket`` and ``makeReadPacket``.\n\n.. code-block:: python\n\n\t# Run an XL-320 servo\n\tfrom pyservos import Packet, XL320\n\tfrom pyservos.utils import angle2int\n\n\txl = Packet(XL320)\n\n\t# let's make our own servo packet that sends servo 3 to 220.1 degrees\n\tID = 3\n\treg = XL320.GOAL_POSITION\n\tparams = angle2int(220.1) # convert 220.1 degrees to an int between 0-1023\n\tpkt = xl.makeWritePacket(ID, reg, params)\n\nRobot Examples\n------------------\n\nHere are some example `robots `_\n\nChange Log\n-------------\n\n========== ======= =============================\n2018-02-17 1.0.0 added AX-12 support and renamed the library\n2017-04-01 0.9.0 added python3 support\n2017-03-26 0.8.0 major overhaul and removed the GPIO stuff\n2017-03-19 0.7.7 can switch between GPIO pin and pyserial.setRTS()\n2017-02-20 0.7.6 small fixes and added servo_reboot\n2017-01-16 0.7.5 fixes some small errors\n2016-11-29 0.7.4 add bulk write and small changes\n2016-10-11 0.7.1 small changes/updates\n2016-09-12 0.7.0 refactoring, still working on API\n2016-09-05 0.5.0 published to PyPi\n2016-08-16 0.0.1 init\n========== ======= =============================\n\nSoftware License\n------------------------\n\n**The MIT License (MIT)**\n\nCopyright (c) 2016 Kevin J. Walchko\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/walchko/pyservos", "keywords": "dynamixel,robotis,ax12,ax-12,ax-12a,xl320,xl-320,servo,actuator,library,robotics,robot,smart,spider", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyservos", "package_url": "https://pypi.org/project/pyservos/", "platform": "", "project_url": "https://pypi.org/project/pyservos/", "project_urls": { "Homepage": "http://github.com/walchko/pyservos" }, "release_url": "https://pypi.org/project/pyservos/1.0.2/", "requires_dist": [ "pyserial", "build-utils" ], "requires_python": "", "summary": "A library to control dynamixel AX-12 and XL-320 servos with python", "version": "1.0.2" }, "last_serial": 3623903, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a4b28c64c7a6eda5afa81c42e8ebf951", "sha256": "dfe5180f04593be977444cc61e421f7e27cdc14b42189cc06d137f77856ebe7a" }, "downloads": -1, "filename": "pyservos-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "a4b28c64c7a6eda5afa81c42e8ebf951", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 23363, "upload_time": "2018-02-17T23:11:41", "url": "https://files.pythonhosted.org/packages/f1/0e/8443b5320a4f229c5bd290fadbf1b8d002ff5e78297a6de257b3d10541e3/pyservos-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "839330350f3d8bf6806fadf70535121b", "sha256": "c0f571fbbb96f9443b22d1fff013b9b9b9aa52482b3dfe0be5a470772fa0b39a" }, "downloads": -1, "filename": "pyservos-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "839330350f3d8bf6806fadf70535121b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23362, "upload_time": "2018-02-17T23:11:46", "url": "https://files.pythonhosted.org/packages/47/43/5c08c5ae8701c205e3c01d949bf122d804de2764912e3e60d7ddcf20e142/pyservos-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0f464c993cbf45792b046588a61324c6", "sha256": "84a8c137abc41e4f6f801721bd52f72d1e1425c5d28c6f29b318a25db0f93c52" }, "downloads": -1, "filename": "pyservos-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0f464c993cbf45792b046588a61324c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13866, "upload_time": "2018-02-17T23:11:50", "url": "https://files.pythonhosted.org/packages/da/f9/edc8884fec8026540c3f7fb5b03941ff9bf282dbece225257d523714748f/pyservos-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "150a1f8e71d012deb52058dc3982af60", "sha256": "eaa95c2dce16aec0035fac67b1b92c3edefe1dc1a74267b55978fe0581344b49" }, "downloads": -1, "filename": "pyservos-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "150a1f8e71d012deb52058dc3982af60", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 26538, "upload_time": "2018-02-18T04:34:02", "url": "https://files.pythonhosted.org/packages/99/a8/45c8532f6a3b9833f85d153e99071ec041c99c3881f707c3f2b02f26d336/pyservos-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d6a3662e0be9388f34457094485e8877", "sha256": "2704cfd7ae088f198644d6ee18115e561357876447e19744f273c01fea8e9905" }, "downloads": -1, "filename": "pyservos-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d6a3662e0be9388f34457094485e8877", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 26539, "upload_time": "2018-02-18T04:34:04", "url": "https://files.pythonhosted.org/packages/d8/9c/ba88bb6c28e2bb7093eca46a91dda71fb9e421fbc271efc48056a0fbd8ad/pyservos-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff8e3bf75565231a40ae31391b52deec", "sha256": "b3389f6ab2819d864199da72a3c9419959dbac0c0df7ccba5bd4424b690661c9" }, "downloads": -1, "filename": "pyservos-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ff8e3bf75565231a40ae31391b52deec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15544, "upload_time": "2018-02-18T04:34:05", "url": "https://files.pythonhosted.org/packages/ef/b3/03c1c17101f4ad5fd218dfcebdc7e096dbe0d73ab28dad98c64644b489d0/pyservos-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "6604a329119d6041cb89b0f81740887a", "sha256": "e74987aa897900f826122bde0c9e61db16c448ee40de1248694cab0be2b2e114" }, "downloads": -1, "filename": "pyservos-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "6604a329119d6041cb89b0f81740887a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 26609, "upload_time": "2018-02-28T04:20:55", "url": "https://files.pythonhosted.org/packages/6c/74/794fac38e4a63db66c6b39dacba97be4354948f18ecb0ce67e1b8d9b4b7e/pyservos-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22c2f5985ba38bf34a03be0cbc9cfc94", "sha256": "836ef0a45c5f7e593d891120008c9a6959137471c664621da40ea65686ed1665" }, "downloads": -1, "filename": "pyservos-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "22c2f5985ba38bf34a03be0cbc9cfc94", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 26611, "upload_time": "2018-02-28T04:20:57", "url": "https://files.pythonhosted.org/packages/f3/eb/b47a92a23a2f4da3752260dee2e2ccb419e8552bdb7877c0f52df78d75ab/pyservos-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22db5213447d9adfb57974e0b02887a3", "sha256": "96ae09cf0bdb06a2e6cf361bd9afef08c3b18bd32e53f6b7f150c8d68a7a05dd" }, "downloads": -1, "filename": "pyservos-1.0.2.tar.gz", "has_sig": false, "md5_digest": "22db5213447d9adfb57974e0b02887a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15708, "upload_time": "2018-02-28T04:20:59", "url": "https://files.pythonhosted.org/packages/b3/7c/187b4ed5ee25d11b3c4fe193fd292ee3bb486df80d0f3484c77d6546a12d/pyservos-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6604a329119d6041cb89b0f81740887a", "sha256": "e74987aa897900f826122bde0c9e61db16c448ee40de1248694cab0be2b2e114" }, "downloads": -1, "filename": "pyservos-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "6604a329119d6041cb89b0f81740887a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 26609, "upload_time": "2018-02-28T04:20:55", "url": "https://files.pythonhosted.org/packages/6c/74/794fac38e4a63db66c6b39dacba97be4354948f18ecb0ce67e1b8d9b4b7e/pyservos-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22c2f5985ba38bf34a03be0cbc9cfc94", "sha256": "836ef0a45c5f7e593d891120008c9a6959137471c664621da40ea65686ed1665" }, "downloads": -1, "filename": "pyservos-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "22c2f5985ba38bf34a03be0cbc9cfc94", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 26611, "upload_time": "2018-02-28T04:20:57", "url": "https://files.pythonhosted.org/packages/f3/eb/b47a92a23a2f4da3752260dee2e2ccb419e8552bdb7877c0f52df78d75ab/pyservos-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22db5213447d9adfb57974e0b02887a3", "sha256": "96ae09cf0bdb06a2e6cf361bd9afef08c3b18bd32e53f6b7f150c8d68a7a05dd" }, "downloads": -1, "filename": "pyservos-1.0.2.tar.gz", "has_sig": false, "md5_digest": "22db5213447d9adfb57974e0b02887a3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15708, "upload_time": "2018-02-28T04:20:59", "url": "https://files.pythonhosted.org/packages/b3/7c/187b4ed5ee25d11b3c4fe193fd292ee3bb486df80d0f3484c77d6546a12d/pyservos-1.0.2.tar.gz" } ] }