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:
parent
f8497e0381
commit
9fdec96cc4
@ -12,7 +12,7 @@ urx was primarily developed by [Olivier Roulet-Dubonnet](https://github.com/orou
|
|||||||
```python
|
```python
|
||||||
import urx
|
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_tcp((0, 0, 0.1, 0, 0, 0))
|
||||||
rob.set_payload(2, (0, 0, 0.1))
|
rob.set_payload(2, (0, 0, 0.1))
|
||||||
rob.movej((1, 2, 3, 4, 5, 6), a, v)
|
rob.movej((1, 2, 3, 4, 5, 6), a, v)
|
||||||
@ -89,4 +89,4 @@ if __name__ == '__main__':
|
|||||||
rob.close()
|
rob.close()
|
||||||
print "true"
|
print "true"
|
||||||
sys.exit()
|
sys.exit()
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user