Skip to content

Commit 665ea70

Browse files
authored
Add files via upload
1 parent 53086cf commit 665ea70

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

Call_Class_IgusRobolink.ipynb

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "d7bbeddd-7819-43de-98a5-d6a38e8c83ee",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"from Class_IgusRobolink import IgusRobolink \n",
11+
"import time\n",
12+
" \n",
13+
" \n",
14+
"robot = IgusRobolink(\"192.168.3.11\")\n",
15+
"robot.connect()\n",
16+
"time.sleep(5.0)"
17+
]
18+
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": null,
22+
"id": "35a72283-7709-4151-a62a-ea1258cdbeda",
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"robot.enable()\n",
27+
"time.sleep(5.0)\n",
28+
" \n",
29+
"status = robot.get_status('MotionStatus')\n",
30+
"print(status)\n",
31+
"if status == 'MotionNotAllowed':\n",
32+
" print(\"Reference now \")\n",
33+
" robot.ReferenceAllJoints()\n",
34+
"else:\n",
35+
" robot.SetFlag_ReferenceAllJoints(True)\n",
36+
" \n",
37+
" \n",
38+
"time.sleep(2)"
39+
]
40+
},
41+
{
42+
"cell_type": "code",
43+
"execution_count": null,
44+
"id": "9e28f960-d689-4f46-93c4-75be782bfd4a",
45+
"metadata": {},
46+
"outputs": [],
47+
"source": [
48+
"# Run relative transformed position\n",
49+
"robot.moveo(200,150,150,0,0,0,100)"
50+
]
51+
},
52+
{
53+
"cell_type": "code",
54+
"execution_count": null,
55+
"id": "bd6cd84a-202b-4717-a2be-2efbe23d836e",
56+
"metadata": {},
57+
"outputs": [],
58+
"source": [
59+
"robot.moveo(200,150,16,0,0,0,100)"
60+
]
61+
},
62+
{
63+
"cell_type": "code",
64+
"execution_count": null,
65+
"id": "659c3d4b-a83f-4a64-93d9-874fc1582dd4",
66+
"metadata": {},
67+
"outputs": [],
68+
"source": [
69+
"# Run absolute Position\n",
70+
"x, y, z = 250.00,0.0, 260.00\n",
71+
"rx, ry, rz = -179.99, -00.00, 180.00\n",
72+
"speed = 20\n",
73+
"robot.move(x,y,z,rx,ry,rz,speed)"
74+
]
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": null,
79+
"id": "96d666ae-6c0f-41e2-a288-34e696481c9e",
80+
"metadata": {},
81+
"outputs": [],
82+
"source": [
83+
"robot.disconnect()"
84+
]
85+
},
86+
{
87+
"cell_type": "code",
88+
"execution_count": null,
89+
"id": "0fb1d2e5-a918-4770-bcbe-724a8b765a1c",
90+
"metadata": {},
91+
"outputs": [],
92+
"source": []
93+
}
94+
],
95+
"metadata": {
96+
"kernelspec": {
97+
"display_name": "Python 3 (ipykernel)",
98+
"language": "python",
99+
"name": "python3"
100+
},
101+
"language_info": {
102+
"codemirror_mode": {
103+
"name": "ipython",
104+
"version": 3
105+
},
106+
"file_extension": ".py",
107+
"mimetype": "text/x-python",
108+
"name": "python",
109+
"nbconvert_exporter": "python",
110+
"pygments_lexer": "ipython3",
111+
"version": "3.10.12"
112+
}
113+
},
114+
"nbformat": 4,
115+
"nbformat_minor": 5
116+
}

0 commit comments

Comments
 (0)