<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Example 1</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Example%25201/</link><description>Recent changes to Example 1</description><atom:link href="https://sourceforge.net/p/ksr10usbpython/wiki/Example%201/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 24 Jul 2012 13:56:25 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/ksr10usbpython/wiki/Example%201/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Example 1 modified by Niels Bosboom</title><link>https://sourceforge.net/p/ksr10usbpython/wiki/Example%25201/</link><description>Example 1
---------

This example shows basic control of the robot arm.

- - - - - -

~~~~
#!/usr/bin/python

import ksr10
import time

# create object
ksr = ksr10.ksr10.ksr10_class()

# turn on lights
ksr.lights()

# move base of the arm to the left
ksr.move("base","left")

# wait 0.5 second
time.sleep(.5)

# stop all movement
ksr.stop()

# move base to the right and 
# elbow up simultaneously
ksr.move("base","right")
ksr.move("elbow","up")

# wait 0.5 second
time.sleep(.5)

# stop all movement
ksr.stop()

# turn off lights
ksr.lights()
~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niels Bosboom</dc:creator><pubDate>Tue, 24 Jul 2012 13:56:25 -0000</pubDate><guid>https://sourceforge.netfe4592d66544ce9b032621103905f0f8fadab5c4</guid></item></channel></rss>