Change example to call class instead of module

`urx.robot` is a module and thus not callable. I think the `Robot` class is what's meant here.
This commit is contained in:
Johann Bauer 2016-04-27 13:07:09 +02:00
parent f8497e0381
commit 9fdec96cc4

View File

@ -12,7 +12,7 @@ urx was primarily developed by [Olivier Roulet-Dubonnet](https://github.com/orou
```python
import urx
rob = urx.robot("192.168.0.100")
rob = urx.Robot("192.168.0.100")
rob.set_tcp((0, 0, 0.1, 0, 0, 0))
rob.set_payload(2, (0, 0, 0.1))
rob.movej((1, 2, 3, 4, 5, 6), a, v)
@ -89,4 +89,4 @@ if __name__ == '__main__':
rob.close()
print "true"
sys.exit()
```
```