- Description
-
Details
Description
This wrapper is intended as python library for the youBot :
- youBot-py is a pure python wrapper for the youBot
- The aim of working on this wrapper was to develop a python wrapper for the youBot without any dependency of framework
- For more information and current updates, please visit : http://praman2s.github.io/youbot-py/
Installation
Building and installing the wrapper:
- git clone https://github.com/praman2s/youbot-py.git
- cd youbot-py
- sh configure.sh
- python setup.py build
- sudo bash
- python setup.py install
Now the wrapper is ready to be tested.
Usage
This is an example file. Here it takes three lines to get connected to the youBot::
from youbotpy import * #exposes youbot_driver to python
import time
robot = arm() # Calls the constructor . Important to call at the beginning
#robot.Calibrate() # Sets the robot in candle position and sets encoder to zero
joint_values = [1,1,-1,1,1] # some position of the arm that the user demands
robot.SetArmJointValues(joint_values) # sets the joint values
time.sleep(2)
print "End of Hello World..!!!"
Support
In order to request new features, please contact hotline@youbot-store.com.
For help regarding installation and reporting issues, add an issue in git hub https://github.com/praman2s/youbot-py/issues.