Skip to content

Tutorial_control_iiwa_from_gui.py Usage #3

@wafflecat

Description

@wafflecat

Safeea,

First of all, thank you for developing this toolbox. We managed to get the MATLAB client working, but would get more flexibility using the Python client.

The following two tutorials work,

  1. Tutorial_directServo.py
  2. Tutorial_getters.py

But we can't get Tutorial_control_iiwa_from_gui.py working. Could you advice us on how to use it?

Also, could you advice us on how to use the PTP functions like movePTPLineEEF() or movePTPJointSpace()?

We tried axkoenig's example code, but the code gets stuck at iiwa.movePTPJointSpace([0, 0, 0, 0, 0, 0, 0], rel_vel). "before" prints, but "after" doesn't.

from sunrisePy import sunrisePy
import time 

ip='172.31.1.147'
iiwa=sunrisePy(ip)
time.sleep(4)

pi = 3.1415
rel_vel = [0.15]

print("before")
iiwa.movePTPJointSpace([0, 0, 0, 0, 0, 0, 0], rel_vel)
print("after")
iiwa.movePTPHomeJointSpace(rel_vel)

iiwa.close()

Thanks for the help.

From,
Isaac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions